public abstract class AbstractBlogWebScript
extends org.springframework.extensions.webscripts.DeclarativeWebScript
Modifier and Type | Field and Description |
---|---|
protected ActivityService |
activityService |
protected BlogService |
blogService |
protected static String |
CONTAINER |
protected static String |
CONTENT |
protected static String |
DATA |
protected static String |
DRAFT |
protected static String |
EXTERNAL_BLOG_CONFIG |
protected static String |
ITEM |
protected static String |
NODE |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected static String |
PAGE |
protected static String |
POST |
protected Repository |
repository |
protected ServiceRegistry |
services |
protected static String |
SITE |
protected SiteService |
siteService |
protected static String |
TAGS |
protected static String |
TITLE |
Constructor and Description |
---|
AbstractBlogWebScript() |
Modifier and Type | Method and Description |
---|---|
protected void |
addActivityEntry(String event,
BlogPostInfo blog,
SiteInfo site,
org.springframework.extensions.webscripts.WebScriptRequest req,
org.json.simple.JSONObject json,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Generates an activity entry for the discussion item
|
protected abstract Map<String,Object> |
executeImpl(SiteInfo site,
org.alfresco.service.cmr.repository.NodeRef nodeRef,
BlogPostInfo blog,
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) |
void |
setActivityService(ActivityService activityService) |
void |
setBlogService(BlogService blogService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setRepository(Repository repository) |
void |
setServiceRegistry(ServiceRegistry services) |
void |
setSiteService(SiteService siteService) |
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
protected static final String CONTAINER
protected static final String CONTENT
protected static final String DATA
protected static final String DRAFT
protected static final String EXTERNAL_BLOG_CONFIG
protected static final String POST
protected static final String ITEM
protected static final String NODE
protected static final String PAGE
protected static final String SITE
protected static final String TAGS
protected static final String TITLE
protected Repository repository
protected BlogService blogService
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected SiteService siteService
protected ActivityService activityService
protected ServiceRegistry services
public void setServiceRegistry(ServiceRegistry services)
public void setRepository(Repository repository)
public void setBlogService(BlogService blogService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setSiteService(SiteService siteService)
public void setActivityService(ActivityService activityService)
protected void addActivityEntry(String event, BlogPostInfo blog, SiteInfo site, org.springframework.extensions.webscripts.WebScriptRequest req, org.json.simple.JSONObject json, org.alfresco.service.cmr.repository.NodeRef nodeRef)
event
- One of created, updated, deletedblog
- Either post or replysite
- sitereq
- requestjson
- jsonnodeRef
- NodeRefprotected 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, org.alfresco.service.cmr.repository.NodeRef nodeRef, BlogPostInfo blog, 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.