public class ActivitiesRestService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Modifier and Type | Class and Description |
|---|---|
static class |
ActivitiesRestService.CommentList
CommentList model
|
static class |
ActivitiesRestService.LikeList
LikeList model
|
| Constructor and Description |
|---|
ActivitiesRestService()
constructor
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createCommentActivityById(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format,
String text)
Add comments to an existing activity.
|
javax.ws.rs.core.Response |
destroyActivity(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format)
Destroys an activity by its provided Id.
|
javax.ws.rs.core.Response |
destroyComment(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String commentId,
String format)
Removes comments on the activity.
|
javax.ws.rs.core.Response |
destroyLike(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String identityId,
String format)
Removes the "like" information of the activity.
|
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)
Gets an activity by its Id.
|
javax.ws.rs.core.Response |
showComments(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format)
Gets comments on the activity.
|
javax.ws.rs.core.Response |
showComments(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format,
Integer offset,
Integer limit)
Gets a limit number of comments on the activity.
|
javax.ws.rs.core.Response |
showLikes(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format)
Gets a list of users who like the activity.
|
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)
Updates the comment information on the activity.
|
javax.ws.rs.core.Response |
updateLike(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format,
Like like)
Updates the "like" information of the activity.
|
public javax.ws.rs.core.Response destroyActivity(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format)
throws Exception
uriInfo - The requested URI information.portalName - The name of current portal.activityId - The Id of the target activity which is destroyed.format - The format of the returned result, for example, JSON, or XML.Exceptionpublic javax.ws.rs.core.Response showLikes(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format)
throws Exception
uriInfo - The requested URI information.portalName - The name of the current portal.activityId - The Id of the target activity.format - The format of the returned result, for example, JSON, or XML.Exceptionpublic javax.ws.rs.core.Response updateLike(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format,
Like like)
throws Exception
uriInfo - The requested URI information.portalName - The name of the current portal.activityId - The Id of the target activity.format - The format of the returned result, for example, JSON, or XML.like - The object containing the information of users who like the activity.Exceptionpublic javax.ws.rs.core.Response destroyLike(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String identityId,
String format)
throws Exception
uriInfo - The requested URI information.portalName - The name of the current portal.activityId - The Id of the target activity.identityId - The information of a user who unlikes the activity.format - The format of the returned result, for example, JSON, or XML.Exceptionpublic javax.ws.rs.core.Response showComments(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format)
throws Exception
uriInfo - The requested URI information.portalName - The name of the current portal.activityId - The Id of target activity.format - The format of the returned result, for example, JSON, or XML.Exceptionpublic 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 - The requested URI information.portalName - The name of the current portal.activityId - The Id of the target activity.format - The format of the returned result, for example, JSON, or XML.offset - The starting point of the range to get comments. It must be greater than or equal to 0.limit - The ending point of the range to get comments.Exceptionpublic 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 requested URI information.portalName - The name of the current portal.portalContainerName - The associated portal container name.activityId - The Id of the target activity.format - The format of the returned result, for example: JSON, or XML.showPosterIdentity - The identity information of the poster.numberOfComments - The number of comments will be returned.showActivityStream - Specifies the stream of an activity.numberOfLikes - The number of likes will be returned.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 - The requested URI information.portalName - The name of the current portal.activityId - The Id of the target comment which is updated.format - The format of the returned result, for example, JSON, or XML.comment - The comment to be updated.Exceptionpublic javax.ws.rs.core.Response createCommentActivityById(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format,
String text)
uriInfo - The requested URI information.portalName - The associated portal container name.activityId - The Id of the activity.format - The format of the returned result, for example, JSON, or XML.text - The content of the 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 - The requested URI information.portalName - The name of the current portal.activityId - The activity Id.commentId - The Id of the target comment which is destroyed.format - The format of the returned result, for example, JSON, or XML.ExceptionCopyright © 2003–2015 eXo Platform SAS. All rights reserved.