Package org.exoplatform.portal.rest
Class GroupRestResourcesV1
java.lang.Object
org.exoplatform.portal.rest.GroupRestResourcesV1
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer
public class GroupRestResourcesV1
extends Object
implements org.exoplatform.services.rest.resource.ResourceContainer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGroupRestResourcesV1(org.exoplatform.services.organization.OrganizationService organizationService, org.exoplatform.services.organization.search.GroupSearchService groupSearchService, UserACL userACL) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecreateGroup(org.exoplatform.services.organization.impl.GroupImpl group) javax.ws.rs.core.ResponsecreateMembership(org.exoplatform.services.organization.idm.MembershipImpl membership) javax.ws.rs.core.ResponsecreateMultipleMembership(List<org.exoplatform.services.organization.idm.MembershipImpl> memberships) javax.ws.rs.core.ResponsedeleteGroup(String groupId) javax.ws.rs.core.ResponsedeleteMembership(String membershipId) javax.ws.rs.core.ResponsegetGroupMemberships(String groupId, int offset, int limit, boolean returnSize) javax.ws.rs.core.ResponsegetGroups(javax.ws.rs.core.UriInfo uriInfo, String q, int offset, int limit, boolean buildTree, boolean returnSize, String expand) javax.ws.rs.core.ResponsegetGroupsTree(javax.ws.rs.core.UriInfo uriInfo, String parentId, String q, int offset, int limit, boolean returnSize) javax.ws.rs.core.ResponsegetGroupsTreeMembers(javax.ws.rs.core.UriInfo uriInfo, String q, String groupMember, String groupType, int offset, int limit, boolean returnSize, boolean allGroupsForAdmin, List<String> excludeParentGroup) javax.ws.rs.core.ResponseupdateGroup(org.exoplatform.services.organization.impl.GroupImpl group) javax.ws.rs.core.ResponseupdateMembership(String membershipId, org.exoplatform.services.organization.idm.MembershipImpl membership)
-
Field Details
-
DEFAULT_LIMIT
public static final int DEFAULT_LIMIT- See Also:
-
DEFAULT_OFFSET
public static final int DEFAULT_OFFSET- See Also:
-
-
Constructor Details
-
GroupRestResourcesV1
public GroupRestResourcesV1(org.exoplatform.services.organization.OrganizationService organizationService, org.exoplatform.services.organization.search.GroupSearchService groupSearchService, UserACL userACL)
-
-
Method Details
-
getGroups
@RolesAllowed("administrators") public javax.ws.rs.core.Response getGroups(@Context javax.ws.rs.core.UriInfo uriInfo, String q, int offset, int limit, boolean buildTree, boolean returnSize, String expand) throws Exception - Throws:
Exception
-
getGroupsTree
@RolesAllowed("administrators") public javax.ws.rs.core.Response getGroupsTree(@Context javax.ws.rs.core.UriInfo uriInfo, String parentId, String q, int offset, int limit, boolean returnSize) throws Exception - Throws:
Exception
-
createGroup
@RolesAllowed("administrators") public javax.ws.rs.core.Response createGroup(org.exoplatform.services.organization.impl.GroupImpl group) throws Exception - Throws:
Exception
-
updateGroup
@RolesAllowed("administrators") public javax.ws.rs.core.Response updateGroup(org.exoplatform.services.organization.impl.GroupImpl group) throws Exception - Throws:
Exception
-
deleteGroup
@RolesAllowed("administrators") public javax.ws.rs.core.Response deleteGroup(String groupId) throws Exception - Throws:
Exception
-
getGroupMemberships
@RolesAllowed("administrators") public javax.ws.rs.core.Response getGroupMemberships(String groupId, int offset, int limit, boolean returnSize) throws Exception - Throws:
Exception
-
createMembership
@RolesAllowed("administrators") public javax.ws.rs.core.Response createMembership(org.exoplatform.services.organization.idm.MembershipImpl membership) throws Exception - Throws:
Exception
-
createMultipleMembership
@RolesAllowed("administrators") public javax.ws.rs.core.Response createMultipleMembership(List<org.exoplatform.services.organization.idm.MembershipImpl> memberships) throws Exception - Throws:
Exception
-
updateMembership
@RolesAllowed("administrators") public javax.ws.rs.core.Response updateMembership(String membershipId, org.exoplatform.services.organization.idm.MembershipImpl membership) throws Exception - Throws:
Exception
-
deleteMembership
@RolesAllowed("administrators") public javax.ws.rs.core.Response deleteMembership(String membershipId) throws Exception - Throws:
Exception
-
getGroupsTreeMembers
@RolesAllowed("users") public javax.ws.rs.core.Response getGroupsTreeMembers(@Context javax.ws.rs.core.UriInfo uriInfo, String q, String groupMember, String groupType, int offset, int limit, boolean returnSize, boolean allGroupsForAdmin, List<String> excludeParentGroup) throws Exception - Throws:
Exception
-