Class AbstractBlogWebScript

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript

        org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
    • 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  
    • 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 item
      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)  
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • EXTERNAL_BLOG_CONFIG

        protected static final java.lang.String EXTERNAL_BLOG_CONFIG
        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:
        event - One of created, updated, deleted
        blog - Either post or reply
        site - site
        req - request
        json - json
        nodeRef - 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 class org.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)