public abstract class AbstractWikiWebScript
extends org.springframework.extensions.webscripts.DeclarativeWebScript
| Modifier and Type | Field and Description |
|---|---|
protected ActivityService |
activityService |
protected static int |
MAX_QUERY_ENTRY_COUNT
When no maximum or paging info is given, what should we use?
|
protected NodeService |
nodeService |
protected PersonService |
personService |
protected SiteService |
siteService |
static String |
WIKI_SERVICE_ACTIVITY_APP_NAME |
protected WikiService |
wikiService |
| Constructor and Description |
|---|
AbstractWikiWebScript() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addActivityEntry(String event,
WikiPageInfo wikiPage,
SiteInfo site,
org.springframework.extensions.webscripts.WebScriptRequest req,
org.json.simple.JSONObject json) |
protected void |
addActivityEntry(String event,
WikiPageInfo wikiPage,
SiteInfo site,
org.springframework.extensions.webscripts.WebScriptRequest req,
org.json.simple.JSONObject json,
Map<String,String> additionalData)
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 pageTitle,
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 NodeRef |
personForModel(String username) |
protected Map<String,Object> |
renderWikiPage(WikiPageInfo page) |
void |
setActivityService(ActivityService activityService) |
void |
setNodeService(NodeService nodeService) |
void |
setPersonService(PersonService personService) |
void |
setSiteService(SiteService siteService) |
void |
setWikiService(WikiService wikiService) |
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplateaddModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toStringpublic static final String WIKI_SERVICE_ACTIVITY_APP_NAME
protected static final int MAX_QUERY_ENTRY_COUNT
protected NodeService nodeService
protected SiteService siteService
protected WikiService wikiService
protected PersonService personService
protected ActivityService activityService
public void setNodeService(NodeService nodeService)
public void setSiteService(SiteService siteService)
public void setWikiService(WikiService wikiService)
public void setPersonService(PersonService personService)
public void setActivityService(ActivityService activityService)
protected org.alfresco.query.PagingRequest buildPagingRequest(org.springframework.extensions.webscripts.WebScriptRequest req)
protected void addActivityEntry(String event, WikiPageInfo wikiPage, SiteInfo site, org.springframework.extensions.webscripts.WebScriptRequest req, org.json.simple.JSONObject json)
protected void addActivityEntry(String event, WikiPageInfo wikiPage, SiteInfo site, org.springframework.extensions.webscripts.WebScriptRequest req, org.json.simple.JSONObject json, Map<String,String> additionalData)
event - a String representing the event.wikiPage - the wiki page generating the activity.site - the site in which the wiki page was created.req - the WebScriptRequest.json - additionalData - any additional data required for the activity.protected Map<String,Object> renderWikiPage(WikiPageInfo page)
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.DeclarativeWebScriptprotected abstract Map<String,Object> executeImpl(SiteInfo site, String pageTitle, 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–2014 Alfresco Software. All rights reserved.