|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ActivityService<Activity>
Activity Service.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.exoplatform.social.client.api.service.Service |
|---|
create, delete, get, update |
| Method Detail |
|---|
RealtimeListAccess<Activity> getActivityStream(RestIdentity ownerStreamRestIdentity)
throws SocialClientLibException
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
SocialClientLibException
RealtimeListAccess<RestActivity> getActivityStream(RestIdentity restIdentity,
QueryParams queryParams)
throws SocialClientLibException
restIdentity - queryParams -
AccessDeniedException
ServiceException
SocialClientLibException
RestActivity create(RestActivity newActivity,
QueryParams queryParams)
throws SocialClientLibException
newActivity - ActivityqueryParams - the query params
AccessDeniedException
ServiceException
SocialClientLibException
RealtimeListAccess<Activity> getSpacesActivityStream(RestIdentity userRestIdentity)
throws SocialClientLibException
userRestIdentity - the associated user identity
AccessDeniedException
ServiceException
SocialClientLibException
RealtimeListAccess<RestActivity> getSpacesActivityStream(RestIdentity restIdentity,
QueryParams queryParams)
throws SocialClientLibException
restIdentity - queryParams -
AccessDeniedException
ServiceException
SocialClientLibException
RealtimeListAccess<Activity> getConnectionsActivityStream(RestIdentity userRestIdentity)
throws SocialClientLibException
userRestIdentity - the associated user identity
AccessDeniedException
ServiceException
SocialClientLibException
RealtimeListAccess<RestActivity> getConnectionsActivityStream(RestIdentity restIdentity,
QueryParams queryParams)
throws SocialClientLibException
restIdentity - queryParams -
AccessDeniedException
ServiceException
SocialClientLibException
RealtimeListAccess<Activity> getFeedActivityStream(RestIdentity userRestIdentity)
throws SocialClientLibException
userRestIdentity - the associated user identity
AccessDeniedException
ServiceException
SocialClientLibException
RealtimeListAccess<RestActivity> getFeedActivityStream(RestIdentity restIdentity,
QueryParams queryParams)
throws SocialClientLibException
restIdentity - queryParams -
AccessDeniedException
ServiceException
SocialClientLibException
RestComment createComment(Activity existingActivity,
RestComment newRestComment)
throws SocialClientLibException
existingActivity - the existing activitynewRestComment - the new created comment
AccessDeniedException
ServiceException
SocialClientLibException
RestComment getComment(String commentId)
throws SocialClientLibException
commentId - the comment id
AccessDeniedException
ServiceException
SocialClientLibException
RestComment deleteComment(RestComment existingRestComment)
throws SocialClientLibException
existingRestComment - the existing comment
AccessDeniedException
ServiceException
SocialClientLibException
RestLike like(Activity existingActivity)
throws SocialClientLibException
existingActivity - the existing activity
RestLike instance
AccessDeniedException
ServiceException
SocialClientLibException
RestLike unlike(Activity existingActivity)
throws SocialClientLibException
existingActivity - the existing activity
RestLike instance.
AccessDeniedException
ServiceException
SocialClientLibException
Activity get(String activityId,
QueryParams queryParams)
throws SocialClientLibException
activityId - the activityIdqueryParams - the query params
AccessDeniedException
ServiceException
SocialClientLibException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||