Class GroupSpaceBindingRestResourcesV1
- java.lang.Object
-
- org.exoplatform.social.rest.impl.binding.GroupSpaceBindingRestResourcesV1
-
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer,GroupSpaceBindingRestResources,SocialRest
public class GroupSpaceBindingRestResourcesV1 extends Object implements GroupSpaceBindingRestResources
GroupSpaceBindingRestResourcesimplementation.
-
-
Constructor Summary
Constructors Constructor Description GroupSpaceBindingRestResourcesV1(org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.binding.spi.GroupSpaceBindingService groupSpaceBindingService, org.exoplatform.portal.config.UserACL userACL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsedeleteSpaceBinding(javax.ws.rs.core.UriInfo uriInfo, String bindingId)Delete a binding by id.javax.ws.rs.core.ResponsegetBindingReportOperations(javax.ws.rs.core.UriInfo uriInfo)javax.ws.rs.core.ResponsegetBindingsBySpaceId(javax.ws.rs.core.UriInfo uriInfo, String spaceId, int offset, int limit, boolean returnSize)Return a list of binding in json formatjavax.ws.rs.core.ResponsegetGroupsTree(javax.ws.rs.core.UriInfo uriInfo)Return the groups in a tree structure of json formatjavax.ws.rs.core.ResponsegetReport(javax.ws.rs.core.UriInfo uriInfo, String spaceId, String action, String group, String groupBindingId)javax.ws.rs.core.ResponsesaveGroupSpaceBindings(javax.ws.rs.core.UriInfo uriInfo, String spaceId, List<String> groupNames)Return a list of binding in json format
-
-
-
Method Detail
-
getBindingsBySpaceId
@RolesAllowed("administrators") public javax.ws.rs.core.Response getBindingsBySpaceId(@Context javax.ws.rs.core.UriInfo uriInfo, String spaceId, int offset, int limit, boolean returnSize) throws ExceptionReturn a list of binding in json format- Specified by:
getBindingsBySpaceIdin interfaceGroupSpaceBindingRestResourcesspaceId- Id of the spaceoffset- Bindings list offsetlimit- Bindings list limitreturnSize- Return Size of the list?- Returns:
- List of binding object for this context (space + role)
- Throws:
Exception
-
saveGroupSpaceBindings
@RolesAllowed("administrators") public javax.ws.rs.core.Response saveGroupSpaceBindings(@Context javax.ws.rs.core.UriInfo uriInfo, String spaceId, List<String> groupNames)Return a list of binding in json format- Specified by:
saveGroupSpaceBindingsin interfaceGroupSpaceBindingRestResourcesspaceId- Id of the spacegroupNames- List of group names to be bound to the space- Returns:
- Status
-
deleteSpaceBinding
@RolesAllowed("administrators") public javax.ws.rs.core.Response deleteSpaceBinding(@Context javax.ws.rs.core.UriInfo uriInfo, String bindingId) throws ExceptionDelete a binding by id.- Specified by:
deleteSpaceBindingin interfaceGroupSpaceBindingRestResourcesbindingId- Id of the space- Returns:
- Status
- Throws:
Exception
-
getGroupsTree
@RolesAllowed("administrators") public javax.ws.rs.core.Response getGroupsTree(@Context javax.ws.rs.core.UriInfo uriInfo) throws ExceptionDescription copied from interface:GroupSpaceBindingRestResourcesReturn the groups in a tree structure of json format- Specified by:
getGroupsTreein interfaceGroupSpaceBindingRestResources- Returns:
- Throws:
Exception
-
getReport
@RolesAllowed("administrators") public javax.ws.rs.core.Response getReport(@Context javax.ws.rs.core.UriInfo uriInfo, String spaceId, String action, String group, String groupBindingId) throws Exception- Specified by:
getReportin interfaceGroupSpaceBindingRestResources- Returns:
- Throws:
Exception
-
getBindingReportOperations
@RolesAllowed("administrators") public javax.ws.rs.core.Response getBindingReportOperations(@Context javax.ws.rs.core.UriInfo uriInfo) throws Exception- Specified by:
getBindingReportOperationsin interfaceGroupSpaceBindingRestResources- Throws:
Exception
-
-