Class ActivityRest

java.lang.Object
org.exoplatform.social.rest.impl.activity.ActivityRest
All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer

public class ActivityRest extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
  • Constructor Summary

    Constructors
    Constructor
    Description
    ActivityRest(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 Type
    Method
    Description
    javax.ws.rs.core.Response
    addLike(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String activityId)
     
    javax.ws.rs.core.Response
    deleteActivityById(javax.ws.rs.core.UriInfo uriInfo, String activityId, boolean hide, String expand)
     
    javax.ws.rs.core.Response
    deleteLike(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String activityId)
     
    javax.ws.rs.core.Response
    getActivities(javax.ws.rs.core.UriInfo uriInfo, String spaceId, List<Long> categoryIds, List<Long> excludedCategoryIds, int offset, int limit, boolean returnSize, String expand, org.exoplatform.social.core.activity.ActivityStreamType streamType)
     
    javax.ws.rs.core.Response
    getActivityById(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String activityId, String expand)
     
    javax.ws.rs.core.Response
    getComments(javax.ws.rs.core.UriInfo uriInfo, String activityId, int offset, int limit, boolean returnSize, boolean sortDescending, String expand)
     
    javax.ws.rs.core.Response
    getLikesOfActivity(javax.ws.rs.core.UriInfo uriInfo, String activityId, int offset, int limit, String expand)
     
    javax.ws.rs.core.Response
    pinActivity(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String activityId)
     
    javax.ws.rs.core.Response
    postActivity(javax.ws.rs.core.UriInfo uriInfo, String spaceId, String expand, ActivityEntity model)
     
    javax.ws.rs.core.Response
    postComment(javax.ws.rs.core.UriInfo uriInfo, String activityId, String expand, CommentEntity model)
     
    javax.ws.rs.core.Response
    publishActivity(javax.ws.rs.core.UriInfo uriInfo, String activityId)
     
    javax.ws.rs.core.Response
    searchActivities(javax.ws.rs.core.UriInfo uriInfo, String query, boolean isFavorite, List<Long> categoryIds, List<String> tagNames, String spaceId, int offset, int limit, String expand)
     
    javax.ws.rs.core.Response
    shareActivity(javax.ws.rs.core.UriInfo uriInfo, String activityId, String expand, ActivityEntity model)
     
    javax.ws.rs.core.Response
    unpinActivity(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String activityId)
     
    javax.ws.rs.core.Response
    updateActivityById(javax.ws.rs.core.UriInfo uriInfo, String activityId, String expand, ActivityEntity model)
     
    javax.ws.rs.core.Response
    updateComment(javax.ws.rs.core.UriInfo uriInfo, String activityId, String expand, CommentEntity model)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ActivityRest

      public ActivityRest(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

      @RolesAllowed("users") public javax.ws.rs.core.Response getActivities(@Context javax.ws.rs.core.UriInfo uriInfo, String spaceId, List<Long> categoryIds, List<Long> excludedCategoryIds, int offset, int limit, boolean returnSize, String expand, org.exoplatform.social.core.activity.ActivityStreamType streamType)
    • 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)
    • publishActivity

      @RolesAllowed("users") public javax.ws.rs.core.Response publishActivity(@Context javax.ws.rs.core.UriInfo uriInfo, String activityId)
    • 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)
    • 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

      @RolesAllowed("users") public javax.ws.rs.core.Response searchActivities(@Context javax.ws.rs.core.UriInfo uriInfo, String query, boolean isFavorite, List<Long> categoryIds, List<String> tagNames, String spaceId, int offset, int limit, String expand)