|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.activities.ActivityServiceImpl
public class ActivityServiceImpl
Activity Service Implementation
Constructor Summary | |
---|---|
ActivityServiceImpl()
|
Method Summary | |
---|---|
boolean |
existsFeedControl(FeedControl feedControl)
For current user, does the feed control exist ? |
java.util.List |
getFeedControls()
For current user, get feed controls |
java.util.List |
getFeedControls(java.lang.String userId)
For given user, get feed controls |
java.util.List |
getSiteFeedEntries(java.lang.String siteId,
java.lang.String format)
Retrieve site feed |
java.util.List |
getUserFeedEntries(java.lang.String feedUserId,
java.lang.String format,
java.lang.String siteId)
Retrieve user feed with optional site filter Will return activities for all users across all sites, or optionally for all users for specified site. |
java.util.List |
getUserFeedEntries(java.lang.String feedUserId,
java.lang.String format,
java.lang.String siteId,
boolean excludeThisUser,
boolean excludeOtherUsers)
Retrieve user feed with optional site filter and optional user filters Will return activities for users across all sites, or optionally for users for specified site. |
void |
postActivity(java.lang.String activityType,
java.lang.String siteId,
java.lang.String appTool,
NodeRef nodeRef)
Post a pre-defined activity type - certain activity data will be looked-up asynchronously, including: name (of nodeRef) displayPath typeQName firstName (of posting user) lastName (of posting user) |
void |
postActivity(java.lang.String activityType,
java.lang.String siteId,
java.lang.String appTool,
NodeRef nodeRef,
java.lang.String name)
Post a pre-defined activity type - eg. |
void |
postActivity(java.lang.String activityType,
java.lang.String siteId,
java.lang.String appTool,
NodeRef nodeRef,
java.lang.String name,
QName typeQName,
NodeRef parentNodeRef)
Post a pre-defined activity type - eg. |
void |
postActivity(java.lang.String activityType,
java.lang.String siteId,
java.lang.String appTool,
java.lang.String activityData)
Post a custom activity type |
void |
setActivityPostService(ActivityPostService activityPostService)
|
void |
setAuthorityService(AuthorityService authorityService)
|
void |
setFeedControl(FeedControl feedControl)
For current user, set feed control (opt-out) for a site or an appTool or a site/appTool combination |
void |
setFeedControlDAO(FeedControlDAO feedControlDAO)
|
void |
setFeedDAO(ActivityFeedDAO feedDAO)
|
void |
setMaxFeedItems(int maxFeedItems)
|
void |
setSiteService(SiteService siteService)
|
void |
setTenantService(TenantService tenantService)
|
void |
setUserNamesAreCaseSensitive(boolean userNamesAreCaseSensitive)
|
void |
unsetFeedControl(FeedControl feedControl)
For current user, unset feed control |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActivityServiceImpl()
Method Detail |
---|
public void setMaxFeedItems(int maxFeedItems)
public void setUserNamesAreCaseSensitive(boolean userNamesAreCaseSensitive)
public void setFeedDAO(ActivityFeedDAO feedDAO)
public void setFeedControlDAO(FeedControlDAO feedControlDAO)
public void setAuthorityService(AuthorityService authorityService)
public void setTenantService(TenantService tenantService)
public void setSiteService(SiteService siteService)
public void setActivityPostService(ActivityPostService activityPostService)
public void postActivity(java.lang.String activityType, java.lang.String siteId, java.lang.String appTool, java.lang.String activityData)
ActivityPostService
postActivity
in interface ActivityPostService
activityType
- - requiredsiteId
- - optional, if null will be stored as empty stringappTool
- - optional, if null will be stored as empty stringactivityData
- - requiredpublic void postActivity(java.lang.String activityType, java.lang.String siteId, java.lang.String appTool, NodeRef nodeRef)
ActivityPostService
postActivity
in interface ActivityPostService
activityType
- - requiredsiteId
- - optional, if null will be stored as empty stringappTool
- - optional, if null will be stored as empty stringnodeRef
- - required - do not use for deleted (or about to be deleted) nodeRefpublic void postActivity(java.lang.String activityType, java.lang.String siteId, java.lang.String appTool, NodeRef nodeRef, java.lang.String name)
ActivityPostService
postActivity
in interface ActivityPostService
activityType
- - requiredsiteId
- - optional, if null will be stored as empty stringappTool
- - optional, if null will be stored as empty stringnodeRef
- - required - do not use deleted (or about to be deleted) nodeRefname
- - optional - name of node (eg. prior to name change)public void postActivity(java.lang.String activityType, java.lang.String siteId, java.lang.String appTool, NodeRef nodeRef, java.lang.String name, QName typeQName, NodeRef parentNodeRef)
ActivityPostService
postActivity
in interface ActivityPostService
activityType
- - requiredsiteId
- - optional, if null will be stored as empty stringappTool
- - optional, if null will be stored as empty stringnodeRef
- - required - can be a deleted (or about to be deleted) nodeRefname
- - optional - name of nametypeQName
- - optional - type of nodeparentNodeRef
- - required - used to lookup path/displayPathpublic java.util.List getUserFeedEntries(java.lang.String feedUserId, java.lang.String format, java.lang.String siteId)
ActivityService
getUserFeedEntries
in interface ActivityService
feedUserId
- - requiredformat
- - requiredsiteId
- - optional, if set then will filter by given siteId else return all sites
public java.util.List getUserFeedEntries(java.lang.String feedUserId, java.lang.String format, java.lang.String siteId, boolean excludeThisUser, boolean excludeOtherUsers)
ActivityService
getUserFeedEntries
in interface ActivityService
feedUserId
- - requiredformat
- - requiredsiteId
- - optional, if set then will filter by given siteId else return all sitesexcludeThisUser
- - if TRUE then will exclude activities for this user (hence returning other users only)
public java.util.List getSiteFeedEntries(java.lang.String siteId, java.lang.String format)
ActivityService
getSiteFeedEntries
in interface ActivityService
format
- - required
public void setFeedControl(FeedControl feedControl)
ActivityService
setFeedControl
in interface ActivityService
feedControl
- - requiredpublic java.util.List getFeedControls()
ActivityService
getFeedControls
in interface ActivityService
public java.util.List getFeedControls(java.lang.String userId)
ActivityService
getFeedControls
in interface ActivityService
userId
- - required (must match
public void unsetFeedControl(FeedControl feedControl)
ActivityService
unsetFeedControl
in interface ActivityService
feedControl
- - requiredpublic boolean existsFeedControl(FeedControl feedControl)
ActivityService
existsFeedControl
in interface ActivityService
feedControl
- - required
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |