Class ActivityRestResourcesV1
- java.lang.Object
-
- org.exoplatform.social.rest.impl.activity.ActivityRestResourcesV1
-
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer
public class ActivityRestResourcesV1 extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
-
-
Constructor Summary
Constructors Constructor Description ActivityRestResourcesV1(org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.jpa.search.ActivitySearchConnector activitySearchConnector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponseaddLike(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String activityId)javax.ws.rs.core.ResponsedeleteActivityById(javax.ws.rs.core.UriInfo uriInfo, String activityId, boolean hide, String expand)javax.ws.rs.core.ResponsedeleteLike(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String activityId)javax.ws.rs.core.ResponsegetActivities(javax.ws.rs.core.UriInfo uriInfo, String spaceId, String beforeTime, String afterTime, int offset, int limit, boolean returnSize, String expand)javax.ws.rs.core.ResponsegetActivityById(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String activityId, String expand)javax.ws.rs.core.ResponsegetComments(javax.ws.rs.core.UriInfo uriInfo, String activityId, int offset, int limit, boolean returnSize, boolean sortDescending, String expand)javax.ws.rs.core.ResponsegetLikesOfActivity(javax.ws.rs.core.UriInfo uriInfo, String activityId, int offset, int limit, String expand)javax.ws.rs.core.ResponsepostActivity(javax.ws.rs.core.UriInfo uriInfo, String spaceId, String expand, ActivityEntity model)javax.ws.rs.core.ResponsepostComment(javax.ws.rs.core.UriInfo uriInfo, String activityId, String expand, CommentEntity model)javax.ws.rs.core.ResponsesearchActivities(javax.ws.rs.core.UriInfo uriInfo, String query, boolean favorites, List<String> tagNames, int offset, int limit)javax.ws.rs.core.ResponseshareActivity(javax.ws.rs.core.UriInfo uriInfo, String activityId, String expand, ActivityEntity model)javax.ws.rs.core.ResponseupdateActivityById(javax.ws.rs.core.UriInfo uriInfo, String activityId, String expand, ActivityEntity model)javax.ws.rs.core.ResponseupdateComment(javax.ws.rs.core.UriInfo uriInfo, String activityId, String expand, CommentEntity model)
-
-
-
Constructor Detail
-
ActivityRestResourcesV1
public ActivityRestResourcesV1(org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.jpa.search.ActivitySearchConnector activitySearchConnector)
-
-
Method Detail
-
getActivities
@RolesAllowed("users") public javax.ws.rs.core.Response getActivities(@Context javax.ws.rs.core.UriInfo uriInfo, String spaceId, String beforeTime, String afterTime, int offset, int limit, boolean returnSize, String expand)
-
postActivity
@RolesAllowed("users") public javax.ws.rs.core.Response postActivity(@Context javax.ws.rs.core.UriInfo uriInfo, String spaceId, String expand, ActivityEntity model)
-
getActivityById
@RolesAllowed("users") public javax.ws.rs.core.Response getActivityById(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String activityId, String expand)
-
updateActivityById
@RolesAllowed("users") public javax.ws.rs.core.Response updateActivityById(@Context javax.ws.rs.core.UriInfo uriInfo, String activityId, String expand, ActivityEntity model)
-
deleteActivityById
@RolesAllowed("users") public javax.ws.rs.core.Response deleteActivityById(@Context javax.ws.rs.core.UriInfo uriInfo, String activityId, boolean hide, String expand)
-
getComments
@RolesAllowed("users") public javax.ws.rs.core.Response getComments(@Context javax.ws.rs.core.UriInfo uriInfo, String activityId, int offset, int limit, boolean returnSize, boolean sortDescending, String expand)
-
postComment
@RolesAllowed("users") public javax.ws.rs.core.Response postComment(@Context javax.ws.rs.core.UriInfo uriInfo, String activityId, String expand, CommentEntity model)
-
updateComment
@RolesAllowed("users") public javax.ws.rs.core.Response updateComment(@Context javax.ws.rs.core.UriInfo uriInfo, String activityId, String expand, CommentEntity model)
-
shareActivity
@RolesAllowed("users") public javax.ws.rs.core.Response shareActivity(@Context javax.ws.rs.core.UriInfo uriInfo, String activityId, String expand, ActivityEntity model)
-
getLikesOfActivity
@RolesAllowed("users") public javax.ws.rs.core.Response getLikesOfActivity(@Context javax.ws.rs.core.UriInfo uriInfo, String activityId, int offset, int limit, String expand)
-
addLike
@RolesAllowed("users") public javax.ws.rs.core.Response addLike(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String activityId)
-
deleteLike
@RolesAllowed("users") public javax.ws.rs.core.Response deleteLike(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String activityId)
-
-