org.alfresco.repo.activities.feed.local
Class LocalFeedTaskProcessor

java.lang.Object
  extended by org.alfresco.repo.activities.feed.FeedTaskProcessor
      extended by org.alfresco.repo.activities.feed.local.LocalFeedTaskProcessor
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware

public class LocalFeedTaskProcessor
extends FeedTaskProcessor
implements org.springframework.context.ApplicationContextAware

The local (ie. not grid) feed task processor is responsible for processing the individual feed job


Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.repo.activities.feed.FeedTaskProcessor
FeedTaskProcessor.TemplateWebScriptLoader
 
Field Summary
 
Fields inherited from class org.alfresco.repo.activities.feed.FeedTaskProcessor
FEED_FORMAT_ATOMENTRY, FEED_FORMAT_HTML, FEED_FORMAT_JSON, FEED_FORMAT_RSS, FEED_FORMAT_TEXT, FEED_FORMAT_XML
 
Constructor Summary
LocalFeedTaskProcessor()
           
 
Method Summary
protected  boolean canRead(RepoCtx ctx, java.lang.String connectedUser, java.util.Map model)
           
 void commitTransaction()
           
 void endTransaction()
           
protected  java.util.Map getActivityTypeTemplates(java.lang.String repoEndPoint, java.lang.String ticket, java.lang.String subPath)
           
protected  java.util.Set getFollowers(java.lang.String userId)
           
protected  freemarker.template.Configuration getFreemarkerConfiguration(RepoCtx ctx)
           
protected  java.util.Set getSiteMembers(RepoCtx ctx, java.lang.String siteId)
           
 long insertFeedEntry(ActivityFeedEntity feed)
           
 void rollbackTransaction()
           
 java.util.List selectPosts(ActivityPostEntity selector)
           
 java.util.List selectUserFeedControls(java.lang.String userId)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setContentService(ContentService contentService)
           
 void setDefaultEncoding(java.lang.String defaultEncoding)
           
 void setFeedControlDAO(FeedControlDAO feedControlDAO)
           
 void setFeedDAO(ActivityFeedDAO feedDAO)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
           
 void setPostDAO(ActivityPostDAO postDAO)
           
 void setSiteService(SiteService siteService)
           
 void setSubscriptionService(SubscriptionService subscriptionService)
           
 void setTemplateSearchPaths(java.util.List templateSearchPaths)
           
 void setUseRemoteCallbacks(boolean useRemoteCallbacks)
           
 void startTransaction()
           
 int updatePostStatus(long id, ActivityPostEntity.STATUS status)
           
 
Methods inherited from class org.alfresco.repo.activities.feed.FeedTaskProcessor
acceptActivity, addMissingFormats, callWebScript, getActivityTemplates, getBaseActivityType, getFeedControls, getTemplateSubPath, process, processFreemarker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalFeedTaskProcessor

public LocalFeedTaskProcessor()
Method Detail

setPostDAO

public void setPostDAO(ActivityPostDAO postDAO)

setFeedDAO

public void setFeedDAO(ActivityFeedDAO feedDAO)

setFeedControlDAO

public void setFeedControlDAO(FeedControlDAO feedControlDAO)

setSiteService

public void setSiteService(SiteService siteService)

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)

setContentService

public void setContentService(ContentService contentService)

setPermissionService

public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)

setSubscriptionService

public void setSubscriptionService(SubscriptionService subscriptionService)

setDefaultEncoding

public void setDefaultEncoding(java.lang.String defaultEncoding)

setTemplateSearchPaths

public void setTemplateSearchPaths(java.util.List templateSearchPaths)

setUseRemoteCallbacks

public void setUseRemoteCallbacks(boolean useRemoteCallbacks)

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

startTransaction

public void startTransaction()
                      throws java.sql.SQLException
Specified by:
startTransaction in class FeedTaskProcessor
Throws:
java.sql.SQLException

commitTransaction

public void commitTransaction()
                       throws java.sql.SQLException
Specified by:
commitTransaction in class FeedTaskProcessor
Throws:
java.sql.SQLException

rollbackTransaction

public void rollbackTransaction()
                         throws java.sql.SQLException
Specified by:
rollbackTransaction in class FeedTaskProcessor
Throws:
java.sql.SQLException

endTransaction

public void endTransaction()
                    throws java.sql.SQLException
Specified by:
endTransaction in class FeedTaskProcessor
Throws:
java.sql.SQLException

selectPosts

public java.util.List selectPosts(ActivityPostEntity selector)
                           throws java.sql.SQLException
Specified by:
selectPosts in class FeedTaskProcessor
Throws:
java.sql.SQLException

insertFeedEntry

public long insertFeedEntry(ActivityFeedEntity feed)
                     throws java.sql.SQLException
Specified by:
insertFeedEntry in class FeedTaskProcessor
Throws:
java.sql.SQLException

updatePostStatus

public int updatePostStatus(long id,
                            ActivityPostEntity.STATUS status)
                     throws java.sql.SQLException
Specified by:
updatePostStatus in class FeedTaskProcessor
Throws:
java.sql.SQLException

selectUserFeedControls

public java.util.List selectUserFeedControls(java.lang.String userId)
                                      throws java.sql.SQLException
Specified by:
selectUserFeedControls in class FeedTaskProcessor
Throws:
java.sql.SQLException

getSiteMembers

protected java.util.Set getSiteMembers(RepoCtx ctx,
                                       java.lang.String siteId)
                                throws java.lang.Exception
Overrides:
getSiteMembers in class FeedTaskProcessor
Throws:
java.lang.Exception

canRead

protected boolean canRead(RepoCtx ctx,
                          java.lang.String connectedUser,
                          java.util.Map model)
                   throws java.lang.Exception
Overrides:
canRead in class FeedTaskProcessor
Throws:
java.lang.Exception

getActivityTypeTemplates

protected java.util.Map getActivityTypeTemplates(java.lang.String repoEndPoint,
                                                 java.lang.String ticket,
                                                 java.lang.String subPath)
                                          throws java.lang.Exception
Overrides:
getActivityTypeTemplates in class FeedTaskProcessor
Throws:
java.lang.Exception

getFreemarkerConfiguration

protected freemarker.template.Configuration getFreemarkerConfiguration(RepoCtx ctx)
Overrides:
getFreemarkerConfiguration in class FeedTaskProcessor

getFollowers

protected java.util.Set getFollowers(java.lang.String userId)
                              throws java.lang.Exception
Specified by:
getFollowers in class FeedTaskProcessor
Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.