Class SpaceRest

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

public class SpaceRest extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
  • Constructor Details

    • SpaceRest

      public SpaceRest(ActivityRest activityRestResourcesV1, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.upload.UploadService uploadService, org.exoplatform.services.thumbnail.ImageThumbnailService imageThumbnailService, io.meeds.portal.security.service.SecuritySettingService securitySettingService)
  • Method Details

    • getSpaces

      @RolesAllowed("users") public javax.ws.rs.core.Response getSpaces(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String q, String filterType, int offset, int limit, String sort, String order, boolean returnSize, boolean favorites, String expand) throws Exception
      Throws:
      Exception
    • createSpace

      @RolesAllowed("users") public javax.ws.rs.core.Response createSpace(@Context javax.ws.rs.core.UriInfo uriInfo, String expand, SpaceEntity model) throws Exception
      Throws:
      Exception
    • isSpaceContainsExternals

      @RolesAllowed("users") public javax.ws.rs.core.Response isSpaceContainsExternals(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String spaceId)
    • getSpaceById

      @RolesAllowed("users") public javax.ws.rs.core.Response getSpaceById(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String id, String expand) throws Exception
      Throws:
      Exception
    • getSpaceByPrettyName

      @RolesAllowed("users") public javax.ws.rs.core.Response getSpaceByPrettyName(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String prettyName, String expand) throws Exception
      Throws:
      Exception
    • getSpaceByGroupSuffix

      @RolesAllowed("users") public javax.ws.rs.core.Response getSpaceByGroupSuffix(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String groupSuffix, String expand)
    • getSpaceByDisplayName

      @RolesAllowed("users") public javax.ws.rs.core.Response getSpaceByDisplayName(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String displayName, String expand) throws Exception
      Throws:
      Exception
    • getSpaceAvatarById

      public javax.ws.rs.core.Response getSpaceAvatarById(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String lastModified, String id, boolean byId, String size, String token) throws IOException
      Throws:
      IOException
    • getSpaceBannerById

      public javax.ws.rs.core.Response getSpaceBannerById(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String lastModified, String id, boolean byId, String token) throws IOException
      Throws:
      IOException
    • updateSpaceById

      @RolesAllowed("users") public javax.ws.rs.core.Response updateSpaceById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand, SpaceEntity model) throws Exception
      Throws:
      Exception
    • deleteSpaceById

      @RolesAllowed("users") public javax.ws.rs.core.Response deleteSpaceById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws Exception
      Throws:
      Exception
    • getSpaceMembers

      @RolesAllowed("users") public javax.ws.rs.core.Response getSpaceMembers(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String id, String q, String role, int offset, int limit, boolean returnSize, String expand) throws Exception
      Throws:
      Exception
    • isSpaceMember

      @RolesAllowed("users") public javax.ws.rs.core.Response isSpaceMember(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String userId)
      Checks if is the given userId is a space member.
      Parameters:
      uriInfo - the uri info
      id - the space id
      userId - the user id
      Returns:
      the response
    • getSpaceNavigations

      @RolesAllowed("users") public javax.ws.rs.core.Response getSpaceNavigations(@Context jakarta.servlet.http.HttpServletRequest httpRequest, @Context javax.ws.rs.core.Request request, String spaceId)
    • restoreSpacePageLayout

      @RolesAllowed("users") public javax.ws.rs.core.Response restoreSpacePageLayout(@Context javax.ws.rs.core.UriInfo uriInfo, String appId, String spaceId)
    • getSpaceActivitiesById

      @RolesAllowed("users") @Deprecated public javax.ws.rs.core.Response getSpaceActivitiesById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, int offset, int limit, String before, String after, boolean returnSize, String expand)
      Deprecated.
    • postActivityOnSpace

      @RolesAllowed("users") @Deprecated public javax.ws.rs.core.Response postActivityOnSpace(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand, ActivityEntity model)
      Deprecated.
    • getSpaceExternalInvitations

      @RolesAllowed("users") public javax.ws.rs.core.Response getSpaceExternalInvitations(@Context javax.ws.rs.core.UriInfo uriInfo, String id)
    • declineExternalInvitations

      @RolesAllowed("users") public javax.ws.rs.core.Response declineExternalInvitations(@Context javax.ws.rs.core.UriInfo uriInfo, String invitationId)