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 -
Constructor Summary
ConstructorsConstructorDescriptionSpaceRest(org.exoplatform.social.core.space.spi.SpaceService spaceService, io.meeds.social.space.service.SpaceDirectoryService spaceDirectoryService, io.meeds.social.space.service.SpaceLayoutService spaceLayoutService, io.meeds.social.category.service.CategoryService categoryService, 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 TypeMethodDescriptionjavax.ws.rs.core.Responsejavax.ws.rs.core.ResponsecreateSpace(javax.ws.rs.core.UriInfo uriInfo, String expand, SpaceEntity model) javax.ws.rs.core.ResponsedeclineExternalInvitations(javax.ws.rs.core.UriInfo uriInfo, String invitationId) javax.ws.rs.core.ResponsedeleteSpaceById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand) javax.ws.rs.core.ResponsegetSpaceAvatarById(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.ResponsegetSpaceBannerById(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String lastModified, String id, boolean byId, String token) javax.ws.rs.core.ResponsegetSpaceByGroupSuffix(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String groupSuffix, String expand) javax.ws.rs.core.ResponsegetSpaceById(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String id, String expand) javax.ws.rs.core.ResponsegetSpaceByPrettyName(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String prettyName, String expand) javax.ws.rs.core.ResponsegetSpaceExternalInvitations(javax.ws.rs.core.UriInfo uriInfo, String id) javax.ws.rs.core.ResponsegetSpaceMembers(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.ResponsegetSpaces(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> excludedIds, String token, String expand) javax.ws.rs.core.ResponseisSpaceContainsExternals(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String spaceId) javax.ws.rs.core.ResponseisSpaceMember(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.ResponseprepareSpaceInstance(SpaceEntity model) javax.ws.rs.core.ResponseupdateSpaceById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand, SpaceEntity model)
-
Field Details
-
PROFILE_DEFAULT_BANNER_URL
- See Also:
-
-
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, io.meeds.social.category.service.CategoryService categoryService, 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> excludedIds, 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
-
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
-
countSpacesByTemplate
@RolesAllowed("administrators") public javax.ws.rs.core.Response countSpacesByTemplate() -
getSpaceByPrettyName
-
getSpaceByGroupSuffix
-
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
-
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)
-