Class SpaceRestResourcesV1
java.lang.Object
org.exoplatform.social.rest.impl.space.SpaceRestResourcesV1
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer,SocialRest,SpaceRestResources
-
Constructor Summary
ConstructorsConstructorDescriptionSpaceRestResourcesV1(ActivityRestResourcesV1 activityRestResourcesV1, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.upload.UploadService uploadService, org.exoplatform.social.metadata.thumbnail.ImageThumbnailService imageThumbnailService, io.meeds.portal.security.service.SecuritySettingService securitySettingService) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponseaddSpaceApplication(String spaceId, String appId) javax.ws.rs.core.ResponseaddSpaceApplication(org.exoplatform.application.registry.Application application) javax.ws.rs.core.ResponsecreateSpace(javax.ws.rs.core.UriInfo uriInfo, String expand, SpaceEntity model) Process to create a new spacejavax.ws.rs.core.ResponsedeclineExternalInvitations(javax.ws.rs.core.UriInfo uriInfo, String invitationId) javax.ws.rs.core.ResponsedeleteSpaceApplication(String applicationName) javax.ws.rs.core.ResponsedeleteSpaceApplication(String spaceId, String appId) javax.ws.rs.core.ResponsedeleteSpaceById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand) Process to delete a space by idjavax.ws.rs.core.ResponsegetSpaceActivitiesById(javax.ws.rs.core.UriInfo uriInfo, String id, int offset, int limit, String before, String after, boolean returnSize, String expand) Deprecated.javax.ws.rs.core.ResponsegetSpaceApplications(String spaceId) javax.ws.rs.core.Responsejavax.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.ResponsegetSpaceByDisplayName(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String displayName, String expand) Process to return a space by display namejavax.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) Process to return a space by idjavax.ws.rs.core.ResponsegetSpaceByPrettyName(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String prettyName, String expand) Process to return a space by pretty namejavax.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) Process to return a space by idjavax.ws.rs.core.ResponsegetSpaceNavigations(jakarta.servlet.http.HttpServletRequest httpRequest, javax.ws.rs.core.Request request, String spaceId) javax.ws.rs.core.ResponsegetSpaces(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String q, String filterType, int offset, int limit, String sort, String order, boolean returnSize, boolean favorites, String expand) Process to return a list of space in json formatjavax.ws.rs.core.ResponseisSpaceContainsExternals(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String spaceId) Checks if a specific space contains external usersjavax.ws.rs.core.ResponseisSpaceMember(javax.ws.rs.core.UriInfo uriInfo, String id, String userId) Checks if is the given userId is a space member.javax.ws.rs.core.ResponsemoveSpaceApplicationOrder(String spaceId, String appId, int transition) javax.ws.rs.core.ResponsepostActivityOnSpace(javax.ws.rs.core.UriInfo uriInfo, String id, String expand, ActivityEntity model) Deprecated.javax.ws.rs.core.ResponserestoreSpacePageLayout(javax.ws.rs.core.UriInfo uriInfo, String appId, String spaceId) javax.ws.rs.core.ResponseupdateSpaceById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand, SpaceEntity model) Process to update a space by id
-
Constructor Details
-
SpaceRestResourcesV1
public SpaceRestResourcesV1(ActivityRestResourcesV1 activityRestResourcesV1, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.upload.UploadService uploadService, org.exoplatform.social.metadata.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 Process to return a list of space in json format- Specified by:
getSpacesin interfaceSpaceRestResources- Parameters:
uriInfo-request-q-filterType-offset-limit-sort-order-returnSize-expand-- Returns:
- 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 Process to create a new space- Specified by:
createSpacein interfaceSpaceRestResources- Parameters:
uriInfo-- Returns:
- 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) Description copied from interface:SpaceRestResourcesChecks if a specific space contains external users- Specified by:
isSpaceContainsExternalsin interfaceSpaceRestResources- Parameters:
uriInfo-request-spaceId-- Returns:
- space info of a space contains an external members
-
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 Description copied from interface:SpaceRestResourcesProcess to return a space by id- Specified by:
getSpaceByIdin interfaceSpaceRestResources- Parameters:
uriInfo-- Returns:
- 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 Description copied from interface:SpaceRestResourcesProcess to return a space by pretty name- Specified by:
getSpaceByPrettyNamein interfaceSpaceRestResources- Parameters:
uriInfo-prettyName-expand-- Returns:
- Throws:
Exception
-
getSpaceByGroupSuffix
-
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 Description copied from interface:SpaceRestResourcesProcess to return a space by display name- Specified by:
getSpaceByDisplayNamein interfaceSpaceRestResources- Parameters:
uriInfo-displayName-expand-- Returns:
- 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 Process to update a space by id- Specified by:
updateSpaceByIdin interfaceSpaceRestResources- Parameters:
uriInfo-- Returns:
- 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 Process to delete a space by id- Specified by:
deleteSpaceByIdin interfaceSpaceRestResources- Parameters:
uriInfo-- Returns:
- 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 Process to return a space by id- Specified by:
getSpaceMembersin interfaceSpaceRestResources- Parameters:
uriInfo-- Returns:
- 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 infoid- the space iduserId- the user id- Returns:
- the response
-
getSpaceApplicationsChoices
@RolesAllowed("users") public javax.ws.rs.core.Response getSpaceApplicationsChoices() -
addSpaceApplication
@RolesAllowed("administrators") public javax.ws.rs.core.Response addSpaceApplication(org.exoplatform.application.registry.Application application) -
deleteSpaceApplication
@RolesAllowed("administrators") public javax.ws.rs.core.Response deleteSpaceApplication(String applicationName) -
getSpaceApplications
-
deleteSpaceApplication
-
addSpaceApplication
-
moveSpaceApplicationOrder
-
restoreSpacePageLayout
-
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) throws Exception Deprecated.- Throws:
Exception
-
postActivityOnSpace
@RolesAllowed("users") @Deprecated public javax.ws.rs.core.Response postActivityOnSpace(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand, ActivityEntity model) throws Exception Deprecated.- Throws:
Exception
-
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)
-