Class Hib3PermissionEntryDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3PermissionEntryDAO
- All Implemented Interfaces:
GrouperDAO
,PermissionEntryDAO
Basic Hibernate
PermissionEntry
DAO interface.- Version:
- $Id: Hib3PermissionEntryDAO.java,v 1.4 2009-10-26 04:52:17 mchyzer Exp $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAllPermissionsNotInGroupAndType
(String attributeDefId, String groupId, boolean immediateRoleMembershipsOrRoleSubject, QueryOptions queryOptions, Boolean enabled, boolean hasNoEndDate) find subjects who are not in a group but who have permissionsfindAllPermissionsNotInStem
(String attributeDefId, Stem ownerNotInStem, Stem.Scope stemScope, boolean immediateRoleMembershipsOrRoleSubject, QueryOptions queryOptions, Boolean enabled, boolean hasNoEndDate) find subjects who are not in a group but who have permissionsfindByMemberId
(String memberId) find all permissions that a subject hasfindByMemberIdAndAttributeDefNameId
(String memberId, String attributeDefNameId) get attribute assigns by member and attribute def name idfindPermissions
(String attributeDefId, String attributeDefNameId, String ownerRoleId, String ownerMemberId, String action, Boolean enabled) find permissions based on filter criteriafindPermissions
(Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> roleIds, Collection<String> actions, Boolean enabled, Collection<String> memberIds) securely search for assignments.findPermissions
(Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> roleIds, Collection<String> actions, Boolean enabled, Collection<String> memberIdsTotal, boolean noEndDate) securely search for assignments.findPermissions
(Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> roleIds, Collection<String> actions, Boolean enabled, Collection<String> memberIdsTotal, boolean noEndDate, Stem permissionNameInStem, Stem.Scope permissionNameInStemScope) securely search for assignments.findPermissionsByAttributeDefDisabledRange
(String attributeDefId, Timestamp disabledDateFrom, Timestamp disabledDateTo) Find all permissions based on attributeDefinition, and a range of disabled datesfindRolePermissions
(String attributeDefId, String attributeDefNameId, String ownerRoleId, String action, Boolean enabled) securely search for assignmentsfindRolePermissions
(Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> roleIds, Collection<String> actions, Boolean enabled, boolean noEndDate) securely search for role assignments.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.boolean
hasPermissionBySubjectIdSourceIdActionAttributeDefName
(String subjectId, String sourceId, String action, String attributeDefNameName) see if the permission exists and is enabledMethods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
evict, evictEntity, evictQueries, getConfiguration, getConfiguration, getSessionFactory, getSessionFactory, hibernateInitted, initHibernateIfNotInitted, initHibernateIfNotInitted, resourceNameFromClassName, session, session
-
Constructor Details
-
Hib3PermissionEntryDAO
public Hib3PermissionEntryDAO()
-
-
Method Details
-
findByMemberId
Description copied from interface:PermissionEntryDAO
find all permissions that a subject has- Specified by:
findByMemberId
in interfacePermissionEntryDAO
- Returns:
- the permissions
- See Also:
-
hasPermissionBySubjectIdSourceIdActionAttributeDefName
public boolean hasPermissionBySubjectIdSourceIdActionAttributeDefName(String subjectId, String sourceId, String action, String attributeDefNameName) Description copied from interface:PermissionEntryDAO
see if the permission exists and is enabled- Specified by:
hasPermissionBySubjectIdSourceIdActionAttributeDefName
in interfacePermissionEntryDAO
- Returns:
- true if has permissions and is enabled
- See Also:
-
findByMemberIdAndAttributeDefNameId
public Set<PermissionEntry> findByMemberIdAndAttributeDefNameId(String memberId, String attributeDefNameId) Description copied from interface:PermissionEntryDAO
get attribute assigns by member and attribute def name id- Specified by:
findByMemberIdAndAttributeDefNameId
in interfacePermissionEntryDAO
- Returns:
- set of assigns or empty if none there
- See Also:
-
findPermissions
public Set<PermissionEntry> findPermissions(Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> roleIds, Collection<String> actions, Boolean enabled, Collection<String> memberIds) Description copied from interface:PermissionEntryDAO
securely search for assignments. need to pass in either the assign ids, def ids, def name ids, or group ids cannot have more than 100 bind variables- Specified by:
findPermissions
in interfacePermissionEntryDAO
- Parameters:
attributeDefIds
- optionalattributeDefNameIds
- mutually exclusive with attributeDefIdsroleIds
- optionalactions
- (null means all actions)enabled
- (null means all, true means enabled, false means disabled)- Returns:
- the permissions
- See Also:
-
findPermissions
public Set<PermissionEntry> findPermissions(Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> roleIds, Collection<String> actions, Boolean enabled, Collection<String> memberIdsTotal, boolean noEndDate) Description copied from interface:PermissionEntryDAO
securely search for assignments. need to pass in either the assign ids, def ids, def name ids, or group ids cannot have more than 100 bind variables. well, you can pass more than 100 members... it will batch- Specified by:
findPermissions
in interfacePermissionEntryDAO
- Parameters:
attributeDefIds
- optionalattributeDefNameIds
- mutually exclusive with attributeDefIdsroleIds
- optionalactions
- (null means all actions)enabled
- (null means all, true means enabled, false means disabled)noEndDate
- true if no end date on memberships- Returns:
- the permissions
- See Also:
-
findPermissions
public Set<PermissionEntry> findPermissions(Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> roleIds, Collection<String> actions, Boolean enabled, Collection<String> memberIdsTotal, boolean noEndDate, Stem permissionNameInStem, Stem.Scope permissionNameInStemScope) Description copied from interface:PermissionEntryDAO
securely search for assignments. need to pass in either the assign ids, def ids, def name ids, or group ids cannot have more than 100 bind variables. well, you can pass more than 100 members... it will batch- Specified by:
findPermissions
in interfacePermissionEntryDAO
- Parameters:
attributeDefIds
- optionalattributeDefNameIds
- mutually exclusive with attributeDefIdsroleIds
- optionalactions
- (null means all actions)enabled
- (null means all, true means enabled, false means disabled)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- Returns:
- the permissions
- See Also:
-
findPermissionsByAttributeDefDisabledRange
public Set<PermissionEntry> findPermissionsByAttributeDefDisabledRange(String attributeDefId, Timestamp disabledDateFrom, Timestamp disabledDateTo) Description copied from interface:PermissionEntryDAO
Find all permissions based on attributeDefinition, and a range of disabled dates- Specified by:
findPermissionsByAttributeDefDisabledRange
in interfacePermissionEntryDAO
disabledDateFrom
- null if dont considerdisabledDateTo
- null if dont consider- Returns:
- the permission records
- See Also:
-
findAllPermissionsNotInGroupAndType
public Set<PermissionEntry> findAllPermissionsNotInGroupAndType(String attributeDefId, String groupId, boolean immediateRoleMembershipsOrRoleSubject, QueryOptions queryOptions, Boolean enabled, boolean hasNoEndDate) Description copied from interface:PermissionEntryDAO
find subjects who are not in a group but who have permissions- Specified by:
findAllPermissionsNotInGroupAndType
in interfacePermissionEntryDAO
- Returns:
- the set of members
- See Also:
-
findAllPermissionsNotInStem
public Set<PermissionEntry> findAllPermissionsNotInStem(String attributeDefId, Stem ownerNotInStem, Stem.Scope stemScope, boolean immediateRoleMembershipsOrRoleSubject, QueryOptions queryOptions, Boolean enabled, boolean hasNoEndDate) Description copied from interface:PermissionEntryDAO
find subjects who are not in a group but who have permissions- Specified by:
findAllPermissionsNotInStem
in interfacePermissionEntryDAO
- Returns:
- the set of members
- See Also:
-
findPermissions
public Set<PermissionEntry> findPermissions(String attributeDefId, String attributeDefNameId, String ownerRoleId, String ownerMemberId, String action, Boolean enabled) find permissions based on filter criteria- Specified by:
findPermissions
in interfacePermissionEntryDAO
- Parameters:
attributeDefId
- optionalattributeDefNameId
- mutually exclusive with attributeDefIdsownerRoleId
- optionalownerMemberId
- optionalaction
- optionalenabled
- (null means all, true means enabled, false means disabled)- Returns:
- the assignments
-
findRolePermissions
public Set<PermissionEntry> findRolePermissions(String attributeDefId, String attributeDefNameId, String ownerRoleId, String action, Boolean enabled) Description copied from interface:PermissionEntryDAO
securely search for assignments- Specified by:
findRolePermissions
in interfacePermissionEntryDAO
- Parameters:
attributeDefId
- optionalattributeDefNameId
- mutually exclusive with attributeDefIdsownerRoleId
- optionalaction
- optionalenabled
- (null means all, true means enabled, false means disabled)- Returns:
- the assignments
- See Also:
-
PermissionEntry#findRolePermissions(String attributeDefId, String attributeDefNameId, String ownerRoleId, String action, Boolean enabled)
-
findRolePermissions
public Set<PermissionEntry> findRolePermissions(Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> roleIds, Collection<String> actions, Boolean enabled, boolean noEndDate) Description copied from interface:PermissionEntryDAO
securely search for role assignments. need to pass in either the assign ids, def ids, def name ids, or group ids cannot have more than 100 bind variables- Specified by:
findRolePermissions
in interfacePermissionEntryDAO
- Parameters:
attributeDefIds
- optionalattributeDefNameIds
- mutually exclusive with attributeDefIdsroleIds
- optionalactions
- (null means all actions)enabled
- (null means all, true means enabled, false means disabled)noEndDate
- true if no end date on memberships- Returns:
- the permissions
- See Also:
-
findRolePermissions
public Set<PermissionEntry> findRolePermissions(Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> roleIds, Collection<String> actions, Boolean enabled, boolean noEndDate, Stem permissionNameInStem, Stem.Scope permissionNameInStemScope) Description copied from interface:PermissionEntryDAO
securely search for role assignments. need to pass in either the assign ids, def ids, def name ids, or group ids cannot have more than 100 bind variables- Specified by:
findRolePermissions
in interfacePermissionEntryDAO
- Parameters:
attributeDefIds
- optionalattributeDefNameIds
- mutually exclusive with attributeDefIdsroleIds
- optionalactions
- (null means all actions)enabled
- (null means all, true means enabled, false means disabled)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- Returns:
- the permissions
- See Also:
-