|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.social.service.rest.ActivitiesRestService
public class ActivitiesRestService
ActivitiesRestService.java
Provide rest services for activity gadget: like/unlike; comment; delete activity.
apis:
GET: /restContextName/social/activities/{activityId}/likes/show.{format}
POST: /restContextName/social/activities/{activityId}/likes/update.{format}
POST: /restContextName/social/activities/{activityId}/likes/destroy/{identity}.{format}
...
See methods for more api details.
| Nested Class Summary | |
|---|---|
static class |
ActivitiesRestService.CommentList
CommentList model |
static class |
ActivitiesRestService.LikeList
LikeList model |
| Constructor Summary | |
|---|---|
ActivitiesRestService()
constructor |
|
| Method Summary | |
|---|---|
javax.ws.rs.core.Response |
createCommentActivityById(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format,
String text)
Comment an existing activity from a specified activity Id. |
javax.ws.rs.core.Response |
destroyActivity(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format)
Destroy activity and return the JSON/XML format. |
javax.ws.rs.core.Response |
destroyComment(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String commentId,
String format)
Destroy comments and return the JSON/XML format. |
javax.ws.rs.core.Response |
destroyLike(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String identityId,
String format)
Destroy like by identityId and return the JSON/XML format. |
javax.ws.rs.core.Response |
getActivityById(javax.ws.rs.core.UriInfo uriInfo,
String portalContainerName,
String activityId,
String format,
String showPosterIdentity,
int numberOfComments,
String showActivityStream,
int numberOfLikes)
Get an activity by its Id. |
javax.ws.rs.core.Response |
showComments(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format)
Show comment list by the JSON/XML format. |
javax.ws.rs.core.Response |
showComments(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format,
Integer offset,
Integer limit)
Show comment list by the JSON/XML format with limit and offset. |
javax.ws.rs.core.Response |
showLikes(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format)
Show list of like by activityId and return the JSON/XML format. |
javax.ws.rs.core.Response |
updateComment(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format,
org.exoplatform.social.core.activity.model.ExoSocialActivityImpl comment)
Update comment by the JSON/XML format. |
javax.ws.rs.core.Response |
updateLike(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format,
Like like)
Update like by the JSON/XML format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActivitiesRestService()
| Method Detail |
|---|
public javax.ws.rs.core.Response destroyActivity(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format)
throws Exception
uriInfo - activityId - format -
Exception
public javax.ws.rs.core.Response showLikes(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format)
throws Exception
uriInfo - activityId - format -
Exception
public javax.ws.rs.core.Response updateLike(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format,
Like like)
throws Exception
uriInfo - activityId - format - like -
Exception
public javax.ws.rs.core.Response destroyLike(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String identityId,
String format)
throws Exception
uriInfo - activityId - identityId - format -
Exception
public javax.ws.rs.core.Response showComments(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format)
throws Exception
uriInfo - activityId - format -
Exception
public javax.ws.rs.core.Response showComments(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format,
Integer offset,
Integer limit)
throws Exception
uriInfo - activityId - format - offset - limit -
Exception
public javax.ws.rs.core.Response getActivityById(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalContainerName,
String activityId,
String format,
String showPosterIdentity,
int numberOfComments,
String showActivityStream,
int numberOfLikes)
uriInfo - The URI request information.portalContainerName - The associated portal container name.activityId - The specified activity Id.format - The expected returned format.
public javax.ws.rs.core.Response updateComment(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format,
org.exoplatform.social.core.activity.model.ExoSocialActivityImpl comment)
throws Exception
uriInfo - activityId - format - comment -
Exception
public javax.ws.rs.core.Response createCommentActivityById(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format,
String text)
uriInfo - The uri request uriportalName - The associated portal container name.activityId - The specified activity Id.format - The expected returned format.text - The content of comment.
public javax.ws.rs.core.Response destroyComment(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String commentId,
String format)
throws Exception
uriInfo - activityId - commentId - format -
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||