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<GroupMapping> |
getGroupMappingsWithGrantedPermission(UserPermission permission)
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.
|
boolean exists(InternalGrantedPermission permission)
permission - the group/permission pair to search forboolean revoke(InternalGrantedPermission permission)
permission - the group/permission pair to removevoid grant(InternalGrantedPermission permission)
permission - the group/permission pair to createCollection<GroupMapping> getGroupMappingsWithGrantedPermission(UserPermission permission)
permission - permission to search forList<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 © 2018 Atlassian. All rights reserved.