public interface ActivityService<Activity> extends Service<Activity>
| Modifier and Type | Method and Description |
|---|---|
RestActivity |
create(RestActivity newActivity,
QueryParams queryParams)
Create new Activity from current Identity to targetIdentity
|
RestComment |
createComment(Activity existingActivity,
RestComment newRestComment)
Creates a new comment to this activity.
|
RestComment |
deleteComment(RestComment existingRestComment)
Deletes an existing comment.
|
Activity |
get(String activityId,
QueryParams queryParams)
Gets an existing instance by its activityId and limit the number of
comment/like by by input parameter .
|
RealtimeListAccess<Activity> |
getActivityStream(RestIdentity ownerStreamRestIdentity)
Gets activity stream from an owner stream identity.
|
RealtimeListAccess<RestActivity> |
getActivityStream(RestIdentity restIdentity,
QueryParams queryParams)
Get Activity Stream with input parameter (limit, number of comment, number
of like);
|
RestComment |
getComment(String commentId)
Gets an existing comment by its id.
|
RealtimeListAccess<Activity> |
getConnectionsActivityStream(RestIdentity userRestIdentity)
Gets all connections' activities aggregated into one stream.
|
RealtimeListAccess<RestActivity> |
getConnectionsActivityStream(RestIdentity restIdentity,
QueryParams queryParams)
Gets all connections' activities aggregated into one stream with input
parameter (limit, number of comment, number of like);
|
RealtimeListAccess<Activity> |
getFeedActivityStream(RestIdentity userRestIdentity)
Gets all activities from a stream owner, his connections and spaces
aggregated into one stream.
|
RealtimeListAccess<RestActivity> |
getFeedActivityStream(RestIdentity restIdentity,
QueryParams queryParams)
Gets all activities from a stream owner, his connections and spaces
aggregated into one stream with input parameter (limit, number of comment,
number of like);
|
RealtimeListAccess<Activity> |
getSpacesActivityStream(RestIdentity userRestIdentity)
Gets all activities from spaces which a user is a member of that space
aggregated into one stream.
|
RealtimeListAccess<RestActivity> |
getSpacesActivityStream(RestIdentity restIdentity,
QueryParams queryParams)
Gets all activities from spaces which a user is a member of that space
aggregated into one stream with input parameter (limit, number of comment,
number of like);
|
RestLike |
like(Activity existingActivity)
The authenticate identity likes an existing activity.
|
RestLike |
unlike(Activity existingActivity)
The authenticated identity unlikes an existing activity.
|
RealtimeListAccess<Activity> getActivityStream(RestIdentity ownerStreamRestIdentity) throws SocialClientLibException
RestIdentity demoIdentity = identityService.get("123456789abcdef");
RealtimeListAccess<RestActivity> activityListAccess = activityService.getActivityStream(demoIdentity);
or:
RestIdentity spaceIdentity = new RestIdentityImpl();
spaceIdentity.setProviderId("space");
spaceIdentity.setRemoteId("hello_world");
RealtimeListAccess<RestActivity> activityListAccess = activityService.getActivitySream(spaceIdentity);
ownerStreamRestIdentity - the owner stream identity, could be a user
or space identity.AccessDeniedExceptionServiceExceptionSocialClientLibExceptionRealtimeListAccess<RestActivity> getActivityStream(RestIdentity restIdentity, QueryParams queryParams) throws SocialClientLibException
restIdentity - queryParams - AccessDeniedExceptionServiceExceptionSocialClientLibExceptionRestActivity create(RestActivity newActivity, QueryParams queryParams) throws SocialClientLibException
newActivity - ActivityqueryParams - the query paramsAccessDeniedExceptionServiceExceptionSocialClientLibExceptionRealtimeListAccess<Activity> getSpacesActivityStream(RestIdentity userRestIdentity) throws SocialClientLibException
userRestIdentity - the associated user identityAccessDeniedExceptionServiceExceptionSocialClientLibExceptionRealtimeListAccess<RestActivity> getSpacesActivityStream(RestIdentity restIdentity, QueryParams queryParams) throws SocialClientLibException
restIdentity - queryParams - AccessDeniedExceptionServiceExceptionSocialClientLibExceptionRealtimeListAccess<Activity> getConnectionsActivityStream(RestIdentity userRestIdentity) throws SocialClientLibException
userRestIdentity - the associated user identityAccessDeniedExceptionServiceExceptionSocialClientLibExceptionRealtimeListAccess<RestActivity> getConnectionsActivityStream(RestIdentity restIdentity, QueryParams queryParams) throws SocialClientLibException
restIdentity - queryParams - AccessDeniedExceptionServiceExceptionSocialClientLibExceptionRealtimeListAccess<Activity> getFeedActivityStream(RestIdentity userRestIdentity) throws SocialClientLibException
userRestIdentity - the associated user identityAccessDeniedExceptionServiceExceptionSocialClientLibExceptionRealtimeListAccess<RestActivity> getFeedActivityStream(RestIdentity restIdentity, QueryParams queryParams) throws SocialClientLibException
restIdentity - queryParams - AccessDeniedExceptionServiceExceptionSocialClientLibExceptionRestComment createComment(Activity existingActivity, RestComment newRestComment) throws SocialClientLibException
existingActivity - the existing activitynewRestComment - the new created commentAccessDeniedExceptionServiceExceptionSocialClientLibExceptionRestComment getComment(String commentId) throws SocialClientLibException
commentId - the comment idAccessDeniedExceptionServiceExceptionSocialClientLibExceptionRestComment deleteComment(RestComment existingRestComment) throws SocialClientLibException
existingRestComment - the existing commentAccessDeniedExceptionServiceExceptionSocialClientLibExceptionRestLike like(Activity existingActivity) throws SocialClientLibException
existingActivity - the existing activityRestLike instanceAccessDeniedExceptionServiceExceptionSocialClientLibExceptionRestLike unlike(Activity existingActivity) throws SocialClientLibException
existingActivity - the existing activityRestLike instance.AccessDeniedExceptionServiceExceptionSocialClientLibExceptionActivity get(String activityId, QueryParams queryParams) throws SocialClientLibException
activityId - the activityIdqueryParams - the query paramsAccessDeniedExceptionServiceExceptionSocialClientLibExceptionCopyright © 2011–2016 eXo Platform SAS. All rights reserved.