public class CommentRestResourcesV1 extends Object implements CommentRestResources
| Constructor and Description |
|---|
CommentRestResourcesV1(org.exoplatform.social.core.manager.ActivityManager activityManager,
org.exoplatform.portal.config.UserACL userACL) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addLikeOnComment(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand) |
javax.ws.rs.core.Response |
deleteCommentById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand)
Process to delete a comment by id
|
javax.ws.rs.core.Response |
deleteLikeOnComment(javax.ws.rs.core.UriInfo uriInfo,
String id,
String username,
String expand) |
javax.ws.rs.core.Response |
getCommentById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand)
Process to return a commnet by id in json format
|
javax.ws.rs.core.Response |
getLikesOfComment(javax.ws.rs.core.UriInfo uriInfo,
String id,
int offset,
int limit,
String expand) |
javax.ws.rs.core.Response |
updateCommentById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand,
ActivityEntity model)
Process to update the title of a comment by id
|
public CommentRestResourcesV1(org.exoplatform.social.core.manager.ActivityManager activityManager,
org.exoplatform.portal.config.UserACL userACL)
@RolesAllowed(value="users") public javax.ws.rs.core.Response getCommentById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws Exception
CommentRestResourcesgetCommentById in interface CommentRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response updateCommentById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand, ActivityEntity model) throws Exception
CommentRestResourcesupdateCommentById in interface CommentRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response deleteCommentById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws Exception
CommentRestResourcesdeleteCommentById in interface CommentRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response getLikesOfComment(@Context javax.ws.rs.core.UriInfo uriInfo, String id, int offset, int limit, String expand) throws Exception
Exception@RolesAllowed(value="users") public javax.ws.rs.core.Response addLikeOnComment(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws Exception
ExceptionCopyright © 2003–2018 eXo Platform SAS. All rights reserved.