|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InternalUserPermissionDAO
Manages persistence of InternalGrantedPermission at the explicit / direct permission level. This class does not have a concept of implied permissions (eg. doesn't know that having SYS_ADMIN implies ADMIN) and deals only with direct permissions. Granting or revoking an explicit permission does not guarantee a change in actual user permissions due to potential implied permissions.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
boolean exists(InternalGrantedPermission permission)
permission - the group/permission pair to search for
boolean revoke(InternalGrantedPermission permission)
permission - the group/permission pair to remove
void grant(InternalGrantedPermission permission)
permission - the group/permission pair to createCollection<GroupMapping> getGroupMappingsWithGrantedPermission(UserPermission permission)
permission - permission to search for
List<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 results
List<PermittedGroup> findHighestPermissionPerGroup(int start,
int limit)
start - index to start page atlimit - max number of results to return, 0 for all results
List<InternalGrantedPermission> findAllPermissionsForGroup(String groupName,
long directoryId)
groupName - name of group to searchdirectoryId -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||