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(org.exoplatform.social.rest.impl.activity.UriInfo, String, String, org.exoplatform.social.rest.entity.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(org.exoplatform.social.rest.impl.activity.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(org.exoplatform.social.rest.impl.comment.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(org.exoplatform.social.rest.impl.activity.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(org.exoplatform.social.rest.impl.activity.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(org.exoplatform.social.rest.impl.activity.UriInfo, String, int, int, 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(org.exoplatform.social.rest.impl.activity.UriInfo, String, int, int, 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(org.exoplatform.social.rest.impl.activity.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(org.exoplatform.social.rest.impl.comment.UriInfo, String, String, org.exoplatform.social.rest.entity.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(org.exoplatform.social.rest.impl.activity.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(org.exoplatform.social.rest.impl.activity.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(org.exoplatform.social.rest.impl.activity.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(org.exoplatform.social.rest.impl.activity.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(org.exoplatform.social.rest.impl.activity.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(org.exoplatform.social.rest.impl.activity.UriInfo, String, int, int, 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(org.exoplatform.social.rest.impl.activity.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.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(org.exoplatform.social.rest.impl.activity.UriInfo, String, String)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
CommentRestResourcesV1#updateCommentById(org.exoplatform.social.rest.impl.comment.UriInfo, String, String, org.exoplatform.social.rest.entity.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(org.exoplatform.social.rest.impl.activity.UriInfo, String, String, org.exoplatform.social.rest.entity.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(org.exoplatform.social.rest.impl.comment.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–2016 eXo Platform SAS. All rights reserved.