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
ConstructorsConstructorDescriptionActivityRestResourcesV1(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
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Responsejavax.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, org.exoplatform.social.core.activity.ActivityStreamType streamType) 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.ResponsepinActivity(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String activityId) 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.ResponseunpinActivity(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String activityId) 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 Details
-
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 Details
-
getActivities
-
postActivity
@RolesAllowed("users") public javax.ws.rs.core.Response postActivity(@Context javax.ws.rs.core.UriInfo uriInfo, String spaceId, String expand, ActivityEntity model) -
getActivityById
-
updateActivityById
@RolesAllowed("users") public javax.ws.rs.core.Response updateActivityById(@Context javax.ws.rs.core.UriInfo uriInfo, String activityId, String expand, ActivityEntity model) -
deleteActivityById
-
getComments
-
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) -
getLikesOfActivity
-
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) -
pinActivity
@RolesAllowed("users") public javax.ws.rs.core.Response pinActivity(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String activityId) -
unpinActivity
@RolesAllowed("users") public javax.ws.rs.core.Response unpinActivity(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String activityId) -
searchActivities
-