public class ActivityRestResourcesV1 extends Object implements ActivityRestResources
| Constructor and Description |
|---|
ActivityRestResourcesV1() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addLike(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand)
Adds a like for the activity with the given id.
|
javax.ws.rs.core.Response |
deleteActivityById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand)
Process to delete an activity by id
|
javax.ws.rs.core.Response |
deleteLike(javax.ws.rs.core.UriInfo uriInfo,
String id,
String username,
String expand)
Deletes a like from the user with the given username on the activity with the given activity id.
|
javax.ws.rs.core.Response |
getActivitiesOfCurrentUser(javax.ws.rs.core.UriInfo uriInfo,
int offset,
int limit,
boolean returnSize,
String expand)
Process to return all activities in json format
|
javax.ws.rs.core.Response |
getActivityById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand)
Process to return an activity by id in json format
|
javax.ws.rs.core.Response |
getCommentsOfActivity(javax.ws.rs.core.UriInfo uriInfo,
String id,
int offset,
int limit,
boolean returnSize,
String expand)
Process to return all comments of an activity in json format
|
javax.ws.rs.core.Response |
getLikesActivityOfUser(javax.ws.rs.core.UriInfo uriInfo,
String id,
String username,
String expand)
Gets the like of the user with the given username for the activity with the given activity id.
|
javax.ws.rs.core.Response |
getLikesOfActivity(javax.ws.rs.core.UriInfo uriInfo,
String id,
int offset,
int limit,
String expand)
Gets all the likes of the activity with the given id.
|
javax.ws.rs.core.Response |
postComment(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand,
CommentEntity model)
Process to create new comment
|
javax.ws.rs.core.Response |
updateActivityById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand,
ActivityEntity model)
Process to update the title of an activity by id
|
@RolesAllowed(value="users") public javax.ws.rs.core.Response getActivitiesOfCurrentUser(@Context javax.ws.rs.core.UriInfo uriInfo, int offset, int limit, boolean returnSize, String expand) throws Exception
ActivityRestResourcesgetActivitiesOfCurrentUser in interface ActivityRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response getActivityById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws Exception
ActivityRestResourcesgetActivityById in interface ActivityRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response updateActivityById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand, ActivityEntity model) throws Exception
ActivityRestResourcesupdateActivityById in interface ActivityRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response deleteActivityById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws Exception
ActivityRestResourcesdeleteActivityById in interface ActivityRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response getCommentsOfActivity(@Context javax.ws.rs.core.UriInfo uriInfo, String id, int offset, int limit, boolean returnSize, String expand) throws Exception
ActivityRestResourcesgetCommentsOfActivity in interface ActivityRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response postComment(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand, CommentEntity model) throws Exception
ActivityRestResourcespostComment in interface ActivityRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response getLikesOfActivity(@Context javax.ws.rs.core.UriInfo uriInfo, String id, int offset, int limit, String expand) throws Exception
ActivityRestResourcesgetLikesOfActivity in interface ActivityRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response addLike(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws Exception
ActivityRestResourcesaddLike in interface ActivityRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response getLikesActivityOfUser(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String username, String expand) throws Exception
ActivityRestResourcesgetLikesActivityOfUser in interface ActivityRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response deleteLike(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String username, String expand) throws Exception
ActivityRestResourcesdeleteLike in interface ActivityRestResourcesExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.