public interface PermissionEntryDAO extends GrouperDAO
PermissionEntry
DAO interface.Modifier and Type | Method and Description |
---|---|
Set<PermissionEntry> |
findAllPermissionsNotInGroupAndType(String attributeDefId,
String groupId,
boolean immediateRoleMembershipsOrRoleSubject,
QueryOptions queryOptions,
Boolean enabled,
boolean hasNoEndDate)
find subjects who are not in a group but who have permissions
|
Set<PermissionEntry> |
findAllPermissionsNotInStem(String attributeDefId,
Stem stem,
Stem.Scope stemScope,
boolean immediateRoleMembershipsOrRoleSubject,
QueryOptions queryOptions,
Boolean enabled,
boolean hasNoEndDate)
find subjects who are not in a group but who have permissions
|
Set<PermissionEntry> |
findByMemberId(String memberId)
find all permissions that a subject has
|
Set<PermissionEntry> |
findByMemberIdAndAttributeDefNameId(String memberId,
String attributeDefNameId)
get attribute assigns by member and attribute def name id
|
Set<PermissionEntry> |
findPermissions(Collection<String> attributeDefIds,
Collection<String> attributeDefNameIds,
Collection<String> roleIds,
Collection<String> actions,
Boolean enabled,
Collection<String> memberIds)
securely search for assignments.
|
Set<PermissionEntry> |
findPermissions(Collection<String> attributeDefIds,
Collection<String> attributeDefNameIds,
Collection<String> roleIds,
Collection<String> actions,
Boolean enabled,
Collection<String> memberIds,
boolean noEndDate)
securely search for assignments.
|
Set<PermissionEntry> |
findPermissions(Collection<String> attributeDefIds,
Collection<String> attributeDefNameIds,
Collection<String> roleIds,
Collection<String> actions,
Boolean enabled,
Collection<String> memberIds,
boolean noEndDate,
Stem permissionNameInStem,
Stem.Scope permissionNameInStemScope)
securely search for assignments.
|
Set<PermissionEntry> |
findPermissions(String attributeDefId,
String attributeDefNameId,
String ownerRoleId,
String ownerMemberId,
String action,
Boolean enabled)
securely search for assignments
|
Set<PermissionEntry> |
findPermissionsByAttributeDefDisabledRange(String attributeDefId,
Timestamp disabledDateFrom,
Timestamp disabledDateTo)
Find all permissions based on attributeDefinition, and a range of disabled dates
|
Set<PermissionEntry> |
findRolePermissions(Collection<String> attributeDefIds,
Collection<String> attributeDefNameIds,
Collection<String> roleIds,
Collection<String> actions,
Boolean enabled,
boolean noEndDate)
securely search for role assignments.
|
Set<PermissionEntry> |
findRolePermissions(Collection<String> attributeDefIds,
Collection<String> attributeDefNameIds,
Collection<String> roleIds,
Collection<String> actions,
Boolean enabled,
boolean noEndDate,
Stem permissionNameInStem,
Stem.Scope permissionNameInStemScope)
securely search for role assignments.
|
Set<PermissionEntry> |
findRolePermissions(String attributeDefId,
String attributeDefNameId,
String ownerRoleId,
String action,
Boolean enabled)
securely search for assignments
|
boolean |
hasPermissionBySubjectIdSourceIdActionAttributeDefName(String subjectId,
String sourceId,
String action,
String attributeDefNameName)
see if the permission exists and is enabled
|
Set<PermissionEntry> findByMemberId(String memberId)
memberId
- Set<PermissionEntry> findByMemberIdAndAttributeDefNameId(String memberId, String attributeDefNameId)
memberId
- attributeDefNameId
- boolean hasPermissionBySubjectIdSourceIdActionAttributeDefName(String subjectId, String sourceId, String action, String attributeDefNameName)
subjectId
- sourceId
- action
- attributeDefNameName
- Set<PermissionEntry> findPermissions(Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> roleIds, Collection<String> actions, Boolean enabled, Collection<String> memberIds, boolean noEndDate)
attributeDefIds
- optionalattributeDefNameIds
- mutually exclusive with attributeDefIdsroleIds
- optionalactions
- (null means all actions)enabled
- (null means all, true means enabled, false means disabled)memberIds
- noEndDate
- true if no end date on membershipsSet<PermissionEntry> findPermissions(Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> roleIds, Collection<String> actions, Boolean enabled, Collection<String> memberIds, boolean noEndDate, Stem permissionNameInStem, Stem.Scope permissionNameInStemScope)
attributeDefIds
- optionalattributeDefNameIds
- mutually exclusive with attributeDefIdsroleIds
- optionalactions
- (null means all actions)enabled
- (null means all, true means enabled, false means disabled)memberIds
- noEndDate
- true if no end date on membershipspermissionNameInStem
- if looking for permission names in a certain stem, put it herepermissionNameInStemScope
- if looking for permission names in a certain stem, put scope hereSet<PermissionEntry> findPermissions(String attributeDefId, String attributeDefNameId, String ownerRoleId, String ownerMemberId, String action, Boolean enabled)
attributeAssignType
- attributeDefId
- optionalattributeDefNameId
- mutually exclusive with attributeDefIdsownerRoleId
- optionalownerStemId
- optionalownerMemberId
- optionalownerAttributeDefId
- optionalownerMembershipId
- optionalaction
- optionalenabled
- (null means all, true means enabled, false means disabled)includeAssignmentsOnAssignments
- if assignments on assignments should also be includedSet<PermissionEntry> findRolePermissions(String attributeDefId, String attributeDefNameId, String ownerRoleId, String action, Boolean enabled)
attributeAssignType
- attributeDefId
- optionalattributeDefNameId
- mutually exclusive with attributeDefIdsownerRoleId
- optionalownerStemId
- optionalownerAttributeDefId
- optionalownerMembershipId
- optionalaction
- optionalenabled
- (null means all, true means enabled, false means disabled)includeAssignmentsOnAssignments
- if assignments on assignments should also be includedSet<PermissionEntry> findPermissions(Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> roleIds, Collection<String> actions, Boolean enabled, Collection<String> memberIds)
attributeDefIds
- optionalattributeDefNameIds
- mutually exclusive with attributeDefIdsroleIds
- optionalactions
- (null means all actions)enabled
- (null means all, true means enabled, false means disabled)memberIds
- Set<PermissionEntry> findPermissionsByAttributeDefDisabledRange(String attributeDefId, Timestamp disabledDateFrom, Timestamp disabledDateTo)
attributeDefId
- disabledDateFrom
- null if dont considerdisabledDateTo
- null if dont considerSet<PermissionEntry> findAllPermissionsNotInGroupAndType(String attributeDefId, String groupId, boolean immediateRoleMembershipsOrRoleSubject, QueryOptions queryOptions, Boolean enabled, boolean hasNoEndDate)
attributeDefId
- groupId
- immediateRoleMembershipsOrRoleSubject
- queryOptions
- enabled
- hasNoEndDate
- Set<PermissionEntry> findAllPermissionsNotInStem(String attributeDefId, Stem stem, Stem.Scope stemScope, boolean immediateRoleMembershipsOrRoleSubject, QueryOptions queryOptions, Boolean enabled, boolean hasNoEndDate)
attributeDefId
- stem
- stemScope
- immediateRoleMembershipsOrRoleSubject
- queryOptions
- enabled
- hasNoEndDate
- Set<PermissionEntry> findRolePermissions(Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> roleIds, Collection<String> actions, Boolean enabled, boolean noEndDate)
attributeDefIds
- optionalattributeDefNameIds
- mutually exclusive with attributeDefIdsroleIds
- optionalactions
- (null means all actions)enabled
- (null means all, true means enabled, false means disabled)memberIds
- noEndDate
- true if no end date on membershipsSet<PermissionEntry> findRolePermissions(Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> roleIds, Collection<String> actions, Boolean enabled, boolean noEndDate, Stem permissionNameInStem, Stem.Scope permissionNameInStemScope)
attributeDefIds
- optionalattributeDefNameIds
- mutually exclusive with attributeDefIdsroleIds
- optionalactions
- (null means all actions)enabled
- (null means all, true means enabled, false means disabled)memberIds
- noEndDate
- true if no end date on membershipspermissionNameInStem
- if looking for permission names in a certain stem, put it herepermissionNameInStemScope
- if looking for permission names in a certain stem, put scope hereCopyright © 2016 Internet2. All rights reserved.