public class LocalFeedTaskProcessor extends FeedTaskProcessor implements org.springframework.context.ApplicationContextAware
FeedTaskProcessor.TemplateWebScriptLoader
FEED_FORMAT_ATOMENTRY, FEED_FORMAT_HTML, FEED_FORMAT_JSON, FEED_FORMAT_RSS, FEED_FORMAT_TEXT, FEED_FORMAT_XML
Constructor and Description |
---|
LocalFeedTaskProcessor() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canRead(RepoCtx ctx,
String connectedUser,
Map<String,Object> model) |
protected boolean |
canReadSite(RepoCtx ctx,
String siteIdIn,
String connectedUser,
String tenantDomain) |
void |
commitTransaction() |
void |
endTransaction() |
protected Map<String,List<String>> |
getActivityTypeTemplates(String repoEndPoint,
String ticket,
String subPath) |
protected Set<String> |
getFollowers(String userId,
String tenantDomain) |
protected freemarker.template.Configuration |
getFreemarkerConfiguration(RepoCtx ctx) |
protected Set<String> |
getSiteMembers(RepoCtx ctx,
String siteIdIn,
String tenantDomain) |
protected String |
getTenantDomain(String name) |
protected String |
getTenantName(String name,
String tenantDomain) |
long |
insertFeedEntry(ActivityFeedEntity feed) |
void |
rollbackTransaction() |
List<ActivityPostEntity> |
selectPosts(ActivityPostEntity selector) |
List<FeedControlEntity> |
selectUserFeedControls(String userId) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setContentService(ContentService contentService) |
void |
setDefaultEncoding(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(List<String> templateSearchPaths) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
void |
setUseRemoteCallbacks(boolean useRemoteCallbacks) |
void |
startTransaction() |
int |
updatePostStatus(long id,
ActivityPostEntity.STATUS status) |
acceptActivity, addMissingFormats, callWebScript, getActivityTemplates, getBaseActivityType, getFeedControls, getTemplateSubPath, process, processFreemarker, setUserNamesAreCaseSensitive
public void setPostDAO(ActivityPostDAO postDAO)
public void setFeedDAO(ActivityFeedDAO feedDAO)
public void setFeedControlDAO(FeedControlDAO feedControlDAO)
public void setSiteService(SiteService siteService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setContentService(ContentService contentService)
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public void setSubscriptionService(SubscriptionService subscriptionService)
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setDefaultEncoding(String defaultEncoding)
public void setUseRemoteCallbacks(boolean useRemoteCallbacks)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void startTransaction() throws SQLException
startTransaction
in class FeedTaskProcessor
SQLException
public void commitTransaction() throws SQLException
commitTransaction
in class FeedTaskProcessor
SQLException
public void rollbackTransaction() throws SQLException
rollbackTransaction
in class FeedTaskProcessor
SQLException
public void endTransaction() throws SQLException
endTransaction
in class FeedTaskProcessor
SQLException
public List<ActivityPostEntity> selectPosts(ActivityPostEntity selector) throws SQLException
selectPosts
in class FeedTaskProcessor
SQLException
public long insertFeedEntry(ActivityFeedEntity feed) throws SQLException
insertFeedEntry
in class FeedTaskProcessor
SQLException
public int updatePostStatus(long id, ActivityPostEntity.STATUS status) throws SQLException
updatePostStatus
in class FeedTaskProcessor
SQLException
public List<FeedControlEntity> selectUserFeedControls(String userId) throws SQLException
selectUserFeedControls
in class FeedTaskProcessor
SQLException
protected String getTenantName(String name, String tenantDomain)
getTenantName
in class FeedTaskProcessor
protected String getTenantDomain(String name)
getTenantDomain
in class FeedTaskProcessor
protected Set<String> getSiteMembers(RepoCtx ctx, String siteIdIn, String tenantDomain) throws Exception
getSiteMembers
in class FeedTaskProcessor
Exception
protected boolean canReadSite(RepoCtx ctx, String siteIdIn, String connectedUser, String tenantDomain) throws Exception
canReadSite
in class FeedTaskProcessor
Exception
protected boolean canRead(RepoCtx ctx, String connectedUser, Map<String,Object> model) throws Exception
canRead
in class FeedTaskProcessor
Exception
protected Map<String,List<String>> getActivityTypeTemplates(String repoEndPoint, String ticket, String subPath) throws Exception
getActivityTypeTemplates
in class FeedTaskProcessor
Exception
protected freemarker.template.Configuration getFreemarkerConfiguration(RepoCtx ctx)
getFreemarkerConfiguration
in class FeedTaskProcessor
protected Set<String> getFollowers(String userId, String tenantDomain) throws Exception
getFollowers
in class FeedTaskProcessor
Exception
Copyright © 2005–2017 Alfresco Software. All rights reserved.