Class AbstractBlogWebScript
- java.lang.Object
-
- org.springframework.extensions.webscripts.AbstractWebScript
-
- org.springframework.extensions.webscripts.DeclarativeWebScript
-
- org.alfresco.repo.web.scripts.blogs.AbstractBlogWebScript
-
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
- Direct Known Subclasses:
AbstractGetBlogWebScript
,BlogGet
,BlogPostDelete
,BlogPostGet
,BlogPostsPost
,BlogPut
public abstract class AbstractBlogWebScript extends org.springframework.extensions.webscripts.DeclarativeWebScript
- Since:
- 4.0
- Author:
- Neil Mc Erlean
-
-
Field Summary
Fields Modifier and Type Field Description protected org.alfresco.service.cmr.activities.ActivityService
activityService
protected org.alfresco.service.cmr.blog.BlogService
blogService
protected static java.lang.String
CONTAINER
protected static java.lang.String
CONTENT
protected static java.lang.String
DATA
protected static java.lang.String
DRAFT
protected static java.lang.String
EXTERNAL_BLOG_CONFIG
protected static java.lang.String
ITEM
protected static java.lang.String
NODE
protected org.alfresco.service.cmr.repository.NodeService
nodeService
protected static java.lang.String
PAGE
protected static java.lang.String
POST
protected org.alfresco.repo.model.Repository
repository
protected org.alfresco.service.ServiceRegistry
services
protected static java.lang.String
SITE
protected org.alfresco.service.cmr.site.SiteService
siteService
protected static java.lang.String
TAGS
protected static java.lang.String
TITLE
-
Constructor Summary
Constructors Constructor Description AbstractBlogWebScript()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addActivityEntry(java.lang.String event, org.alfresco.service.cmr.blog.BlogPostInfo blog, org.alfresco.service.cmr.site.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 itemprotected abstract java.util.Map<java.lang.String,java.lang.Object>
executeImpl(org.alfresco.service.cmr.site.SiteInfo site, org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.blog.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 java.util.Map<java.lang.String,java.lang.Object>
executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
void
setActivityService(org.alfresco.service.cmr.activities.ActivityService activityService)
void
setBlogService(org.alfresco.service.cmr.blog.BlogService blogService)
void
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
void
setRepository(org.alfresco.repo.model.Repository repository)
void
setServiceRegistry(org.alfresco.service.ServiceRegistry services)
void
setSiteService(org.alfresco.service.cmr.site.SiteService siteService)
-
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 Detail
-
CONTAINER
protected static final java.lang.String CONTAINER
- See Also:
- Constant Field Values
-
CONTENT
protected static final java.lang.String CONTENT
- See Also:
- Constant Field Values
-
DATA
protected static final java.lang.String DATA
- See Also:
- Constant Field Values
-
DRAFT
protected static final java.lang.String DRAFT
- See Also:
- Constant Field Values
-
EXTERNAL_BLOG_CONFIG
protected static final java.lang.String EXTERNAL_BLOG_CONFIG
- See Also:
- Constant Field Values
-
POST
protected static final java.lang.String POST
- See Also:
- Constant Field Values
-
ITEM
protected static final java.lang.String ITEM
- See Also:
- Constant Field Values
-
NODE
protected static final java.lang.String NODE
- See Also:
- Constant Field Values
-
PAGE
protected static final java.lang.String PAGE
- See Also:
- Constant Field Values
-
SITE
protected static final java.lang.String SITE
- See Also:
- Constant Field Values
-
TAGS
protected static final java.lang.String TAGS
- See Also:
- Constant Field Values
-
TITLE
protected static final java.lang.String TITLE
- See Also:
- Constant Field Values
-
repository
protected org.alfresco.repo.model.Repository repository
-
blogService
protected org.alfresco.service.cmr.blog.BlogService blogService
-
nodeService
protected org.alfresco.service.cmr.repository.NodeService nodeService
-
siteService
protected org.alfresco.service.cmr.site.SiteService siteService
-
activityService
protected org.alfresco.service.cmr.activities.ActivityService activityService
-
services
protected org.alfresco.service.ServiceRegistry services
-
-
Method Detail
-
setServiceRegistry
public void setServiceRegistry(org.alfresco.service.ServiceRegistry services)
-
setRepository
public void setRepository(org.alfresco.repo.model.Repository repository)
-
setBlogService
public void setBlogService(org.alfresco.service.cmr.blog.BlogService blogService)
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
-
setSiteService
public void setSiteService(org.alfresco.service.cmr.site.SiteService siteService)
-
setActivityService
public void setActivityService(org.alfresco.service.cmr.activities.ActivityService activityService)
-
addActivityEntry
protected void addActivityEntry(java.lang.String event, org.alfresco.service.cmr.blog.BlogPostInfo blog, org.alfresco.service.cmr.site.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- Parameters:
event
- One of created, updated, deletedblog
- Either post or replysite
- sitereq
- requestjson
- jsonnodeRef
- NodeRef
-
executeImpl
protected java.util.Map<java.lang.String,java.lang.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
protected abstract java.util.Map<java.lang.String,java.lang.Object> executeImpl(org.alfresco.service.cmr.site.SiteInfo site, org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.blog.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)
-
-