Class AbstractLinksWebScript
java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.DeclarativeWebScript
org.alfresco.repo.web.scripts.links.AbstractLinksWebScript
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
- Direct Known Subclasses:
LinkDelete
,LinkGet
,LinkPut
,LinksDeletePost
,LinksListGet
,LinksPost
public abstract class AbstractLinksWebScript
extends org.springframework.extensions.webscripts.DeclarativeWebScript
- Since:
- 4.0
- Author:
- Nick Burch
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActivityService
static final String
protected LinksService
protected NodeService
protected static final String
protected static final String
protected PersonService
protected SiteService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addActivityEntry
(String event, LinkInfo link, SiteInfo site, org.springframework.extensions.webscripts.WebScriptRequest req, org.json.simple.JSONObject json) Generates an activity entry for the linkprotected org.alfresco.query.PagingRequest
buildPagingRequest
(org.springframework.extensions.webscripts.WebScriptRequest req) Builds up a listing Paging request, based on the arguments specified in the URLexecuteImpl
(SiteInfo site, String linkName, org.springframework.extensions.webscripts.WebScriptRequest req, org.json.simple.JSONObject json, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) executeImpl
(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) protected String
getTags
(org.json.simple.JSONObject json) renderLink
(LinkInfo link) void
setActivityService
(ActivityService activityService) void
setLinksService
(LinksService linksService) void
setNodeService
(NodeService nodeService) void
setPersonService
(PersonService personService) void
setProtocolsWhiteList
(String protocolsWhiteList) void
setSiteService
(SiteService siteService) void
setXssRegexp
(ArrayList<String> xssRegexp) Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
-
Field Details
-
LINKS_SERVICE_ACTIVITY_APP_NAME
- See Also:
-
PARAM_MESSAGE
- See Also:
-
PARAM_ITEM
- See Also:
-
nodeService
-
siteService
-
linksService
-
personService
-
activityService
-
-
Constructor Details
-
AbstractLinksWebScript
public AbstractLinksWebScript()
-
-
Method Details
-
setNodeService
-
setSiteService
-
setLinksService
-
setPersonService
-
setActivityService
-
setProtocolsWhiteList
-
setXssRegexp
-
getOrNull
-
getTags
-
buildPagingRequest
protected org.alfresco.query.PagingRequest buildPagingRequest(org.springframework.extensions.webscripts.WebScriptRequest req) Builds up a listing Paging request, based on the arguments specified in the URL -
addActivityEntry
protected void addActivityEntry(String event, LinkInfo link, SiteInfo site, org.springframework.extensions.webscripts.WebScriptRequest req, org.json.simple.JSONObject json) Generates an activity entry for the link -
renderLink
-
executeImpl
protected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) - Overrides:
executeImpl
in classorg.springframework.extensions.webscripts.DeclarativeWebScript
-
executeImpl
-