|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ActivityService<Activity>
Activity Service.
| Method Summary | |
|---|---|
RestComment |
createComment(Activity existingActivity,
RestComment newRestComment)
Creates a new comment to this activity. |
RestComment |
deleteComment(RestComment existingRestComment)
Deletes an existing comment. |
RealtimeListAccess<Activity> |
getActivityStream(RestIdentity ownerStreamRestIdentity)
Gets activity stream from an owner stream identity. |
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<Activity> |
getFeedActivityStream(RestIdentity userRestIdentity)
Gets all activities from a stream owner, his connections and spaces aggregated into one stream. |
RealtimeListAccess<Activity> |
getSpacesActivityStream(RestIdentity userRestIdentity)
Gets all activities from spaces which a user is a member of that space aggregated into one stream. |
RestLike |
like(Activity existingActivity)
The authenticate identity likes an existing activity. |
RestLike |
unlike(Activity existingActivity)
The authenticated identity unlikes an existing activity. |
| Methods inherited from interface org.exoplatform.social.client.api.service.Service |
|---|
create, delete, get, update |
| Method Detail |
|---|
RealtimeListAccess<Activity> getActivityStream(RestIdentity ownerStreamRestIdentity)
throws AccessDeniedException,
ServiceException
RestIdentity demoIdentity = identityService.get("123456789abcdef");
RealtimeListAccess activityListAccess = activityService.getActivityStream(demoIdentity);
or:
RestIdentity spaceIdentity = new RestIdentityImpl();
spaceIdentity.setProviderId("space");
spaceIdentity.setRemoteId("hello_world");
RealtimeListAccess activityListAccess = activityService.getActivitySream(spaceIdentity);
ownerStreamRestIdentity - the owner stream identity, could be a user or space identity.
AccessDeniedException
ServiceException
RealtimeListAccess<Activity> getSpacesActivityStream(RestIdentity userRestIdentity)
throws AccessDeniedException,
ServiceException
userRestIdentity - the associated user identity
AccessDeniedException
ServiceException
RealtimeListAccess<Activity> getConnectionsActivityStream(RestIdentity userRestIdentity)
throws AccessDeniedException,
ServiceException
userRestIdentity - the associated user identity
AccessDeniedException
ServiceException
RealtimeListAccess<Activity> getFeedActivityStream(RestIdentity userRestIdentity)
throws AccessDeniedException,
ServiceException
userRestIdentity - the associated user identity
AccessDeniedException
ServiceException
RestComment createComment(Activity existingActivity,
RestComment newRestComment)
throws AccessDeniedException,
ServiceException
existingActivity - the existing activitynewRestComment - the new created comment
AccessDeniedException
ServiceException
RestComment getComment(String commentId)
throws AccessDeniedException,
ServiceException
commentId - the comment id
AccessDeniedException
ServiceException
RestComment deleteComment(RestComment existingRestComment)
throws AccessDeniedException,
ServiceException
existingRestComment - the existing comment
AccessDeniedException
ServiceException
RestLike like(Activity existingActivity)
throws AccessDeniedException,
ServiceException
existingActivity - the existing activity
RestLike instance
AccessDeniedException
ServiceException
RestLike unlike(Activity existingActivity)
throws AccessDeniedException,
ServiceException
existingActivity - the existing activity
RestLike instance.
AccessDeniedException
ServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||