Package org.exoplatform.social.rest.api
Interface SpaceRestResources
- All Superinterfaces:
org.exoplatform.services.rest.resource.ResourceContainer,SocialRest
- All Known Implementing Classes:
SpaceRestResourcesV1
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecreateSpace(javax.ws.rs.core.UriInfo uriInfo, String expand, SpaceEntity model) Process to create a new spacejavax.ws.rs.core.ResponsedeleteSpaceById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand) Process to delete a space by idjavax.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.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.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.ResponsegetSpaces(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String q, String typeFilter, 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.ResponseupdateSpaceById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand, SpaceEntity model) Process to update a space by id
-
Method Details
-
getSpaces
javax.ws.rs.core.Response getSpaces(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String q, String typeFilter, 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- Parameters:
uriInfo-request-q-typeFilter-offset-limit-sort-order-returnSize-expand-- Returns:
- Throws:
Exception
-
createSpace
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- Parameters:
uriInfo-- Returns:
- Throws:
Exception
-
isSpaceContainsExternals
javax.ws.rs.core.Response isSpaceContainsExternals(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String spaceId) Checks if a specific space contains external users- Parameters:
uriInfo-request-spaceId-- Returns:
- space info of a space contains an external members
-
getSpaceById
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 Process to return a space by id- Parameters:
uriInfo-- Returns:
- Throws:
Exception
-
getSpaceByPrettyName
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 Process to return a space by pretty name- Parameters:
uriInfo-prettyName-expand-- Returns:
- Throws:
Exception
-
getSpaceByDisplayName
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 Process to return a space by display name- Parameters:
uriInfo-displayName-expand-- Returns:
- Throws:
Exception
-
updateSpaceById
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- Parameters:
uriInfo-- Returns:
- Throws:
Exception
-
deleteSpaceById
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- Parameters:
uriInfo-- Returns:
- Throws:
Exception
-
getSpaceMembers
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- Parameters:
uriInfo-- Returns:
- Throws:
Exception
-