@AlfrescoPublicApi public interface ActivityService extends ActivityPostService
Modifier and Type | Method and Description |
---|---|
boolean |
existsFeedControl(FeedControl feedControl)
For current user, does the feed control exist ?
|
List<FeedControl> |
getFeedControls()
For current user, get feed controls
|
List<FeedControl> |
getFeedControls(String userId)
For given user, get feed controls
|
int |
getMaxFeedItems()
Return maximum configured item entries (per feed)
|
org.alfresco.query.PagingResults<ActivityFeedEntity> |
getPagedUserFeedEntries(String feedUserId,
String siteId,
boolean excludeThisUser,
boolean excludeOtherUsers,
long minFeedId,
org.alfresco.query.PagingRequest pagingRequest) |
List<String> |
getSiteFeedEntries(String siteId)
Retrieve site feed
|
List<String> |
getUserFeedEntries(String userId,
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.
|
List<String> |
getUserFeedEntries(String userId,
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.
|
List<ActivityFeedEntity> |
getUserFeedEntries(String feedUserId,
String siteId,
boolean excludeThisUser,
boolean excludeOtherUsers,
long minFeedId)
Retrieve user feed with optional site filter and optional user filters and optional min feed DB id
Will return activities for users across all sites, or optionally for users for specified site.
|
List<String> |
getUserFeedEntries(String userId,
String siteId,
boolean excludeThisUser,
boolean excludeOtherUsers,
Set<String> userFilter,
Set<String> actvityFilter)
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.
|
List<ActivityFeedEntity> |
getUserFeedEntries(String feedUserId,
String siteId,
boolean excludeThisUser,
boolean excludeOtherUsers,
Set<String> userFilter,
Set<String> actvityFilter,
long minFeedId)
Retrieve user feed with optional site filter and optional user filters and optional min feed DB id
Will return activities for users across all sites, or optionally for users for specified site.
|
void |
setFeedControl(FeedControl feedControl)
For current user, set feed control (opt-out) for a site or an appTool or a site/appTool combination
|
void |
unsetFeedControl(FeedControl feedControl)
For current user, unset feed control
|
postActivity, postActivity, postActivity, postActivity, postActivity, postActivity, postActivity
@NotAuditable List<String> getUserFeedEntries(String userId, String siteId)
userId
- - requiredsiteId
- - optional, if set then will filter by given siteId else return all sites@NotAuditable List<String> getUserFeedEntries(String userId, String siteId, boolean excludeThisUser, boolean excludeOtherUsers)
userId
- - 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)excludeOtherUsers
- - if TRUE then will exclude activities for other users (hence returning this user only)@NotAuditable List<String> getUserFeedEntries(String userId, String siteId, boolean excludeThisUser, boolean excludeOtherUsers, Set<String> userFilter, Set<String> actvityFilter)
userId
- - 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)excludeOtherUsers
- - if TRUE then will exclude activities for other users (hence returning this user only)userFilter
- - if not NULL then will only return activities of users in this setactvityFilter
- - if not NULL then will only return activities that are in this set@NotAuditable List<ActivityFeedEntity> getUserFeedEntries(String feedUserId, String siteId, boolean excludeThisUser, boolean excludeOtherUsers, long minFeedId)
feedUserId
- - 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)excludeOtherUsers
- - if TRUE then will exclude activities for other users (hence returning this user only)minFeedId
- - inclusive from min feed DB id, if -1 then return all available@NotAuditable List<ActivityFeedEntity> getUserFeedEntries(String feedUserId, String siteId, boolean excludeThisUser, boolean excludeOtherUsers, Set<String> userFilter, Set<String> actvityFilter, long minFeedId)
feedUserId
- - 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)excludeOtherUsers
- - if TRUE then will exclude activities for other users (hence returning this user only)userFilter
- - if not NULL then will only return activities of users in this setactvityFilter
- - if not NULL then will only return activities that are in this setminFeedId
- - inclusive from min feed DB id, if -1 then return all available@NotAuditable org.alfresco.query.PagingResults<ActivityFeedEntity> getPagedUserFeedEntries(String feedUserId, String siteId, boolean excludeThisUser, boolean excludeOtherUsers, long minFeedId, org.alfresco.query.PagingRequest pagingRequest)
@NotAuditable List<String> getSiteFeedEntries(String siteId)
siteId
- - required@NotAuditable int getMaxFeedItems()
@NotAuditable void setFeedControl(FeedControl feedControl)
feedControl
- - required@NotAuditable List<FeedControl> getFeedControls(String userId)
userId
- - required (must match@NotAuditable List<FeedControl> getFeedControls()
@NotAuditable void unsetFeedControl(FeedControl feedControl)
feedControl
- - required@NotAuditable boolean existsFeedControl(FeedControl feedControl)
feedControl
- - requiredCopyright © 2005–2017 Alfresco Software. All rights reserved.