public class ActivityServiceImplV1Alpha2 extends ServiceBase<RestActivity,ActivityService<RestActivity>> implements ActivityService<RestActivity>
ActivityService.crudLifecycle, lifecycle, startedAFTER_CREATE_EVENT, AFTER_DELETE_EVENT, AFTER_UPDATE_EVENT, BEFORE_CREATE_EVENT, BEFORE_DELETE_EVENT, BEFORE_UPDATE_EVENT, CREATE_EVENT, DELETE_EVENT, UPDATE_EVENTAFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, START_EVENT, STOP_EVENT| Constructor and Description |
|---|
ActivityServiceImplV1Alpha2() |
| Modifier and Type | Method and Description |
|---|---|
RestActivity |
create(RestActivity newInstance)
Creates a new instance.
|
RestActivity |
create(RestActivity newActivity,
QueryParams queryParams)
Create new Activity from current Identity to targetIdentity
|
RestComment |
createComment(RestActivity existingRestActivity,
RestComment newRestComment)
Creates a new comment to this activity.
|
RestActivity |
delete(RestActivity existingInstance)
Deletes an existing instance.
|
RestComment |
deleteComment(RestComment existingRestComment)
Deletes an existing comment.
|
RestActivity |
get(String uuid)
Gets an existing instance by its uuid.
|
RestActivity |
get(String activityId,
QueryParams queryParams)
Gets an existing instance by its activityId and limit the number of
comment/like by by input parameter .
|
RealtimeListAccess<RestActivity> |
getActivityStream(RestIdentity restIdentity)
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<RestActivity> |
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<RestActivity> |
getFeedActivityStream(RestIdentity userRestIdentity)
Gets all activities from a stream owner, his connections and spaces
aggregated into one stream.
|
RealtimeListAccess<RestActivity> |
getFeedActivityStream(RestIdentity userRestIdentity,
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<RestActivity> |
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 userRestIdentity,
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(RestActivity existingRestActivity)
The authenticate identity likes an existing activity.
|
RestLike |
unlike(RestActivity existingRestActivity)
The authenticated identity unlikes an existing activity.
|
RestActivity |
update(RestActivity existingInstance)
Updates an existing instance.
|
addCRUDLifecycleListener, addLifecycleListener, doCreate, doDelete, doUpdate, findCRUDLifecycleListeners, findLifecycleListeners, postCreate, postDelete, postUpdate, preCreate, preDelete, preUpdate, removeCRUDLifecycleListener, removeLifecycleListener, start, stoppublic RestActivity create(RestActivity newInstance) throws SocialClientLibException
create in interface Service<RestActivity>newInstance - new instanceSocialClientLibExceptionpublic RestActivity create(RestActivity newActivity, QueryParams queryParams) throws SocialClientLibException
create in interface ActivityService<RestActivity>newActivity - ActivityqueryParams - the query paramsSocialClientLibExceptionpublic RestActivity get(String uuid) throws SocialClientLibException
get in interface Service<RestActivity>uuid - the uuidSocialClientLibExceptionpublic RestActivity update(RestActivity existingInstance) throws SocialClientLibException
update in interface Service<RestActivity>SocialClientLibExceptionpublic RestActivity delete(RestActivity existingInstance) throws SocialClientLibException
delete in interface Service<RestActivity>SocialClientLibExceptionpublic RealtimeListAccess<RestActivity> getActivityStream(RestIdentity restIdentity) 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);
getActivityStream in interface ActivityService<RestActivity>restIdentity - the owner stream identity, could be a user
or space identity.SocialClientLibExceptionpublic RealtimeListAccess<RestActivity> getActivityStream(RestIdentity restIdentity, QueryParams queryParams) throws SocialClientLibException
getActivityStream in interface ActivityService<RestActivity>SocialClientLibExceptionpublic RealtimeListAccess<RestActivity> getSpacesActivityStream(RestIdentity userRestIdentity) throws SocialClientLibException
getSpacesActivityStream in interface ActivityService<RestActivity>userRestIdentity - the associated user identitySocialClientLibExceptionpublic RealtimeListAccess<RestActivity> getSpacesActivityStream(RestIdentity userRestIdentity, QueryParams queryParams) throws SocialClientLibException
getSpacesActivityStream in interface ActivityService<RestActivity>SocialClientLibExceptionpublic RealtimeListAccess<RestActivity> getConnectionsActivityStream(RestIdentity userRestIdentity) throws SocialClientLibException
getConnectionsActivityStream in interface ActivityService<RestActivity>userRestIdentity - the associated user identitySocialClientLibExceptionpublic RealtimeListAccess<RestActivity> getConnectionsActivityStream(RestIdentity restIdentity, QueryParams queryParams) throws SocialClientLibException
getConnectionsActivityStream in interface ActivityService<RestActivity>SocialClientLibExceptionpublic RealtimeListAccess<RestActivity> getFeedActivityStream(RestIdentity userRestIdentity) throws SocialClientLibException
getFeedActivityStream in interface ActivityService<RestActivity>userRestIdentity - the associated user identitySocialClientLibExceptionpublic RealtimeListAccess<RestActivity> getFeedActivityStream(RestIdentity userRestIdentity, QueryParams queryParams) throws SocialClientLibException
getFeedActivityStream in interface ActivityService<RestActivity>SocialClientLibExceptionpublic RestComment createComment(RestActivity existingRestActivity, RestComment newRestComment) throws SocialClientLibException
createComment in interface ActivityService<RestActivity>existingRestActivity - the existing activitynewRestComment - the new created commentSocialClientLibExceptionpublic RestComment getComment(String commentId) throws SocialClientLibException
getComment in interface ActivityService<RestActivity>commentId - the comment idSocialClientLibExceptionpublic RestComment deleteComment(RestComment existingRestComment) throws SocialClientLibException
deleteComment in interface ActivityService<RestActivity>existingRestComment - the existing commentSocialClientLibExceptionpublic RestLike like(RestActivity existingRestActivity) throws SocialClientLibException
like in interface ActivityService<RestActivity>existingRestActivity - the existing activityRestLike instanceSocialClientLibExceptionpublic RestLike unlike(RestActivity existingRestActivity) throws SocialClientLibException
unlike in interface ActivityService<RestActivity>existingRestActivity - the existing activityRestLike instance.SocialClientLibExceptionpublic RestActivity get(String activityId, QueryParams queryParams) throws SocialClientLibException
get in interface ActivityService<RestActivity>activityId - the activityIdqueryParams - the query paramsSocialClientLibExceptionCopyright © 2011–2015 eXo Platform SAS. All rights reserved.