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)
Deprecated.
Deprecated from 4.3.x. Replaced by a new API
ActivityRestResourcesV1.postComment(UriInfo, String, String, CommentEntity) |
javax.ws.rs.core.Response |
destroyActivity(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format)
Deprecated.
Deprecated from 4.3.x. Replaced by a new API
ActivityRestResourcesV1.deleteActivityById(UriInfo, String, String) |
javax.ws.rs.core.Response |
destroyComment(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String commentId,
String format)
Deprecated.
Deprecated from 4.3.x. Replaced by a new API
CommentRestResourcesV1.deleteCommentById(UriInfo, String, String) |
javax.ws.rs.core.Response |
destroyLike(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String identityId,
String format)
Deprecated.
Deprecated from 4.3.x. Replaced by a new API
ActivityRestResourcesV1.deleteLike(UriInfo, String, String, String) |
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)
Deprecated.
Deprecated from 4.3.x. Replaced by a new API
ActivityRestResourcesV1.getActivityById(UriInfo, String, String) |
javax.ws.rs.core.Response |
showComments(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format)
Deprecated.
Deprecated from 4.3.x. Replaced by a new API
ActivityRestResourcesV1.getCommentsOfActivity(UriInfo, String, int, int, boolean, String) |
javax.ws.rs.core.Response |
showComments(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format,
Integer offset,
Integer limit)
Deprecated.
Deprecated from 4.3.x. Replaced by a new API
ActivityRestResourcesV1.getCommentsOfActivity(UriInfo, String, int, int, boolean, String) |
javax.ws.rs.core.Response |
showLikes(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format)
Deprecated.
Deprecated from 4.3.x. Replaced by a new API
ActivityRestResourcesV1.getLikesOfActivity(UriInfo, String, int, int, String) |
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)
Deprecated.
Deprecated from 4.3.x. Replaced by a new API
CommentRestResourcesV1.updateCommentById(UriInfo, String, String, ActivityEntity) |
javax.ws.rs.core.Response |
updateLike(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format,
Like like)
Deprecated.
Deprecated from 4.3.x. Replaced by a new API
ActivityRestResourcesV1.addLike(UriInfo, String, String) |
public javax.ws.rs.core.Response destroyActivity(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String activityId,
String format)
throws Exception
ActivityRestResourcesV1.deleteActivityById(UriInfo, String, String)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
ActivityRestResourcesV1.getLikesOfActivity(UriInfo, String, int, int, String)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
ActivityRestResourcesV1.addLike(UriInfo, String, String)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
ActivityRestResourcesV1.deleteLike(UriInfo, String, String, String)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
ActivityRestResourcesV1.getCommentsOfActivity(UriInfo, String, int, int, boolean, String)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
ActivityRestResourcesV1.getCommentsOfActivity(UriInfo, String, int, int, boolean, String)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)
ActivityRestResourcesV1.getActivityById(UriInfo, String, String)uriInfo - The requested URI information.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
CommentRestResourcesV1.updateCommentById(UriInfo, String, String, ActivityEntity)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)
ActivityRestResourcesV1.postComment(UriInfo, String, String, CommentEntity)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
CommentRestResourcesV1.deleteCommentById(UriInfo, String, String)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–2018 eXo Platform SAS. All rights reserved.