Class TestKitGroupResource
java.lang.Object
com.atlassian.crowd.plugins.testkit.rest.TestKitGroupResource
@Named
@Path("/group")
@Produces("application/json")
@Consumes("application/json")
public class TestKitGroupResource
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionTestKitGroupResource
(DirectoryManager directoryManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
createGroup
(String groupName, Long directoryId, String description) javax.ws.rs.core.Response
deleteGroup
(String groupName, long directoryId) javax.ws.rs.core.Response
findAllMembers
(String groupName, Long directoryId, String directoryName) javax.ws.rs.core.Response
removeNestedGroup
(String parentGroupName, String groupName, long directoryId) javax.ws.rs.core.Response
updateGroup
(String groupName, Long directoryId, String description)
-
Constructor Details
-
TestKitGroupResource
@Inject public TestKitGroupResource(DirectoryManager directoryManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
-
-
Method Details
-
createGroup
@POST public javax.ws.rs.core.Response createGroup(@QueryParam("name") String groupName, @QueryParam("directoryId") Long directoryId, @QueryParam("description") @Nullable String description) throws Exception - Throws:
Exception
-
updateGroup
@PUT @Path("{groupName}") public javax.ws.rs.core.Response updateGroup(@PathParam("groupName") String groupName, @QueryParam("directoryId") Long directoryId, @QueryParam("description") @Nullable String description) throws Exception - Throws:
Exception
-
deleteGroup
@DELETE @Path("{groupName}") public javax.ws.rs.core.Response deleteGroup(@PathParam("groupName") String groupName, @QueryParam("directoryId") long directoryId) throws ReadOnlyGroupException, OperationFailedException, GroupNotFoundException, DirectoryNotFoundException, DirectoryPermissionException -
removeNestedGroup
@DELETE @Path("{parentGroupName}/nested/{groupName}") public javax.ws.rs.core.Response removeNestedGroup(@PathParam("parentGroupName") String parentGroupName, @PathParam("groupName") String groupName, @QueryParam("directoryId") long directoryId) throws InvalidMembershipException, DirectoryPermissionException, DirectoryNotFoundException, GroupNotFoundException, MembershipNotFoundException, ReadOnlyGroupException, OperationFailedException -
findAllMembers
@GET @Path("/nesteduserscount") public javax.ws.rs.core.Response findAllMembers(@QueryParam("groupName") String groupName, @QueryParam("directoryId") Long directoryId, @QueryParam("directoryName") String directoryName) throws Exception - Throws:
Exception
-