Interface ActivityService
- All Superinterfaces:
ActivityPostService
- All Known Implementing Classes:
ActivityServiceImpl
The activity service
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsFeedControl(FeedControl feedControl) For current user, does the feed control exist ?For current user, get feed controlsgetFeedControls(String userId) For given user, get feed controlsintReturn 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) getSiteFeedEntries(String siteId) Retrieve site feedgetUserFeedEntries(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.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.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.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.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.voidsetFeedControl(FeedControl feedControl) For current user, set feed control (opt-out) for a site or an appTool or a site/appTool combinationvoidunsetFeedControl(FeedControl feedControl) For current user, unset feed controlMethods inherited from interface org.alfresco.service.cmr.activities.ActivityPostService
postActivity, postActivity, postActivity, postActivity, postActivity, postActivity, postActivity
-
Method Details
-
getUserFeedEntries
Retrieve user feed with optional site filter Will return activities for all users across all sites, or optionally for all users for specified site.- Parameters:
userId- - requiredsiteId- - optional, if set then will filter by given siteId else return all sites- Returns:
- list of JSON feed entries
-
getUserFeedEntries
@NotAuditable 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. User filters are: - all user activities (excludeThisUser = false, excludeOtherUsers = false) - other user activities (excludeThisUser = true, excludeOtherUsers = false) - my user activities (excludeThisUser = false, excludeOtherUsers = true) note: if both excludes are true then no activities will be returned.- Parameters:
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)- Returns:
- list of JSON feed entries
-
getUserFeedEntries
@NotAuditable 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. User filters are: - all user activities (excludeThisUser = false, excludeOtherUsers = false) - other user activities (excludeThisUser = true, excludeOtherUsers = false) - my user activities (excludeThisUser = false, excludeOtherUsers = true) note: if both excludes are true then no activities will be returned.- Parameters:
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- Returns:
- list of JSON feed entries
-
getUserFeedEntries
@NotAuditable 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. User filters are: - all user activities (excludeThisUser = false, excludeOtherUsers = false) - other user activities (excludeThisUser = true, excludeOtherUsers = false) - my user activities (excludeThisUser = false, excludeOtherUsers = true) note: if both excludes are true then no activities will be returned.- Parameters:
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- Returns:
- list of JSON feed entries
-
getUserFeedEntries
@NotAuditable 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. User filters are: - all user activities (excludeThisUser = false, excludeOtherUsers = false) - other user activities (excludeThisUser = true, excludeOtherUsers = false) - my user activities (excludeThisUser = false, excludeOtherUsers = true) note: if both excludes are true then no activities will be returned.- Parameters:
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- Returns:
- list of JSON feed entries
-
getPagedUserFeedEntries
@NotAuditable org.alfresco.query.PagingResults<ActivityFeedEntity> getPagedUserFeedEntries(String feedUserId, String siteId, boolean excludeThisUser, boolean excludeOtherUsers, long minFeedId, org.alfresco.query.PagingRequest pagingRequest) -
getSiteFeedEntries
Retrieve site feed- Parameters:
siteId- - required- Returns:
- list of JSON feed entries
-
getMaxFeedItems
Return maximum configured item entries (per feed)- Returns:
- int
-
setFeedControl
For current user, set feed control (opt-out) for a site or an appTool or a site/appTool combination- Parameters:
feedControl- - required
-
getFeedControls
For given user, get feed controls- Parameters:
userId- - required (must match- Returns:
- list of user feed controls
-
getFeedControls
For current user, get feed controls- Returns:
- list of user feed controls
-
unsetFeedControl
For current user, unset feed control- Parameters:
feedControl- - required
-
existsFeedControl
For current user, does the feed control exist ?- Parameters:
feedControl- - required- Returns:
- true, if user feed control exists
-