public abstract class AbstractActivityStreamService extends AlfrescoService implements ActivityStreamService
CONTENT_CACHE, RENDITION_CACHE, session
Constructor and Description |
---|
AbstractActivityStreamService(AlfrescoSession repositorySession)
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract PagingResult<ActivityEntry> |
computeActivities(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url,
ListingContext listingContext)
Internal method to compute data from server and transform it as high
level object.
|
List<ActivityEntry> |
getActivityStream()
Allow currently logged in user to get their activity stream.
|
PagingResult<ActivityEntry> |
getActivityStream(ListingContext listingContext)
Allow currently logged in user to get their activity stream.
|
List<ActivityEntry> |
getActivityStream(String personIdentifier)
Allow to retrieve activities feed for a specific user.
|
PagingResult<ActivityEntry> |
getActivityStream(String personIdentifier,
ListingContext listingContext)
Allow to retrieve activities feed for a specific user.
|
protected abstract org.apache.chemistry.opencmis.commons.impl.UrlBuilder |
getSiteActivitiesUrl(String siteIdentifier,
ListingContext listingContext)
Internal method to retrieve for a specific site the activity stream url.
|
List<ActivityEntry> |
getSiteActivityStream(String siteName)
Allow currently logged in user to get feed for a specified site (if
private site then user must be a member or an admin user).
|
PagingResult<ActivityEntry> |
getSiteActivityStream(String siteIdentifier,
ListingContext listingContext)
Allow currently logged in user to get feed for a specified site (if
private site then user must be a member or an admin user).
|
protected abstract org.apache.chemistry.opencmis.commons.impl.UrlBuilder |
getUserActivitiesUrl(ListingContext listingContext)
Internal method to retrieve logged user activity stream url.
|
protected abstract org.apache.chemistry.opencmis.commons.impl.UrlBuilder |
getUserActivitiesUrl(String personIdentifier,
ListingContext listingContext)
Internal method to retrieve user activity stream url.
|
clear, convertException, convertNode, convertNode, convertStatusCode, delete, describeContents, getHttpInvoker, getSessionHttp, isCloudSession, isListNull, isMapNull, isObjectNull, isOnPremiseSession, isStringNull, post, put, read, saveContentStream, writeToParcel
public AbstractActivityStreamService(AlfrescoSession repositorySession)
repositorySession
- : Repository Session.public List<ActivityEntry> getActivityStream()
getActivityStream
in interface ActivityStreamService
protected abstract org.apache.chemistry.opencmis.commons.impl.UrlBuilder getUserActivitiesUrl(ListingContext listingContext)
listingContext
- : define characteristics of the result (Optional
for Onpremise)public PagingResult<ActivityEntry> getActivityStream(ListingContext listingContext)
getActivityStream
in interface ActivityStreamService
listingContext
- : define characteristics of resultpublic List<ActivityEntry> getActivityStream(String personIdentifier)
getActivityStream
in interface ActivityStreamService
personIdentifier
- : a specific userprotected abstract org.apache.chemistry.opencmis.commons.impl.UrlBuilder getUserActivitiesUrl(String personIdentifier, ListingContext listingContext)
personIdentifier
- : a specific userlistingContext
- : define characteristics of the result (Optional
for Onpremise)public PagingResult<ActivityEntry> getActivityStream(String personIdentifier, ListingContext listingContext)
getActivityStream
in interface ActivityStreamService
personIdentifier
- : a specific userlistingContext
- : define characteristics of the paging resultpublic List<ActivityEntry> getSiteActivityStream(String siteName)
getSiteActivityStream
in interface ActivityStreamService
siteName
- : Share site short nameprotected abstract org.apache.chemistry.opencmis.commons.impl.UrlBuilder getSiteActivitiesUrl(String siteIdentifier, ListingContext listingContext)
siteIdentifier
- : shortName of the sitelistingContext
- : define characteristics of the result (Optional
for Onpremise)public PagingResult<ActivityEntry> getSiteActivityStream(String siteIdentifier, ListingContext listingContext)
getSiteActivityStream
in interface ActivityStreamService
siteIdentifier
- : Share site short namelistingContext
- : define characteristics of resultprotected abstract PagingResult<ActivityEntry> computeActivities(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url, ListingContext listingContext)
url
- : Alfresco REST API activity urllistingContext
- : listing context to apply to the paging result.Copyright © 2012-2018 Alfresco Software. All Rights Reserved.