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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpaceRest(org.exoplatform.social.core.space.spi.SpaceService spaceService, io.meeds.social.space.service.SpaceDirectoryService spaceDirectoryService, io.meeds.social.space.service.SpaceLayoutService spaceLayoutService, 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 Summary

    Modifier and Type
    Method
    Description
    javax.ws.rs.core.Response
     
    javax.ws.rs.core.Response
    createSpace(javax.ws.rs.core.UriInfo uriInfo, String expand, SpaceEntity model)
     
    javax.ws.rs.core.Response
    declineExternalInvitations(javax.ws.rs.core.UriInfo uriInfo, String invitationId)
     
    javax.ws.rs.core.Response
    deleteSpaceById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand)
     
    javax.ws.rs.core.Response
    getSpaceAvatarById(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String lastModified, String id, boolean byId, String size, String token)
     
    javax.ws.rs.core.Response
    getSpaceBannerById(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String lastModified, String id, boolean byId, String token)
     
    javax.ws.rs.core.Response
    getSpaceByGroupSuffix(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String groupSuffix, String expand)
     
    javax.ws.rs.core.Response
    getSpaceById(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String id, String expand)
     
    javax.ws.rs.core.Response
    getSpaceByPrettyName(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String prettyName, String expand)
     
    javax.ws.rs.core.Response
    getSpaceExternalInvitations(javax.ws.rs.core.UriInfo uriInfo, String id)
     
    javax.ws.rs.core.Response
    getSpaceMembers(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String id, String q, String role, int offset, int limit, boolean returnSize, String expand)
    Deprecated, for removal: This API element is subject to removal in a future version.
    javax.ws.rs.core.Response
    getSpaces(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String q, io.meeds.social.space.constant.SpaceRegistration registration, io.meeds.social.space.constant.SpaceVisibility visibility, String filterType, int offset, int limit, List<Long> templateIds, String sort, String order, boolean returnSize, boolean favorites, List<String> tagNames, List<Long> categoryIds, List<Long> excludedCategoryIds, List<Long> excludedIds, String parentSpaceId, boolean onlyParentSpaces, String token, String expand)
     
    javax.ws.rs.core.Response
    isSpaceContainsExternals(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String spaceId)
     
    javax.ws.rs.core.Response
    isSpaceMember(javax.ws.rs.core.UriInfo uriInfo, String id, String userId)
    Deprecated, for removal: This API element is subject to removal in a future version.
    javax.ws.rs.core.Response
     
    javax.ws.rs.core.Response
    updateSpaceById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand, SpaceEntity model)
     

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • SpaceRest

      public SpaceRest(org.exoplatform.social.core.space.spi.SpaceService spaceService, io.meeds.social.space.service.SpaceDirectoryService spaceDirectoryService, io.meeds.social.space.service.SpaceLayoutService spaceLayoutService, 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

      public javax.ws.rs.core.Response getSpaces(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String q, io.meeds.social.space.constant.SpaceRegistration registration, io.meeds.social.space.constant.SpaceVisibility visibility, String filterType, int offset, int limit, List<Long> templateIds, String sort, String order, boolean returnSize, boolean favorites, List<String> tagNames, List<Long> categoryIds, List<Long> excludedCategoryIds, List<Long> excludedIds, String parentSpaceId, boolean onlyParentSpaces, String token, 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)
    • prepareSpaceInstance

      public javax.ws.rs.core.Response prepareSpaceInstance(SpaceEntity model)
    • 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)
    • countSpacesByTemplate

      @RolesAllowed("administrators") public javax.ws.rs.core.Response countSpacesByTemplate()
    • 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)
    • 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)
    • 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)
    • getSpaceMembers

      @RolesAllowed("users") @Deprecated(forRemoval=true, since="7.0") 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
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      Exception
    • isSpaceMember

      @RolesAllowed("users") @Deprecated(forRemoval=true, since="7.0") public javax.ws.rs.core.Response isSpaceMember(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String userId)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • 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)