org.alfresco.repo.activities.feed.local
Class LocalFeedTaskProcessor
java.lang.Object
org.alfresco.repo.activities.feed.FeedTaskProcessor
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalFeedTaskProcessor
public LocalFeedTaskProcessor()
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.