public interface InternalUserPermissionDAO
Modifier and Type | Method and Description |
---|---|
boolean |
exists(InternalGrantedPermission permission)
Return true if the InternalGrantedPermission has been explicitly granted.
|
List<InternalGrantedPermission> |
findAllPermissionsForGroup(String groupName,
long directoryId)
Find all permission entries for this group.
|
List<PermittedGroup> |
findHighestPermissionPerGroup(int start,
int limit)
Find all groups with an explicit permission, and return their highest permission
|
List<PermittedGroup> |
findHighestPermissionPerGroupByPrefix(String prefix,
int start,
int limit)
Find all groups with an explicit permission, and return their highest permission
|
Collection<PermittedGroup> |
getGrantedPermissions(UserPermission permission)
Find all groups that have been explicitly (not implicitly) granted the provided permission
|
Collection<PermittedGroup> |
getGrantedPermissions(UserPermission permission,
Application application)
Find all groups that have been explicitly (not implicitly) granted the provided permission
|
void |
grant(InternalGrantedPermission permission)
Grant the explicit permission to the group.
|
boolean |
revoke(InternalGrantedPermission permission)
Remove the explicit permission from the group.
|
int |
revokeAll(DirectoryMapping directoryMapping)
Revokes all permissions associated with the specified directory mapping
|
boolean exists(InternalGrantedPermission permission)
permission
- the group/permission pair to search forboolean revoke(InternalGrantedPermission permission)
permission
- the group/permission pair to removeint revokeAll(DirectoryMapping directoryMapping)
directoryMapping
- the directory mapping to revoke permissions forvoid grant(InternalGrantedPermission permission)
permission
- the group/permission pair to createCollection<PermittedGroup> getGrantedPermissions(UserPermission permission)
permission
- permission to search forCollection<PermittedGroup> getGrantedPermissions(UserPermission permission, Application application)
permission
- permission to search forapplication
- application the permission should apply toList<PermittedGroup> findHighestPermissionPerGroupByPrefix(String prefix, int start, int limit)
prefix
- prefix return only groups whose names start with this prefixstart
- index to start page atlimit
- max number of results to return, 0 for all resultsList<PermittedGroup> findHighestPermissionPerGroup(int start, int limit)
start
- index to start page atlimit
- max number of results to return, 0 for all resultsList<InternalGrantedPermission> findAllPermissionsForGroup(String groupName, long directoryId)
groupName
- name of group to searchCopyright © 2021 Atlassian. All rights reserved.