Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

org.alfresco.service.cmr.activities
Interface ActivityService
All Superinterfaces:
ActivityPostService

@org.alfresco.api.AlfrescoPublicApi
public interface ActivityService
extends ActivityPostService
The activity service

Method Summary
boolean
existsFeedControl(org.alfresco.service.cmr.activities.FeedControl feedControl)
          For current user, does the feed control exist ?
List<org.alfresco.service.cmr.activities.FeedControl>
getFeedControls()
          For current user, get feed controls
List<org.alfresco.service.cmr.activities.FeedControl>
getFeedControls(String userId)
          For given user, get feed controls
int
getMaxFeedItems()
          Return maximum configured item entries (per feed)
PagingResults<org.alfresco.repo.domain.activities.ActivityFeedEntity>
getPagedUserFeedEntries(String feedUserId, String siteId, boolean excludeThisUser, boolean excludeOtherUsers, long minFeedId, PagingRequest pagingRequest)
getSiteFeedEntries(String siteId)
          Retrieve site feed
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.
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<org.alfresco.repo.domain.activities.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.
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<org.alfresco.repo.domain.activities.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(org.alfresco.service.cmr.activities.FeedControl feedControl)
          For current user, set feed control (opt-out) for a site or an appTool or a site/appTool combination
void
unsetFeedControl(org.alfresco.service.cmr.activities.FeedControl feedControl)
          For current user, unset feed control
Methods inherited from interface org.alfresco.service.cmr.activities.ActivityPostService
postActivity, postActivity, postActivity, postActivity, postActivity, postActivity, postActivity
Method Detail
getUserFeedEntries
@NotAuditable
List<StringgetUserFeedEntries(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.
Parameters:
userId - - required
siteId - - optional, if set then will filter by given siteId else return all sites
Returns:
list of JSON feed entries

getUserFeedEntries
@NotAuditable
List<StringgetUserFeedEntries(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 - - required
siteId - - optional, if set then will filter by given siteId else return all sites
excludeThisUser - - 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<StringgetUserFeedEntries(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 - - required
siteId - - optional, if set then will filter by given siteId else return all sites
excludeThisUser - - 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 set
actvityFilter - - if not NULL then will only return activities that are in this set
Returns:
list of JSON feed entries

getUserFeedEntries
@NotAuditable
List<org.alfresco.repo.domain.activities.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 - - required
siteId - - optional, if set then will filter by given siteId else return all sites
excludeThisUser - - 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<org.alfresco.repo.domain.activities.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 - - required
siteId - - optional, if set then will filter by given siteId else return all sites
excludeThisUser - - 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 set
actvityFilter - - if not NULL then will only return activities that are in this set
minFeedId - - inclusive from min feed DB id, if -1 then return all available
Returns:
list of JSON feed entries

getPagedUserFeedEntries
@NotAuditable
PagingResults<org.alfresco.repo.domain.activities.ActivityFeedEntity> getPagedUserFeedEntries(String feedUserId,
                                                                                              String siteId,
                                                                                              boolean excludeThisUser,
                                                                                              boolean excludeOtherUsers,
                                                                                              long minFeedId,
                                                                                              PagingRequest pagingRequest)

getSiteFeedEntries
@NotAuditable
List<StringgetSiteFeedEntries(String siteId)
Retrieve site feed
Parameters:
siteId - - required
Returns:
list of JSON feed entries

getMaxFeedItems
@NotAuditable
int getMaxFeedItems()
Return maximum configured item entries (per feed)
Returns:
int

setFeedControl
@NotAuditable
void setFeedControl(org.alfresco.service.cmr.activities.FeedControl feedControl)
For current user, set feed control (opt-out) for a site or an appTool or a site/appTool combination
Parameters:
feedControl - - required

getFeedControls
@NotAuditable
List<org.alfresco.service.cmr.activities.FeedControl> getFeedControls(String userId)
For given user, get feed controls
Parameters:
userId - - required (must match
Returns:
list of user feed controls

getFeedControls
@NotAuditable
List<org.alfresco.service.cmr.activities.FeedControl> getFeedControls()
For current user, get feed controls
Returns:
list of user feed controls

unsetFeedControl
@NotAuditable
void unsetFeedControl(org.alfresco.service.cmr.activities.FeedControl feedControl)
For current user, unset feed control
Parameters:
feedControl - - required

existsFeedControl
@NotAuditable
boolean existsFeedControl(org.alfresco.service.cmr.activities.FeedControl feedControl)
For current user, does the feed control exist ?
Parameters:
feedControl - - required
Returns:
true, if user feed control exists

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2018 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.