org.alfresco.repo.web.scripts.blogs
Class AbstractBlogWebScript

java.lang.Object
  extended by org.springframework.extensions.webscripts.AbstractWebScript
      extended by org.springframework.extensions.webscripts.DeclarativeWebScript
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
 
Field Summary
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
AbstractBlogWebScript()
           
 
Method Summary
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)
           
 
Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
 
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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
Constructor Detail

AbstractBlogWebScript

public AbstractBlogWebScript()
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:
thing - Either post or reply
event - One of created, updated, deleted

executeImpl

protected java.util.Map executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req,
                                    org.springframework.extensions.webscripts.Status status,
                                    org.springframework.extensions.webscripts.Cache cache)
Overrides:
executeImpl in class org.springframework.extensions.webscripts.DeclarativeWebScript

executeImpl

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 - 2010 Alfresco Software, Inc. All Rights Reserved.