public interface UserPermissionAdminService
Modifier and Type | Method and Description |
---|---|
Page<DirectoryGroup> |
findGroups(int start,
int limit)
List all groups that the Crowd console application can see.
|
Page<DirectoryGroup> |
findGroupsByPrefix(String prefix,
int start,
int limit)
List all groups that the Crowd console application can see, filtered by prefix.
|
Page<PermittedGroup> |
findGroupsWithPermission(int start,
int limit)
Find all groups with an explicit permission
Note: there are no authentication checks in this method
|
Page<PermittedGroup> |
findGroupsWithPermissionByPrefix(String prefix,
int start,
int limit)
Find all groups with an explicit permission
Note: there are no authentication checks in this method
|
void |
revokePermissionsForGroup(DirectoryGroup group)
Remove all permissions from the given group.
|
void |
setPermissionForGroups(List<? extends DirectoryGroup> directoryGroupPairs,
UserPermission permission)
Set the granted permissions for each directoryGroup to permission.
|
void setPermissionForGroups(List<? extends DirectoryGroup> directoryGroupPairs, UserPermission permission) throws DirectoryNotFoundException, OperationFailedException, ApplicationNotFoundException, UserPermissionDowngradeException, AnonymousUserPermissionException
directoryGroupPairs
- list of groups to set permissions onpermission
- permission to set toUserPermissionDowngradeException
- if the user can not remove a permission because
doing so would downgrade their own permissionsDirectoryNotFoundException
OperationFailedException
ApplicationNotFoundException
AnonymousUserPermissionException
void revokePermissionsForGroup(DirectoryGroup group) throws DirectoryNotFoundException, OperationFailedException, ApplicationNotFoundException, UserPermissionDowngradeException, AnonymousUserPermissionException
group
- group to remove permissions fromUserPermissionDowngradeException
- if the user can not remove a permission because
doing so would downgrade their own permissionsDirectoryNotFoundException
OperationFailedException
ApplicationNotFoundException
AnonymousUserPermissionException
Page<PermittedGroup> findGroupsWithPermissionByPrefix(@Nonnull String prefix, int start, int limit) throws UserPermissionException, AnonymousUserPermissionException
prefix
- filter group names by name prefixstart
- index to start page atlimit
- max number of results to return or 0 for no limitUserPermissionException
AnonymousUserPermissionException
Page<PermittedGroup> findGroupsWithPermission(int start, int limit) throws UserPermissionException, AnonymousUserPermissionException
start
- index to start page atlimit
- max number of results to return or 0 for no limitUserPermissionException
AnonymousUserPermissionException
Page<DirectoryGroup> findGroupsByPrefix(@Nonnull String prefix, int start, int limit) throws AnonymousUserPermissionException
start
- index to start page atlimit
- max number of results to return or 0 for no limitAnonymousUserPermissionException
Page<DirectoryGroup> findGroups(int start, int limit) throws AnonymousUserPermissionException
start
- index to start page atlimit
- max number of results to return or 0 for no limitAnonymousUserPermissionException
Copyright © 2020 Atlassian. All rights reserved.