|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.social.client.core.service.ServiceBase<RestActivity,ActivityService<RestActivity>>
org.exoplatform.social.client.core.service.ActivityServiceImplV1Alpha2
public class ActivityServiceImplV1Alpha2
Implementation of ActivityService.
| Field Summary |
|---|
| Fields inherited from class org.exoplatform.social.client.core.service.ServiceBase |
|---|
crudLifecycle, lifecycle, started |
| Fields inherited from interface org.exoplatform.social.client.api.event.CRUDLifecycle |
|---|
AFTER_CREATE_EVENT, AFTER_DELETE_EVENT, AFTER_UPDATE_EVENT, BEFORE_CREATE_EVENT, BEFORE_DELETE_EVENT, BEFORE_UPDATE_EVENT, CREATE_EVENT, DELETE_EVENT, UPDATE_EVENT |
| Fields inherited from interface org.exoplatform.social.client.api.event.Lifecycle |
|---|
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, START_EVENT, STOP_EVENT |
| Constructor Summary | |
|---|---|
ActivityServiceImplV1Alpha2()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.exoplatform.social.client.core.service.ServiceBase |
|---|
addCRUDLifecycleListener, addLifecycleListener, doCreate, doDelete, doUpdate, findCRUDLifecycleListeners, findLifecycleListeners, postCreate, postDelete, postUpdate, preCreate, preDelete, preUpdate, removeCRUDLifecycleListener, removeLifecycleListener, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActivityServiceImplV1Alpha2()
| Method Detail |
|---|
public RestActivity create(RestActivity newInstance)
throws SocialClientLibException
create in interface Service<RestActivity>newInstance - new instance
SocialClientLibException
public RestActivity create(RestActivity newActivity,
QueryParams queryParams)
throws SocialClientLibException
create in interface ActivityService<RestActivity>newActivity - ActivityqueryParams - the query params
SocialClientLibException
public RestActivity get(String uuid)
throws SocialClientLibException
get in interface Service<RestActivity>uuid - the uuid
SocialClientLibException
public RestActivity update(RestActivity existingInstance)
throws SocialClientLibException
update in interface Service<RestActivity>SocialClientLibException
public RestActivity delete(RestActivity existingInstance)
throws SocialClientLibException
delete in interface Service<RestActivity>SocialClientLibException
public RealtimeListAccess<RestActivity> getActivityStream(RestIdentity restIdentity)
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);
getActivityStream in interface ActivityService<RestActivity>restIdentity - the owner stream identity, could be a user or space identity.
SocialClientLibException
public RealtimeListAccess<RestActivity> getActivityStream(RestIdentity restIdentity,
QueryParams queryParams)
throws SocialClientLibException
getActivityStream in interface ActivityService<RestActivity>SocialClientLibException
public RealtimeListAccess<RestActivity> getSpacesActivityStream(RestIdentity userRestIdentity)
throws SocialClientLibException
getSpacesActivityStream in interface ActivityService<RestActivity>userRestIdentity - the associated user identity
SocialClientLibException
public RealtimeListAccess<RestActivity> getSpacesActivityStream(RestIdentity userRestIdentity,
QueryParams queryParams)
throws SocialClientLibException
getSpacesActivityStream in interface ActivityService<RestActivity>SocialClientLibException
public RealtimeListAccess<RestActivity> getConnectionsActivityStream(RestIdentity userRestIdentity)
throws SocialClientLibException
getConnectionsActivityStream in interface ActivityService<RestActivity>userRestIdentity - the associated user identity
SocialClientLibException
public RealtimeListAccess<RestActivity> getConnectionsActivityStream(RestIdentity restIdentity,
QueryParams queryParams)
throws SocialClientLibException
getConnectionsActivityStream in interface ActivityService<RestActivity>SocialClientLibException
public RealtimeListAccess<RestActivity> getFeedActivityStream(RestIdentity userRestIdentity)
throws SocialClientLibException
getFeedActivityStream in interface ActivityService<RestActivity>userRestIdentity - the associated user identity
SocialClientLibException
public RealtimeListAccess<RestActivity> getFeedActivityStream(RestIdentity userRestIdentity,
QueryParams queryParams)
throws SocialClientLibException
getFeedActivityStream in interface ActivityService<RestActivity>SocialClientLibException
public RestComment createComment(RestActivity existingRestActivity,
RestComment newRestComment)
throws SocialClientLibException
createComment in interface ActivityService<RestActivity>existingRestActivity - the existing activitynewRestComment - the new created comment
SocialClientLibException
public RestComment getComment(String commentId)
throws SocialClientLibException
getComment in interface ActivityService<RestActivity>commentId - the comment id
SocialClientLibException
public RestComment deleteComment(RestComment existingRestComment)
throws SocialClientLibException
deleteComment in interface ActivityService<RestActivity>existingRestComment - the existing comment
SocialClientLibException
public RestLike like(RestActivity existingRestActivity)
throws SocialClientLibException
like in interface ActivityService<RestActivity>existingRestActivity - the existing activity
RestLike instance
SocialClientLibException
public RestLike unlike(RestActivity existingRestActivity)
throws SocialClientLibException
unlike in interface ActivityService<RestActivity>existingRestActivity - the existing activity
RestLike instance.
SocialClientLibException
public RestActivity get(String activityId,
QueryParams queryParams)
throws SocialClientLibException
get in interface ActivityService<RestActivity>activityId - the activityIdqueryParams - the query params
SocialClientLibException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||