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
|
Method Summary |
protected boolean |
canRead(RepoCtx ctx,
java.lang.String connectedUser,
java.util.Map model)
|
protected boolean |
canReadSite(RepoCtx ctx,
java.lang.String siteIdIn,
java.lang.String connectedUser,
java.lang.String tenantDomain)
|
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,
java.lang.String tenantDomain)
|
protected freemarker.template.Configuration |
getFreemarkerConfiguration(RepoCtx ctx)
|
protected java.util.Set |
getSiteMembers(RepoCtx ctx,
java.lang.String siteIdIn,
java.lang.String tenantDomain)
|
protected java.lang.String |
getTenantDomain(java.lang.String name)
|
protected java.lang.String |
getTenantName(java.lang.String name,
java.lang.String tenantDomain)
|
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 |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
|
void |
setUseRemoteCallbacks(boolean useRemoteCallbacks)
|
void |
startTransaction()
|
int |
updatePostStatus(long id,
ActivityPostEntity.STATUS status)
|
| 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)
setTenantService
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
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
getTenantName
protected java.lang.String getTenantName(java.lang.String name,
java.lang.String tenantDomain)
- Overrides:
getTenantName in class FeedTaskProcessor
getTenantDomain
protected java.lang.String getTenantDomain(java.lang.String name)
- Overrides:
getTenantDomain in class FeedTaskProcessor
getSiteMembers
protected java.util.Set getSiteMembers(RepoCtx ctx,
java.lang.String siteIdIn,
java.lang.String tenantDomain)
throws java.lang.Exception
- Overrides:
getSiteMembers in class FeedTaskProcessor
- Throws:
java.lang.Exception
canReadSite
protected boolean canReadSite(RepoCtx ctx,
java.lang.String siteIdIn,
java.lang.String connectedUser,
java.lang.String tenantDomain)
throws java.lang.Exception
- Specified by:
canReadSite 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
- Specified by:
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,
java.lang.String tenantDomain)
throws java.lang.Exception
- Specified by:
getFollowers in class FeedTaskProcessor
- Throws:
java.lang.Exception
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.