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 ActivityServicestatic final Stringprotected LinksServiceprotected NodeServiceprotected static final Stringprotected static final Stringprotected PersonServiceprotected SiteService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddActivityEntry(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.PagingRequestbuildPagingRequest(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 StringgetTags(org.json.simple.JSONObject json) renderLink(LinkInfo link) voidsetActivityService(ActivityService activityService) voidsetLinksService(LinksService linksService) voidsetNodeService(NodeService nodeService) voidsetPersonService(PersonService personService) voidsetProtocolsWhiteList(String protocolsWhiteList) voidsetSiteService(SiteService siteService) voidsetXssRegexp(ArrayList<String> xssRegexp) Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplateMethods 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:
executeImplin classorg.springframework.extensions.webscripts.DeclarativeWebScript
-
executeImpl
-