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)
@ExperimentalApi public RestPage<GroupSearchResultEntity> searchDirectoryGroups(long dirId, @Nullable String term, @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 searchDirectoryNotFoundException
OperationFailedException
@ExperimentalApi public javax.ws.rs.core.Response getNestedGroups(DirectoryEntityId groupId, @Context RestPageRequest pageRequest) throws DirectoryNotFoundException, OperationFailedException, GroupNotFoundException, FeatureInaccessibleException
groupId
- Group's unique identifierDirectoryNotFoundException
OperationFailedException
GroupNotFoundException
FeatureInaccessibleException
@ExperimentalApi public javax.ws.rs.core.Response addGroupsToGroup(DirectoryEntityId groupId, GroupIdentifiersEntityList groups) throws DirectoryNotFoundException, GroupNotFoundException, OperationFailedException, DirectoryPermissionException, FeatureInaccessibleException
groupId
- Group's unique identifiergroups
- Entity with group's unique identifiersDirectoryNotFoundException
GroupNotFoundException
OperationFailedException
DirectoryPermissionException
FeatureInaccessibleException
Copyright © 2020 Atlassian. All rights reserved.