@Path(value="group") @Consumes(value="application/json") @Produces(value="application/json") public class GroupAdminResource extends Object
| Constructor and Description |
|---|
GroupAdminResource(GroupAdminController controller,
NestedGroupsMembershipController nestedMembershipController) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addGroupsToGroup(DirectoryEntityId groupId,
GroupIdentifiersEntityList groups)
Adds multiple groups to a single group placed in the same directory
|
javax.ws.rs.core.Response |
getNestedGroups(DirectoryEntityId groupId,
RestPageRequest pageRequest)
Returns group's direct members (groups).
|
RestPage<GroupSearchResultEntity> |
searchDirectoryGroups(long dirId,
String term,
Boolean active,
RestPageRequest pageRequest)
Searches the given directory for groups matching the search term.
|
public GroupAdminResource(GroupAdminController controller, NestedGroupsMembershipController nestedMembershipController)
@GET
@Path(value="search/{directoryId}")
@ExperimentalApi
public RestPage<GroupSearchResultEntity> searchDirectoryGroups(@PathParam(value="directoryId")
long dirId,
@QueryParam(value="term") @Nullable
String term,
@QueryParam(value="active") @Nullable
Boolean active,
@Context
RestPageRequest pageRequest)
throws DirectoryNotFoundException,
OperationFailedException
dirId - the id of the directory to searchterm - the search termactive - status of the groups to searchDirectoryNotFoundExceptionOperationFailedException@GET
@Path(value="/{groupId}/groups")
@ExperimentalApi
public javax.ws.rs.core.Response getNestedGroups(@PathParam(value="groupId")
DirectoryEntityId groupId,
@Context
RestPageRequest pageRequest)
throws DirectoryNotFoundException,
OperationFailedException,
GroupNotFoundException,
FeatureInaccessibleException
groupId - Group's unique identifierDirectoryNotFoundExceptionOperationFailedExceptionGroupNotFoundExceptionFeatureInaccessibleException@POST
@Path(value="/{groupId}/groups")
@ExperimentalApi
public javax.ws.rs.core.Response addGroupsToGroup(@PathParam(value="groupId")
DirectoryEntityId groupId,
GroupIdentifiersEntityList groups)
throws DirectoryNotFoundException,
GroupNotFoundException,
OperationFailedException,
DirectoryPermissionException,
FeatureInaccessibleException
groupId - Group's unique identifiergroups - Entity with group's unique identifiersDirectoryNotFoundExceptionGroupNotFoundExceptionOperationFailedExceptionDirectoryPermissionExceptionFeatureInaccessibleExceptionCopyright © 2022 Atlassian. All rights reserved.