Class GroupsResource
java.lang.Object
com.atlassian.crowd.plugin.rest.service.resource.AbstractResource
com.atlassian.crowd.plugin.rest.service.resource.usermanagement.GroupsResource
@Path("group")
@Consumes({"application/xml","application/json"})
@Produces({"application/xml","application/json"})
public class GroupsResource
extends AbstractResource
-
Field Summary
Fields inherited from class com.atlassian.crowd.plugin.rest.service.resource.AbstractResource
APPLICATION_SCOPE, request, uriInfo -
Constructor Summary
ConstructorsConstructorDescriptionGroupsResource(GroupsController groupsController, MembershipsController membershipsController) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseaddDirectChildGroupMembership(String groupName, GroupEntity childGroup) jakarta.ws.rs.core.ResponseaddDirectParentGroupMembership(String groupName, GroupEntity parentGroup) jakarta.ws.rs.core.ResponseaddGroup(GroupEntity restGroup) jakarta.ws.rs.core.ResponseaddUserAsDirectGroupMember(String groupName, UserEntity user) jakarta.ws.rs.core.ResponsedeleteGroupAttribute(String groupname, String attributeName) jakarta.ws.rs.core.ResponsegetAllMemberships(jakarta.ws.rs.core.Request request) jakarta.ws.rs.core.ResponsegetDirectChildrenOfGroup(String groupName, String childGroupName, int startIndex, int maxResults) jakarta.ws.rs.core.ResponsegetDirectMembersOfGroup(String groupName, String username, int startIndex, int maxResults) jakarta.ws.rs.core.ResponsegetDirectParentsOfGroup(String groupName, String childGroupName, int startIndex, int maxResults) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsegetGroupAttributes(String groupName) jakarta.ws.rs.core.ResponsegetNestedChildrenOfGroup(String groupName, String childGroupName, int startIndex, int maxResults) jakarta.ws.rs.core.ResponsegetNestedMembersOfGroup(String groupName, String username, int startIndex, int maxResults) jakarta.ws.rs.core.ResponsegetNestedParentGroups(String groupName, String parentGroupName, int startIndex, int maxResults) jakarta.ws.rs.core.ResponseremoveDirectChildGroupMembership(String groupName, String childGroupName) jakarta.ws.rs.core.ResponseremoveDirectGroupMembership(String groupName, String username) jakarta.ws.rs.core.ResponseremoveGroup(String groupname) jakarta.ws.rs.core.ResponsestoreGroupAttributes(String groupname, MultiValuedAttributeEntityList attributes) jakarta.ws.rs.core.ResponseupdateGroup(String groupName, GroupEntity restGroup) Methods inherited from class com.atlassian.crowd.plugin.rest.service.resource.AbstractResource
getApplicationName, getBaseUri, setApplicationName, setRequest, setUriInfo
-
Constructor Details
-
GroupsResource
@Inject public GroupsResource(GroupsController groupsController, MembershipsController membershipsController)
-
-
Method Details
-
getGroup
@GET public jakarta.ws.rs.core.Response getGroup(@QueryParam("groupname") String groupName) throws GroupNotFoundException - Throws:
GroupNotFoundException
-
addGroup
@POST public jakarta.ws.rs.core.Response addGroup(GroupEntity restGroup) throws GroupNotFoundException, InvalidGroupException, ApplicationPermissionException, OperationFailedException -
updateGroup
@PUT public jakarta.ws.rs.core.Response updateGroup(@QueryParam("groupname") String groupName, GroupEntity restGroup) throws GroupNotFoundException, InvalidGroupException, ApplicationPermissionException, OperationFailedException -
removeGroup
@DELETE public jakarta.ws.rs.core.Response removeGroup(@QueryParam("groupname") String groupname) throws GroupNotFoundException, ApplicationPermissionException, OperationFailedException -
getGroupAttributes
@GET @Path("attribute") public jakarta.ws.rs.core.Response getGroupAttributes(@QueryParam("groupname") String groupName) throws GroupNotFoundException - Throws:
GroupNotFoundException
-
storeGroupAttributes
@POST @Path("attribute") public jakarta.ws.rs.core.Response storeGroupAttributes(@QueryParam("groupname") String groupname, MultiValuedAttributeEntityList attributes) throws GroupNotFoundException, ApplicationPermissionException, OperationFailedException -
deleteGroupAttribute
@DELETE @Path("attribute") public jakarta.ws.rs.core.Response deleteGroupAttribute(@QueryParam("groupname") String groupname, @QueryParam("attributename") String attributeName) throws GroupNotFoundException, ApplicationPermissionException, OperationFailedException -
getDirectMembersOfGroup
@GET @Path("user/direct") public jakarta.ws.rs.core.Response getDirectMembersOfGroup(@QueryParam("groupname") String groupName, @QueryParam("username") String username, @DefaultValue("0") @QueryParam("start-index") int startIndex, @DefaultValue("1000") @QueryParam("max-results") int maxResults) throws MembershipNotFoundException, GroupNotFoundException -
addUserAsDirectGroupMember
@POST @Path("user/direct") public jakarta.ws.rs.core.Response addUserAsDirectGroupMember(@QueryParam("groupname") String groupName, UserEntity user) throws GroupNotFoundException, OperationFailedException, ApplicationPermissionException, MembershipAlreadyExistsException -
removeDirectGroupMembership
@DELETE @Path("user/direct") public jakarta.ws.rs.core.Response removeDirectGroupMembership(@QueryParam("groupname") String groupName, @QueryParam("username") String username) throws GroupNotFoundException, MembershipNotFoundException, UserNotFoundException, OperationFailedException, ApplicationPermissionException -
getNestedMembersOfGroup
@GET @Path("user/nested") public jakarta.ws.rs.core.Response getNestedMembersOfGroup(@QueryParam("groupname") String groupName, @QueryParam("username") String username, @DefaultValue("0") @QueryParam("start-index") int startIndex, @DefaultValue("1000") @QueryParam("max-results") int maxResults) throws MembershipNotFoundException, GroupNotFoundException -
getDirectParentsOfGroup
@GET @Path("parent-group/direct") public jakarta.ws.rs.core.Response getDirectParentsOfGroup(@QueryParam("groupname") String groupName, @QueryParam("child-groupname") String childGroupName, @DefaultValue("0") @QueryParam("start-index") int startIndex, @DefaultValue("1000") @QueryParam("max-results") int maxResults) throws MembershipNotFoundException - Throws:
MembershipNotFoundException
-
addDirectParentGroupMembership
@POST @Path("parent-group/direct") public jakarta.ws.rs.core.Response addDirectParentGroupMembership(@QueryParam("groupname") String groupName, GroupEntity parentGroup) throws InvalidMembershipException, OperationFailedException, ApplicationPermissionException, MembershipAlreadyExistsException -
getNestedParentGroups
@GET @Path("parent-group/nested") public jakarta.ws.rs.core.Response getNestedParentGroups(@QueryParam("groupname") String groupName, @QueryParam("parent-groupname") String parentGroupName, @DefaultValue("0") @QueryParam("start-index") int startIndex, @DefaultValue("1000") @QueryParam("max-results") int maxResults) throws MembershipNotFoundException - Throws:
MembershipNotFoundException
-
getDirectChildrenOfGroup
@GET @Path("child-group/direct") public jakarta.ws.rs.core.Response getDirectChildrenOfGroup(@QueryParam("groupname") String groupName, @QueryParam("child-groupname") String childGroupName, @DefaultValue("0") @QueryParam("start-index") int startIndex, @DefaultValue("1000") @QueryParam("max-results") int maxResults) throws MembershipNotFoundException - Throws:
MembershipNotFoundException
-
addDirectChildGroupMembership
@POST @Path("child-group/direct") public jakarta.ws.rs.core.Response addDirectChildGroupMembership(@QueryParam("groupname") String groupName, GroupEntity childGroup) throws InvalidMembershipException, ApplicationPermissionException, OperationFailedException, MembershipAlreadyExistsException -
removeDirectChildGroupMembership
@DELETE @Path("child-group/direct") public jakarta.ws.rs.core.Response removeDirectChildGroupMembership(@QueryParam("groupname") String groupName, @QueryParam("child-groupname") String childGroupName) throws MembershipNotFoundException, GroupNotFoundException, ApplicationPermissionException, OperationFailedException -
getNestedChildrenOfGroup
@GET @Path("child-group/nested") public jakarta.ws.rs.core.Response getNestedChildrenOfGroup(@QueryParam("groupname") String groupName, @QueryParam("child-groupname") String childGroupName, @DefaultValue("0") @QueryParam("start-index") int startIndex, @DefaultValue("1000") @QueryParam("max-results") int maxResults) throws MembershipNotFoundException - Throws:
MembershipNotFoundException
-
getAllMemberships
@GET @Path("membership") @Produces("application/xml") public jakarta.ws.rs.core.Response getAllMemberships(@Context jakarta.ws.rs.core.Request request) throws NoSuchAlgorithmException - Throws:
NoSuchAlgorithmException
-