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 com.atlassian.crowd.exception.DirectoryNotFoundException, com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.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 permissionscom.atlassian.crowd.exception.DirectoryNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedExceptioncom.atlassian.crowd.exception.ApplicationNotFoundExceptionAnonymousUserPermissionExceptionvoid revokePermissionsForGroup(DirectoryGroup group) throws com.atlassian.crowd.exception.DirectoryNotFoundException, com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.ApplicationNotFoundException, UserPermissionDowngradeException, AnonymousUserPermissionException
group - group to remove permissions fromUserPermissionDowngradeException - if the user can not remove a permission because
doing so would downgrade their own permissionscom.atlassian.crowd.exception.DirectoryNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedExceptioncom.atlassian.crowd.exception.ApplicationNotFoundExceptionAnonymousUserPermissionExceptionPage<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 limitUserPermissionExceptionAnonymousUserPermissionExceptionPage<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 limitUserPermissionExceptionAnonymousUserPermissionExceptionPage<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 limitAnonymousUserPermissionExceptionPage<DirectoryGroup> findGroups(int start, int limit) throws AnonymousUserPermissionException
start - index to start page atlimit - max number of results to return or 0 for no limitAnonymousUserPermissionExceptionCopyright © 2019 Atlassian. All rights reserved.