|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PermissionEntryDAO
Basic PermissionEntry
DAO interface.
Method Summary | |
---|---|
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 |
Method Detail |
---|
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 memberships
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)
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 here
Set<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 included
Set<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 included
Set<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 consider
Set<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 memberships
Set<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 here
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |