public abstract class AbstractBlogWebScript
extends org.springframework.extensions.webscripts.DeclarativeWebScript
Modifier and Type | Field and 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 and Description |
---|
AbstractBlogWebScript() |
Modifier and Type | Method and 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 item
|
protected abstract java.util.Map |
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 |
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) |
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 java.lang.String CONTAINER
protected static final java.lang.String CONTENT
protected static final java.lang.String DATA
protected static final java.lang.String DRAFT
protected static final java.lang.String EXTERNAL_BLOG_CONFIG
protected static final java.lang.String POST
protected static final java.lang.String ITEM
protected static final java.lang.String NODE
protected static final java.lang.String PAGE
protected static final java.lang.String SITE
protected static final java.lang.String TAGS
protected static final java.lang.String TITLE
protected org.alfresco.repo.model.Repository repository
protected org.alfresco.service.cmr.blog.BlogService blogService
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected org.alfresco.service.cmr.site.SiteService siteService
protected org.alfresco.service.cmr.activities.ActivityService activityService
protected org.alfresco.service.ServiceRegistry services
public void setServiceRegistry(org.alfresco.service.ServiceRegistry services)
public void setRepository(org.alfresco.repo.model.Repository repository)
public void setBlogService(org.alfresco.service.cmr.blog.BlogService blogService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setSiteService(org.alfresco.service.cmr.site.SiteService siteService)
public void setActivityService(org.alfresco.service.cmr.activities.ActivityService activityService)
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)
thing
- Either post or replyevent
- One of created, updated, deletedprotected java.util.Map 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 java.util.Map 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)
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.