public abstract class AbstractLinksWebScript
extends org.springframework.extensions.webscripts.DeclarativeWebScript
Modifier and Type | Field and Description |
---|---|
protected ActivityService |
activityService |
static String |
LINKS_SERVICE_ACTIVITY_APP_NAME |
protected LinksService |
linksService |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected static String |
PARAM_ITEM |
protected static String |
PARAM_MESSAGE |
protected PersonService |
personService |
protected SiteService |
siteService |
Constructor and Description |
---|
AbstractLinksWebScript() |
Modifier and Type | Method and Description |
---|---|
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
|
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
|
protected abstract Map<String,Object> |
executeImpl(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) |
protected Map<String,Object> |
executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.Status status,
org.springframework.extensions.webscripts.Cache cache) |
protected String |
getOrNull(org.json.simple.JSONObject json,
String key) |
protected List<String> |
getTags(org.json.simple.JSONObject json) |
protected Map<String,Object> |
renderLink(LinkInfo link) |
void |
setActivityService(ActivityService activityService) |
void |
setLinksService(LinksService linksService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPersonService(PersonService personService) |
void |
setProtocolsWhiteList(String protocolsWhiteList) |
void |
setSiteService(SiteService siteService) |
void |
setXssRegexp(ArrayList<String> xssRegexp) |
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
public static final String LINKS_SERVICE_ACTIVITY_APP_NAME
protected static final String PARAM_MESSAGE
protected static final String PARAM_ITEM
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected SiteService siteService
protected LinksService linksService
protected PersonService personService
protected ActivityService activityService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setSiteService(SiteService siteService)
public void setLinksService(LinksService linksService)
public void setPersonService(PersonService personService)
public void setActivityService(ActivityService activityService)
public void setProtocolsWhiteList(String protocolsWhiteList)
protected org.alfresco.query.PagingRequest buildPagingRequest(org.springframework.extensions.webscripts.WebScriptRequest req)
protected void addActivityEntry(String event, LinkInfo link, SiteInfo site, org.springframework.extensions.webscripts.WebScriptRequest req, org.json.simple.JSONObject json)
protected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
executeImpl
in class org.springframework.extensions.webscripts.DeclarativeWebScript
protected abstract Map<String,Object> executeImpl(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)
Copyright © 2005–2017 Alfresco Software. All rights reserved.