@Named @Path(value="/group") @Produces(value="application/json") @Consumes(value="application/json") public class TestKitGroupResource extends Object
| Constructor and Description |
|---|
TestKitGroupResource(DirectoryManager directoryManager,
com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate) |
| Modifier and Type | Method and Description |
|---|---|
javax.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) |
@Inject public TestKitGroupResource(DirectoryManager directoryManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
@POST
public javax.ws.rs.core.Response createGroup(@QueryParam(value="name")
String groupName,
@QueryParam(value="directoryId")
Long directoryId,
@QueryParam(value="description") @Nullable
String description)
throws Exception
Exception@PUT
@Path(value="{groupName}")
public javax.ws.rs.core.Response updateGroup(@PathParam(value="groupName")
String groupName,
@QueryParam(value="directoryId")
Long directoryId,
@QueryParam(value="description") @Nullable
String description)
throws Exception
Exception@DELETE
@Path(value="{groupName}")
public javax.ws.rs.core.Response deleteGroup(@PathParam(value="groupName")
String groupName,
@QueryParam(value="directoryId")
long directoryId)
throws ReadOnlyGroupException,
OperationFailedException,
GroupNotFoundException,
DirectoryNotFoundException,
DirectoryPermissionException
@DELETE
@Path(value="{parentGroupName}/nested/{groupName}")
public javax.ws.rs.core.Response removeNestedGroup(@PathParam(value="parentGroupName")
String parentGroupName,
@PathParam(value="groupName")
String groupName,
@QueryParam(value="directoryId")
long directoryId)
throws InvalidMembershipException,
DirectoryPermissionException,
DirectoryNotFoundException,
GroupNotFoundException,
MembershipNotFoundException,
ReadOnlyGroupException,
OperationFailedException
Copyright © 2024 Atlassian. All rights reserved.