Class Hib3MembershipDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MembershipDAO
- All Implemented Interfaces:
GrouperDAO
,MembershipDAO
Basic Hibernate
Membership
DAO interface.- Since:
- Version:
- $Id: Hib3MembershipDAO.java,v 1.52 2009-12-17 06:57:57 mchyzer Exp $
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addViewPrivilegeIfSelfMembershipQuery
(GrouperSession grouperSession, Collection<String> totalMemberIds, Collection<Field> fields, FieldType fieldType, Set<Privilege> privilegesTheUserHasFinal) void
delete
(Membership ms) Delete a membershipvoid
delete
(Set<Membership> mships) Delete a set of membershipsfindAll
(boolean enabledOnly) get all membershipsfindAllByAttrDefOwnerAndField
(String ownerAttrDefId, Field f, boolean enabledOnly) findAllByAttrDefOwnerAndFieldAndType
(String ownerAttrDefId, Field f, String type, boolean enabledOnly) findAllByAttrDefOwnerAndMember
(String ownerAttrDefId, String memberUUID, boolean enabledOnly) findAllByAttrDefOwnerAndMemberAndField
(String ownerAttrDefId, String memberUUID, Field f, boolean enabledOnly) findAllByAttrDefOwnerAsList
(String attrDefId, boolean enabledOnly) findAllByAttributeDefOwnerOptions
(String attributeDefId, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) find memberships by attribute def owner and other options.findAllByAttributeDefOwnerOptions
(String attributeDefId, Collection<String> totalMemberIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) find membershpis by attribute def owner and other options.findAllByAttributeDefOwnerOptions
(Collection<String> totalAttributeDefIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity) find memberships by stem owner and other options.findAllByAttributeDefOwnerOptions
(Collection<String> attributeDefIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity, QueryOptions queryOptionsForAttributeDef, String scopeForAttributeDef, boolean splitScopeForAttributeDef, boolean hasFieldForAttributeDef, boolean hasMembershipTypeForAttributeDef) find memberships by stem owner and other options.findAllByAttributeDefOwnerOptions
(Collection<String> attributeDefIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity, QueryOptions queryOptionsForMember, String filterForMember, boolean splitScopeForMember, boolean hasFieldForMember, boolean hasMembershipTypeForMember, QueryOptions queryOptionsForAttributeDef, String scopeForAttributeDef, boolean splitScopeForAttributeDef, boolean hasFieldForAttributeDef, boolean hasMembershipTypeForAttributeDef) find memberships by stem owner and other options.findAllByAttributeDefOwnerOptions
(Collection<String> attributeDefIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity, QueryOptions queryOptionsForMember, String filterForMember, boolean splitScopeForMember, boolean hasFieldForMember, boolean hasMembershipTypeForMember, QueryOptions queryOptionsForAttributeDef, String scopeForAttributeDef, boolean splitScopeForAttributeDef, boolean hasFieldForAttributeDef, boolean hasMembershipTypeForAttributeDef, Boolean hasEnabledDate, Boolean hasDisabledDate, CompositeType customCompositeType, Group customCompositeGroup) find memberships by stem owner and other options.findAllByCreatedAfter
(Date d, Field f, boolean enabledOnly) findAllByCreatedBefore
(Date d, Field f, boolean enabledOnly) findAllByCreatorOrMember
(Member member, boolean enabledOnly) find all memberships that have this member or have this creatorfindAllByGroupOwnerAndCompositeAndMembers
(String ownerGroupId, Collection<Member> members, boolean enabledOnly) findAllByGroupOwnerAndDepth
(String ownerGroupId, int depth, boolean enabledOnly) findAllByGroupOwnerAndField
(String ownerGroupId, Field f, boolean enabledOnly) findAllByGroupOwnerAndFieldAndDepth
(String ownerGroupId, Field f, int depth, boolean enabledOnly) findAllByGroupOwnerAndFieldAndMemberIdsAndType
(String ownerGroupId, Field f, Collection<String> memberIds, String type, boolean enabledOnly) findAllByGroupOwnerAndFieldAndMembers
(String ownerGroupId, Field f, Collection<Member> members, boolean enabledOnly) TODO update for 1.5findAllByGroupOwnerAndFieldAndMembersAndType
(String ownerGroupId, Field f, Collection<Member> members, String type, boolean enabledOnly) findAllByGroupOwnerAndFieldAndType
(String ownerGroupId, Field f, String type, boolean enabledOnly) findAllByGroupOwnerAndMember
(String ownerGroupId, String memberUUID, boolean enabledOnly) findAllByGroupOwnerAndMemberAndField
(String ownerGroupId, String memberUUID, Field f, boolean enabledOnly) findAllByGroupOwnerAsList
(String ownerGroupId, boolean enabledOnly) findAllByGroupOwnerOptions
(String groupId, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) find memberships by group owner and other options.findAllByGroupOwnerOptions
(String groupId, Collection<String> totalMemberIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) find membershpis by group owner and other options.findAllByGroupOwnerOptions
(Collection<String> totalGroupIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled) find membershpis by group owner and other options.findAllByGroupOwnerOptions
(Collection<String> totalGroupIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity) find membershpis by group owner and other options.findAllByGroupOwnerOptions
(Collection<String> totalGroupIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity, FieldType fieldType) find membershpis by group owner and other options.findAllByGroupOwnerOptions
(Collection<String> totalGroupIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Collection<Field> fields, Collection<Privilege> privilegesTheUserHas, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity, FieldType fieldType, String serviceId, ServiceRole serviceRole, QueryOptions queryOptionsForMember, String filterForMember, boolean splitScopeForMember, boolean hasFieldForMember, boolean hasMembershipTypeForMember, QueryOptions queryOptionsForGroup, String scopeForGroup, boolean splitScopeForGroup, boolean hasFieldForGroup, boolean hasMembershipTypeForGroup, Member memberHasMembershipForGroup) find memberships by group owner and other options.findAllByGroupOwnerOptions
(Collection<String> totalGroupIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Collection<Field> fields, Collection<Privilege> privilegesTheUserHas, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity, FieldType fieldType, String serviceId, ServiceRole serviceRole, QueryOptions queryOptionsForMember, String filterForMember, boolean splitScopeForMember, boolean hasFieldForMember, boolean hasMembershipTypeForMember, QueryOptions queryOptionsForGroup, String scopeForGroup, boolean splitScopeForGroup, boolean hasFieldForGroup, boolean hasMembershipTypeForGroup, Member memberHasMembershipForGroup, Boolean hasEnabledDate, Boolean hasDisabledDate, CompositeType customCompositeType, Group customCompositeGroup) find memberships by group owner and other options.findAllByGroupOwnerOptions
(Collection<String> totalGroupIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Collection<Field> fields, Collection<Privilege> privilegesTheUserHas, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity, FieldType fieldType, String serviceId, ServiceRole serviceRole, QueryOptions queryOptionsForMember, String filterForMember, boolean splitScopeForMember, boolean hasFieldForMember, boolean hasMembershipTypeForMember, QueryOptions queryOptionsForGroup, String scopeForGroup, boolean splitScopeForGroup, boolean hasFieldForGroup, boolean hasMembershipTypeForGroup, Member memberHasMembershipForGroup, Boolean hasEnabledDate, Boolean hasDisabledDate, CompositeType customCompositeType, Group customCompositeGroup, QueryOptions queryOptionsForMembership) find memberships by group owner and other options.findAllByMember
(String memberUUID, boolean enabledOnly) findAllByMemberAndDepth
(String memberId, int depth, boolean enabledOnly) (non-Javadoc)findAllByStemOwnerAndField
(String ownerStemId, Field f, boolean enabledOnly) findAllByStemOwnerAndFieldAndType
(String ownerStemId, Field f, String type, boolean enabledOnly) findAllByStemOwnerAndMemberAndField
(String ownerStemId, String memberUUID, Field f, boolean enabledOnly) findAllByStemOwnerAsList
(String ownerStemId, boolean enabledOnly) findAllByStemOwnerOptions
(Collection<String> totalStemIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity) find memberships by stem owner and other options.findAllByStemOwnerOptions
(Collection<String> totalStemIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity, QueryOptions queryOptionsForMember, String filterForMember, boolean splitScopeForMember, boolean hasFieldForMember, boolean hasMembershipTypeForMember, QueryOptions queryOptionsForStem, String scopeForStem, boolean splitScopeForStem, boolean hasFieldForStem, boolean hasMembershipTypeForStem) find memberships by stem owner and other options.findAllByStemOwnerOptions
(Collection<String> totalStemIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity, QueryOptions queryOptionsForMember, String filterForMember, boolean splitScopeForMember, boolean hasFieldForMember, boolean hasMembershipTypeForMember, QueryOptions queryOptionsForStem, String scopeForStem, boolean splitScopeForStem, boolean hasFieldForStem, boolean hasMembershipTypeForStem, Boolean hasEnabledDate, Boolean hasDisabledDate, CompositeType customCompositeType, Group customCompositeGroup) find memberships by stem owner and other options.findAllByStemParentOfGroupOwnerAndFieldAndType
(Stem stem, Stem.Scope stemScope, Field field, MembershipType membershipType, Boolean enabledOnly, String memberId) findAllChildMemberships
(Membership _ms, boolean enabledOnly) findAllEffectiveByAttrDefOwner
(String ownerAttrDefId, String memberUUID, Field f, String viaGroupId, int depth, boolean enabledOnly) findAllEffectiveByGroupOwner
(String ownerGroupId, String memberUUID, Field f, String viaGroupId, int depth, boolean enabledOnly) findAllEffectiveByGroupOwnerAndMemberAndField
(String ownerGroupId, String memberUUID, Field f, boolean enabledOnly) findAllEffectiveByMemberAndField
(String memberUUID, Field f, boolean enabledOnly) findAllEffectiveByStemOwner
(String ownerStemId, String memberUUID, Field f, String viaGroupId, int depth, boolean enabledOnly) findAllEnabledDisabledMismatch
(long queryTime) find records which are disabled which shouldnt be, and enabled which shouldnt befindAllImmediateByAttrDefOwnerAsList
(String attrDefId, boolean enabledOnly) findAllImmediateByMember
(String memberUUID, boolean enabledOnly) findAllImmediateByMemberAndField
(String memberUUID, Field f, boolean enabledOnly) findAllImmediateByMemberAndFieldType
(String memberUUID, String fieldType, boolean enabledOnly) findAllMembersByAttrDefOwnerAndFieldAndType
(String ownerAttrDefId, Field f, String type, QueryOptions queryOptions, boolean enabledOnly) findAllMembersByAttributeDefOwnerOptions
(String attributeDefId, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) generally you will order by m.subjectSourceIdDb, m.subjectIdDb, and page to the first 100findAllMembersByGroupOwnerAndField
(String groupOwnerId, Field f, boolean enabledOnly) findAllMembersByGroupOwnerAndField
(String groupOwnerId, Field f, QueryOptions queryOptions, boolean enabledOnly) findAllMembersByGroupOwnerAndField
(String groupOwnerId, Field f, Set<Source> sources, QueryOptions queryOptions, boolean enabledOnly) findAllMembersByGroupOwnerAndFieldAndType
(String ownerGroupId, Field f, String type, QueryOptions queryOptions, boolean enabledOnly) findAllMembersByGroupOwnerAndFieldAndType
(String ownerGroupId, Field f, String type, Set<Source> sources, QueryOptions queryOptions, boolean enabledOnly) findAllMembersByGroupOwnerOptions
(String groupId, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) generally you will order by m.subjectSourceIdDb, m.subjectIdDb, and page to the first 100findAllMembersByOwnerAndFieldAndType
(String ownerId, Field f, String type, Set<Source> sources, QueryOptions queryOptions, boolean enabledOnly, SortStringEnum memberSortStringEnum, SearchStringEnum memberSearchStringEnum, String memberSearchStringValue) findAllMembersByStemOwnerAndFieldAndType
(String ownerStemId, Field f, String type, QueryOptions queryOptions, boolean enabledOnly) note, dont change this signature, Arnaud is using itfindAllMembershipEntriesByGroupOwnerAndFieldAndType
(String ownerGroupId, Field f, String type, boolean enabledOnly) In this case, membership objects are not joined with groupSets like most queries.findAllMembershipsByGroupOwnerFieldDisabledRange
(String ownerGroupId, Field f, Timestamp disabledDateFrom, Timestamp disabledDateTo) Find all memberships based on group, field, and a range of disabled datesfindAllMembersInOneGroupNotOtherAndType
(String ownerInGroupId, String ownerNotInGroupId, String typeIn, String typeNotIn, QueryOptions queryOptions, Boolean enabled, boolean disabledOwnerNull) findAllMembersInOneGroupNotStem
(String ownerInGroupId, Stem ownerNotInStem, Stem.Scope stemScope, String typeIn, QueryOptions queryOptions) find members in a group who are not members in any group under a stemfindAllNonImmediateByMember
(String memberUUID, boolean enabledOnly) findAllNonImmediateByMemberAndField
(String memberUUID, Field f, boolean enabledOnly) findAllNonImmediateByMemberAndFieldType
(String memberUUID, String fieldType, boolean enabledOnly) findBadComplementMemberships
(Composite composite) findBadComplementMemberships
(List<String> compositeIds) findBadIntersectionMemberships
(Composite composite) findBadIntersectionMemberships
(List<String> compositeIds) Find cases where a membership exists where the member is a deleted group.This will find "immediate" memberships on composite groups along with memberships that don't have the right viaCompositeId.findBadUnionMemberships
(Composite composite) findBadUnionMemberships
(List<String> compositeIds) findByAttrDefOwnerAndMemberAndFieldAndType
(String ownerAttrDefId, String memberUUID, Field f, String type, boolean exceptionIfNull, boolean enabledOnly) findByGroupOwnerAndMemberAndFieldAndType
(String ownerGroupId, String memberUUID, Field f, String type, boolean exceptionIfNull, boolean enabledOnly) findByImmediateUuid
(String uuid, boolean exceptionIfNull) findByImmediateUuid
(String uuid, boolean exceptionIfNull, QueryOptions queryOptions) findByImmediateUuidOrKey
(String uuid, String memberUUID, String fieldId, String ownerAttrDefId, String ownerGroupId, String ownerStemId, boolean exceptionIfNull) retrieve by ids.findByStemOwnerAndMemberAndFieldAndType
(String ownerStemId, String memberUUID, Field f, String type, boolean exceptionIfNull, boolean enabledOnly) findByUuid
(String uuid, boolean exceptionIfNull, boolean enabledOnly) findByUuid
(String uuid, boolean exceptionIfNull, boolean enabledOnly, QueryOptions queryOptions) findMembershipsByMemberAndFieldSecure
(GrouperSession grouperSession, String memberUUID, Field f, boolean enabledOnly) find memberships that the user is allowed to seefindMissingComplementMemberships
(Composite composite) findMissingComplementMemberships
(List<String> compositeIds) Find all missing group sets for immediate memberships where the owner is an attr def.Find all missing group sets for immediate memberships where the owner is a group.Find all missing group sets for immediate memberships where the owner is a stem.findMissingIntersectionMemberships
(Composite composite) findMissingIntersectionMemberships
(List<String> compositeIds) findMissingUnionMemberships
(Composite composite) findMissingUnionMemberships
(List<String> compositeIds) findSourceIdsByGroupOwnerOptions
(String groupId, MembershipType membershipType, Field field, Boolean enabled) find membershpis by group owner and other options.protected static void
reset
(HibernateSession hibernateSession) void
save
(Membership ms) Save a membershipvoid
save
(Set<Membership> mships) Save a set of membershipsvoid
saveUpdateProperties
(Membership membership) save the update properties which are auto saved when business method is calledvoid
update
(Membership ms) Update a membershipvoid
update
(Set<Membership> mships) Update a set of membershipsMethods 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
-
Hib3MembershipDAO
public Hib3MembershipDAO()
-
-
Method Details
-
findAll
get all memberships- Specified by:
findAll
in interfaceMembershipDAO
- Parameters:
enabledOnly
-- Returns:
- set
-
findAllByCreatorOrMember
find all memberships that have this member or have this creator- Specified by:
findAllByCreatorOrMember
in interfaceMembershipDAO
- Parameters:
member
-enabledOnly
-- Returns:
- the memberships
-
findAllByCreatedAfter
public Set<Membership> findAllByCreatedAfter(Date d, Field f, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByCreatedAfter
in interfaceMembershipDAO
- Parameters:
d
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByCreatedBefore
public Set<Membership> findAllByCreatedBefore(Date d, Field f, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByCreatedBefore
in interfaceMembershipDAO
- Parameters:
d
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByMember
public Set<Membership> findAllByMember(String memberUUID, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByMember
in interfaceMembershipDAO
- Parameters:
memberUUID
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByGroupOwnerAndField
public Set<Membership> findAllByGroupOwnerAndField(String ownerGroupId, Field f, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByGroupOwnerAndField
in interfaceMembershipDAO
- Parameters:
ownerGroupId
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByStemOwnerAndField
public Set<Membership> findAllByStemOwnerAndField(String ownerStemId, Field f, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByStemOwnerAndField
in interfaceMembershipDAO
- Parameters:
ownerStemId
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByStemOwnerAndFieldAndType
public Set<Membership> findAllByStemOwnerAndFieldAndType(String ownerStemId, Field f, String type, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByStemOwnerAndFieldAndType
in interfaceMembershipDAO
- Parameters:
ownerStemId
-f
-type
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByGroupOwnerAndFieldAndType
public Set<Membership> findAllByGroupOwnerAndFieldAndType(String ownerGroupId, Field f, String type, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByGroupOwnerAndFieldAndType
in interfaceMembershipDAO
- Parameters:
ownerGroupId
-f
-type
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByGroupOwnerAndFieldAndDepth
public Set<Membership> findAllByGroupOwnerAndFieldAndDepth(String ownerGroupId, Field f, int depth, boolean enabledOnly) - Specified by:
findAllByGroupOwnerAndFieldAndDepth
in interfaceMembershipDAO
- Returns:
- set
- See Also:
-
findAllByGroupOwnerAndDepth
public Set<Membership> findAllByGroupOwnerAndDepth(String ownerGroupId, int depth, boolean enabledOnly) - Specified by:
findAllByGroupOwnerAndDepth
in interfaceMembershipDAO
- Returns:
- set
- See Also:
-
findAllByMemberAndDepth
(non-Javadoc)- Specified by:
findAllByMemberAndDepth
in interfaceMembershipDAO
- Returns:
- set
- See Also:
-
findAllByStemOwnerAndMemberAndField
public Set<Membership> findAllByStemOwnerAndMemberAndField(String ownerStemId, String memberUUID, Field f, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByStemOwnerAndMemberAndField
in interfaceMembershipDAO
- Parameters:
ownerStemId
-memberUUID
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByGroupOwnerAndMemberAndField
public Set<Membership> findAllByGroupOwnerAndMemberAndField(String ownerGroupId, String memberUUID, Field f, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByGroupOwnerAndMemberAndField
in interfaceMembershipDAO
- Parameters:
ownerGroupId
-memberUUID
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllMembersByGroupOwnerAndField
public Set<Member> findAllMembersByGroupOwnerAndField(String groupOwnerId, Field f, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllMembersByGroupOwnerAndField
in interfaceMembershipDAO
- Returns:
- Members from memberships.
- Throws:
GrouperDAOException
- if any DAO errors occur.- See Also:
-
findAllMembersByGroupOwnerAndField
public Set<Member> findAllMembersByGroupOwnerAndField(String groupOwnerId, Field f, Set<Source> sources, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllMembersByGroupOwnerAndField
in interfaceMembershipDAO
- Returns:
- the members
- Throws:
GrouperDAOException
- See Also:
-
findAllMembersByGroupOwnerAndField
public Set<Member> findAllMembersByGroupOwnerAndField(String groupOwnerId, Field f, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllMembersByGroupOwnerAndField
in interfaceMembershipDAO
- Returns:
- the members
- Throws:
GrouperDAOException
- See Also:
-
findAllMembersByGroupOwnerAndFieldAndType
public Set<Member> findAllMembersByGroupOwnerAndFieldAndType(String ownerGroupId, Field f, String type, QueryOptions queryOptions, boolean enabledOnly) - Specified by:
findAllMembersByGroupOwnerAndFieldAndType
in interfaceMembershipDAO
- Parameters:
ownerGroupId
-f
-type
-queryOptions
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByGroupOwnerOptions
public Set<Object[]> findAllByGroupOwnerOptions(Collection<String> totalGroupIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled) Description copied from interface:MembershipDAO
find membershpis by group owner and other options.- Specified by:
findAllByGroupOwnerOptions
in interfaceMembershipDAO
- Parameters:
totalGroupIds
- to limit memberships tototalMemberIds
- to limit memberships tototalMembershipIds
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfield
- if finding one field, list here, otherwise all list fields will be returnedsources
- if limiting memberships of members in certain sources, list herescope
- sql like string which will have a % appended to itstem
- if looking in a certain stemstemScope
- if looking only in this stem, or all substemsenabled
- null for all, true for enabled only, false for disabled only- Returns:
- a set of membership, group, and member objects
- See Also:
-
findAllByGroupOwnerOptions
public Set<Object[]> findAllByGroupOwnerOptions(Collection<String> totalGroupIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity) Description copied from interface:MembershipDAO
find membershpis by group owner and other options.- Specified by:
findAllByGroupOwnerOptions
in interfaceMembershipDAO
- Parameters:
totalGroupIds
- to limit memberships tototalMemberIds
- to limit memberships tototalMembershipIds
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfield
- if finding one field, list here, otherwise all list fields will be returnedsources
- if limiting memberships of members in certain sources, list herescope
- sql like string which will have a % appended to itstem
- if looking in a certain stemstemScope
- if looking only in this stem, or all substemsenabled
- null for all, true for enabled only, false for disabled onlycheckSecurity
- if we should check security, default to true- Returns:
- a set of membership, group, and member objects
- See Also:
-
findAllByGroupOwnerOptions
public Set<Object[]> findAllByGroupOwnerOptions(Collection<String> totalGroupIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity, FieldType fieldType) Description copied from interface:MembershipDAO
find membershpis by group owner and other options.- Specified by:
findAllByGroupOwnerOptions
in interfaceMembershipDAO
- Parameters:
totalGroupIds
- to limit memberships tototalMemberIds
- to limit memberships tototalMembershipIds
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfield
- if finding one field, list here, otherwise all list fields will be returnedsources
- if limiting memberships of members in certain sources, list herescope
- sql like string which will have a % appended to itstem
- if looking in a certain stemstemScope
- if looking only in this stem, or all substemsenabled
- null for all, true for enabled only, false for disabled onlycheckSecurity
- if we should check security, default to truefieldType
- if we are checking access or list memberships- Returns:
- a set of membership, group, and member objects
- See Also:
-
edu.internet2.middleware.grouper.internal.dao.MembershipDAO#findAllByGroupOwnerOptions(java.util.Collection, java.util.Collection, java.util.Collection, edu.internet2.middleware.grouper.membership.MembershipType, edu.internet2.middleware.grouper.Field, Set, java.lang.String, edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.grouper.Stem.Scope, java.lang.Boolean, Boolean, FieldType, String, ServiceRole)
-
findAllByGroupOwnerOptions
public Set<Object[]> findAllByGroupOwnerOptions(Collection<String> totalGroupIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Collection<Field> fields, Collection<Privilege> privilegesTheUserHas, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity, FieldType fieldType, String serviceId, ServiceRole serviceRole, QueryOptions queryOptionsForMember, String filterForMember, boolean splitScopeForMember, boolean hasFieldForMember, boolean hasMembershipTypeForMember, QueryOptions queryOptionsForGroup, String scopeForGroup, boolean splitScopeForGroup, boolean hasFieldForGroup, boolean hasMembershipTypeForGroup, Member memberHasMembershipForGroup) Description copied from interface:MembershipDAO
find memberships by group owner and other options.- Specified by:
findAllByGroupOwnerOptions
in interfaceMembershipDAO
- Parameters:
totalGroupIds
- to limit memberships tototalMemberIds
- to limit memberships tototalMembershipIds
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfields
- if finding one field, list here, otherwise all list fields will be returnedprivilegesTheUserHas
- check to make sure the user has these privileges on the recordssources
- if limiting memberships of members in certain sources, list herescope
- sql like string which will have a % appended to itstem
- if looking in a certain stemstemScope
- if looking only in this stem, or all substemsenabled
- null for all, true for enabled only, false for disabled onlycheckSecurity
- if we should check security, default to truefieldType
- field type of of membershipsqueryOptionsForMember
- query options for member. must include paging. if sorting then sort by memberfilterForMember
- if paging for member, then also filter for membersplitScopeForMember
- if the scope for member has spaces in it, then split by whitespace, and find results that contain all of the scope stringshasFieldForMember
- return memberships where the member has this field, note, it will return all the memberships for those membershasMembershipTypeForMember
- return memberships where the member has this field, note, it will return all the memberships for those membersmemberHasMembershipForGroup
- makes sure this member has a membership in the group before returning any results- Returns:
- a set of membership, group, and member objects
- See Also:
-
findAllByGroupOwnerOptions
public Set<Object[]> findAllByGroupOwnerOptions(Collection<String> totalGroupIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Collection<Field> fields, Collection<Privilege> privilegesTheUserHas, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity, FieldType fieldType, String serviceId, ServiceRole serviceRole, QueryOptions queryOptionsForMember, String filterForMember, boolean splitScopeForMember, boolean hasFieldForMember, boolean hasMembershipTypeForMember, QueryOptions queryOptionsForGroup, String scopeForGroup, boolean splitScopeForGroup, boolean hasFieldForGroup, boolean hasMembershipTypeForGroup, Member memberHasMembershipForGroup, Boolean hasEnabledDate, Boolean hasDisabledDate, CompositeType customCompositeType, Group customCompositeGroup) Description copied from interface:MembershipDAO
find memberships by group owner and other options.- Specified by:
findAllByGroupOwnerOptions
in interfaceMembershipDAO
- Parameters:
totalGroupIds
- to limit memberships tototalMemberIds
- to limit memberships tototalMembershipIds
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfields
- if finding one field, list here, otherwise all list fields will be returnedprivilegesTheUserHas
- check to make sure the user has these privileges on the recordssources
- if limiting memberships of members in certain sources, list herescope
- sql like string which will have a % appended to itstem
- if looking in a certain stemstemScope
- if looking only in this stem, or all substemsenabled
- null for all, true for enabled only, false for disabled onlycheckSecurity
- if we should check security, default to truefieldType
- field type of of membershipsqueryOptionsForMember
- query options for member. must include paging. if sorting then sort by memberfilterForMember
- if paging for member, then also filter for membersplitScopeForMember
- if the scope for member has spaces in it, then split by whitespace, and find results that contain all of the scope stringshasFieldForMember
- return memberships where the member has this field, note, it will return all the memberships for those membershasMembershipTypeForMember
- return memberships where the member has this field, note, it will return all the memberships for those membersmemberHasMembershipForGroup
- makes sure this member has a membership in the group before returning any results- Returns:
- a set of membership, group, and member objects
- See Also:
-
edu.internet2.middleware.grouper.internal.dao.MembershipDAO#findAllByGroupOwnerOptions(java.util.Collection, java.util.Collection, java.util.Collection, edu.internet2.middleware.grouper.membership.MembershipType, java.util.Collection, java.util.Collection, java.util.Set, java.lang.String, edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.grouper.Stem.Scope, java.lang.Boolean, java.lang.Boolean, edu.internet2.middleware.grouper.FieldType, java.lang.String, edu.internet2.middleware.grouper.service.ServiceRole, edu.internet2.middleware.grouper.internal.dao.QueryOptions, java.lang.String, boolean, boolean, boolean, edu.internet2.middleware.grouper.internal.dao.QueryOptions, java.lang.String, boolean, boolean, boolean, edu.internet2.middleware.grouper.Member, java.lang.Boolean, java.lang.Boolean)
-
findAllByGroupOwnerOptions
public Set<Object[]> findAllByGroupOwnerOptions(Collection<String> totalGroupIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Collection<Field> fields, Collection<Privilege> privilegesTheUserHas, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity, FieldType fieldType, String serviceId, ServiceRole serviceRole, QueryOptions queryOptionsForMember, String filterForMember, boolean splitScopeForMember, boolean hasFieldForMember, boolean hasMembershipTypeForMember, QueryOptions queryOptionsForGroup, String scopeForGroup, boolean splitScopeForGroup, boolean hasFieldForGroup, boolean hasMembershipTypeForGroup, Member memberHasMembershipForGroup, Boolean hasEnabledDate, Boolean hasDisabledDate, CompositeType customCompositeType, Group customCompositeGroup, QueryOptions queryOptionsForMembership) Description copied from interface:MembershipDAO
find memberships by group owner and other options.- Specified by:
findAllByGroupOwnerOptions
in interfaceMembershipDAO
- Parameters:
totalGroupIds
- to limit memberships tototalMemberIds
- to limit memberships tototalMembershipIds
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfields
- if finding one field, list here, otherwise all list fields will be returnedprivilegesTheUserHas
- check to make sure the user has these privileges on the recordssources
- if limiting memberships of members in certain sources, list herescope
- sql like string which will have a % appended to itstem
- if looking in a certain stemstemScope
- if looking only in this stem, or all substemsenabled
- null for all, true for enabled only, false for disabled onlycheckSecurity
- if we should check security, default to truefieldType
- field type of of membershipsqueryOptionsForMember
- query options for member. must include paging. if sorting then sort by memberfilterForMember
- if paging for member, then also filter for membersplitScopeForMember
- if the scope for member has spaces in it, then split by whitespace, and find results that contain all of the scope stringshasFieldForMember
- return memberships where the member has this field, note, it will return all the memberships for those membershasMembershipTypeForMember
- return memberships where the member has this field, note, it will return all the memberships for those membersmemberHasMembershipForGroup
- makes sure this member has a membership in the group before returning any results- Returns:
- a set of membership, group, and member objects
- See Also:
-
edu.internet2.middleware.grouper.internal.dao.MembershipDAO#findAllByGroupOwnerOptions(java.util.Collection, java.util.Collection, java.util.Collection, edu.internet2.middleware.grouper.membership.MembershipType, java.util.Collection, java.util.Collection, java.util.Set, java.lang.String, edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.grouper.Stem.Scope, java.lang.Boolean, java.lang.Boolean, edu.internet2.middleware.grouper.FieldType, java.lang.String, edu.internet2.middleware.grouper.service.ServiceRole, edu.internet2.middleware.grouper.internal.dao.QueryOptions, java.lang.String, boolean, boolean, boolean, edu.internet2.middleware.grouper.internal.dao.QueryOptions, java.lang.String, boolean, boolean, boolean, edu.internet2.middleware.grouper.Member, java.lang.Boolean, java.lang.Boolean)
-
addViewPrivilegeIfSelfMembershipQuery
public static void addViewPrivilegeIfSelfMembershipQuery(GrouperSession grouperSession, Collection<String> totalMemberIds, Collection<Field> fields, FieldType fieldType, Set<Privilege> privilegesTheUserHasFinal) - Parameters:
grouperSession
-totalMemberIds
-fields
-fieldType
-privilegesTheUserHasFinal
-
-
findAllMembersByGroupOwnerAndFieldAndType
public Set<Member> findAllMembersByGroupOwnerAndFieldAndType(String ownerGroupId, Field f, String type, Set<Source> sources, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllMembersByGroupOwnerAndFieldAndType
in interfaceMembershipDAO
- Parameters:
ownerGroupId
-f
-type
-sources
-queryOptions
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllMembersByOwnerAndFieldAndType
public Set<Member> findAllMembersByOwnerAndFieldAndType(String ownerId, Field f, String type, Set<Source> sources, QueryOptions queryOptions, boolean enabledOnly, SortStringEnum memberSortStringEnum, SearchStringEnum memberSearchStringEnum, String memberSearchStringValue) throws GrouperDAOException - Specified by:
findAllMembersByOwnerAndFieldAndType
in interfaceMembershipDAO
memberSortStringEnum
- How to sort results or null for no sorting unless specified by queryOptionsmemberSearchStringEnum
- Specify search string if searching for members in the groupmemberSearchStringValue
- Search string value.- Returns:
- set
- Throws:
GrouperDAOException
- See Also:
-
findAllMembersByStemOwnerAndFieldAndType
public Set<Member> findAllMembersByStemOwnerAndFieldAndType(String ownerStemId, Field f, String type, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException note, dont change this signature, Arnaud is using it- Specified by:
findAllMembersByStemOwnerAndFieldAndType
in interfaceMembershipDAO
- Parameters:
ownerStemId
-f
-type
-queryOptions
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByGroupOwnerAndFieldAndMembersAndType
public Set<Membership> findAllByGroupOwnerAndFieldAndMembersAndType(String ownerGroupId, Field f, Collection<Member> members, String type, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByGroupOwnerAndFieldAndMembersAndType
in interfaceMembershipDAO
- Returns:
- set
- Throws:
GrouperDAOException
- See Also:
-
findAllByGroupOwnerAndFieldAndMemberIdsAndType
public Set<Membership> findAllByGroupOwnerAndFieldAndMemberIdsAndType(String ownerGroupId, Field f, Collection<String> memberIds, String type, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByGroupOwnerAndFieldAndMemberIdsAndType
in interfaceMembershipDAO
- Returns:
- set
- Throws:
GrouperDAOException
- See Also:
-
findAllByGroupOwnerAndFieldAndMembers
public Set<Membership> findAllByGroupOwnerAndFieldAndMembers(String ownerGroupId, Field f, Collection<Member> members, boolean enabledOnly) throws GrouperDAOException Description copied from interface:MembershipDAO
TODO update for 1.5- Specified by:
findAllByGroupOwnerAndFieldAndMembers
in interfaceMembershipDAO
- Returns:
- set
- Throws:
GrouperDAOException
- See Also:
-
findAllByGroupOwnerAndCompositeAndMembers
public Set<Membership> findAllByGroupOwnerAndCompositeAndMembers(String ownerGroupId, Collection<Member> members, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByGroupOwnerAndCompositeAndMembers
in interfaceMembershipDAO
- Returns:
- set
- Throws:
GrouperDAOException
- See Also:
-
findByGroupOwnerAndMemberAndFieldAndType
public Membership findByGroupOwnerAndMemberAndFieldAndType(String ownerGroupId, String memberUUID, Field f, String type, boolean exceptionIfNull, boolean enabledOnly) throws GrouperDAOException, MembershipNotFoundException - Specified by:
findByGroupOwnerAndMemberAndFieldAndType
in interfaceMembershipDAO
- Returns:
- membership
- Throws:
GrouperDAOException
MembershipNotFoundException
- See Also:
-
findByStemOwnerAndMemberAndFieldAndType
public Membership findByStemOwnerAndMemberAndFieldAndType(String ownerStemId, String memberUUID, Field f, String type, boolean exceptionIfNull, boolean enabledOnly) throws GrouperDAOException, MembershipNotFoundException - Specified by:
findByStemOwnerAndMemberAndFieldAndType
in interfaceMembershipDAO
- Returns:
- membership
- Throws:
GrouperDAOException
MembershipNotFoundException
- See Also:
-
findAllChildMemberships
public Set<Membership> findAllChildMemberships(Membership _ms, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllChildMemberships
in interfaceMembershipDAO
- Parameters:
_ms
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllEffectiveByGroupOwner
public Set<Membership> findAllEffectiveByGroupOwner(String ownerGroupId, String memberUUID, Field f, String viaGroupId, int depth, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllEffectiveByGroupOwner
in interfaceMembershipDAO
- Parameters:
ownerGroupId
-memberUUID
-f
-viaGroupId
-depth
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllEffectiveByStemOwner
public Set<Membership> findAllEffectiveByStemOwner(String ownerStemId, String memberUUID, Field f, String viaGroupId, int depth, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllEffectiveByStemOwner
in interfaceMembershipDAO
- Parameters:
ownerStemId
-memberUUID
-f
-viaGroupId
-depth
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllEffectiveByMemberAndField
public Set<Membership> findAllEffectiveByMemberAndField(String memberUUID, Field f, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllEffectiveByMemberAndField
in interfaceMembershipDAO
- Parameters:
memberUUID
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllEffectiveByGroupOwnerAndMemberAndField
public Set<Membership> findAllEffectiveByGroupOwnerAndMemberAndField(String ownerGroupId, String memberUUID, Field f, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllEffectiveByGroupOwnerAndMemberAndField
in interfaceMembershipDAO
- Parameters:
ownerGroupId
-memberUUID
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByGroupOwnerAndMember
public Set<Membership> findAllByGroupOwnerAndMember(String ownerGroupId, String memberUUID, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByGroupOwnerAndMember
in interfaceMembershipDAO
- Parameters:
ownerGroupId
-memberUUID
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.1
-
findAllImmediateByMember
public Set<Membership> findAllImmediateByMember(String memberUUID, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllImmediateByMember
in interfaceMembershipDAO
- Parameters:
memberUUID
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByGroupOwnerAsList
public List<Membership> findAllByGroupOwnerAsList(String ownerGroupId, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByGroupOwnerAsList
in interfaceMembershipDAO
- Parameters:
ownerGroupId
-enabledOnly
-- Returns:
- list
- Throws:
GrouperDAOException
- Since:
-
findAllByStemOwnerAsList
public List<Membership> findAllByStemOwnerAsList(String ownerStemId, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByStemOwnerAsList
in interfaceMembershipDAO
- Parameters:
ownerStemId
-enabledOnly
-- Returns:
- list
- Throws:
GrouperDAOException
- Since:
-
findAllImmediateByMemberAndField
public Set<Membership> findAllImmediateByMemberAndField(String memberUUID, Field f, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllImmediateByMemberAndField
in interfaceMembershipDAO
- Parameters:
memberUUID
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllImmediateByMemberAndFieldType
public Set<Membership> findAllImmediateByMemberAndFieldType(String memberUUID, String fieldType, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllImmediateByMemberAndFieldType
in interfaceMembershipDAO
- Parameters:
memberUUID
-fieldType
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findByUuid
public Membership findByUuid(String uuid, boolean exceptionIfNull, boolean enabledOnly) throws GrouperDAOException, MembershipNotFoundException - Specified by:
findByUuid
in interfaceMembershipDAO
- Parameters:
uuid
-exceptionIfNull
-enabledOnly
-- Returns:
- membership
- Throws:
GrouperDAOException
MembershipNotFoundException
-
findByUuid
public Membership findByUuid(String uuid, boolean exceptionIfNull, boolean enabledOnly, QueryOptions queryOptions) throws GrouperDAOException, MembershipNotFoundException - Specified by:
findByUuid
in interfaceMembershipDAO
- Parameters:
uuid
-exceptionIfNull
-enabledOnly
-queryOptions
-- Returns:
- membership
- Throws:
GrouperDAOException
MembershipNotFoundException
-
findMembershipsByMemberAndFieldSecure
public Set<Membership> findMembershipsByMemberAndFieldSecure(GrouperSession grouperSession, String memberUUID, Field f, boolean enabledOnly) throws GrouperDAOException Description copied from interface:MembershipDAO
find memberships that the user is allowed to see- Specified by:
findMembershipsByMemberAndFieldSecure
in interfaceMembershipDAO
- Returns:
- the memberships
- Throws:
GrouperDAOException
- See Also:
-
save
Description copied from interface:MembershipDAO
Save a membership- Specified by:
save
in interfaceMembershipDAO
- See Also:
-
save
Description copied from interface:MembershipDAO
Save a set of memberships- Specified by:
save
in interfaceMembershipDAO
- See Also:
-
delete
Description copied from interface:MembershipDAO
Delete a membership- Specified by:
delete
in interfaceMembershipDAO
- See Also:
-
update
Description copied from interface:MembershipDAO
Update a membership- Specified by:
update
in interfaceMembershipDAO
- See Also:
-
delete
Description copied from interface:MembershipDAO
Delete a set of memberships- Specified by:
delete
in interfaceMembershipDAO
- See Also:
-
update
Description copied from interface:MembershipDAO
Update a set of memberships- Specified by:
update
in interfaceMembershipDAO
- See Also:
-
reset
protected static void reset(HibernateSession hibernateSession) throws org.hibernate.HibernateException - Parameters:
hibernateSession
-- Throws:
org.hibernate.HibernateException
-
findParentMembership
- Specified by:
findParentMembership
in interfaceMembershipDAO
- Returns:
- membership
- Throws:
GrouperDAOException
- See Also:
-
findMissingImmediateGroupSetsForGroupOwners
Description copied from interface:MembershipDAO
Find all missing group sets for immediate memberships where the owner is a group.- Specified by:
findMissingImmediateGroupSetsForGroupOwners
in interfaceMembershipDAO
- Returns:
- set of memberships for which a groupSet is missing
- See Also:
-
findMissingImmediateGroupSetsForStemOwners
Description copied from interface:MembershipDAO
Find all missing group sets for immediate memberships where the owner is a stem.- Specified by:
findMissingImmediateGroupSetsForStemOwners
in interfaceMembershipDAO
- Returns:
- set of memberships for which a groupSet is missing
- See Also:
-
findByAttrDefOwnerAndMemberAndFieldAndType
public Membership findByAttrDefOwnerAndMemberAndFieldAndType(String ownerAttrDefId, String memberUUID, Field f, String type, boolean exceptionIfNull, boolean enabledOnly) throws GrouperDAOException, MembershipNotFoundException - Specified by:
findByAttrDefOwnerAndMemberAndFieldAndType
in interfaceMembershipDAO
- Returns:
- membership
- Throws:
GrouperDAOException
MembershipNotFoundException
- See Also:
-
findAllEffectiveByAttrDefOwner
public Set<Membership> findAllEffectiveByAttrDefOwner(String ownerAttrDefId, String memberUUID, Field f, String viaGroupId, int depth, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllEffectiveByAttrDefOwner
in interfaceMembershipDAO
- Returns:
- set
- Throws:
GrouperDAOException
- See Also:
-
findAllMembersByAttrDefOwnerAndFieldAndType
public Set<Member> findAllMembersByAttrDefOwnerAndFieldAndType(String ownerAttrDefId, Field f, String type, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllMembersByAttrDefOwnerAndFieldAndType
in interfaceMembershipDAO
- Returns:
- set
- Throws:
GrouperDAOException
- See Also:
-
findMissingImmediateGroupSetsForAttrDefOwners
Description copied from interface:MembershipDAO
Find all missing group sets for immediate memberships where the owner is an attr def.- Specified by:
findMissingImmediateGroupSetsForAttrDefOwners
in interfaceMembershipDAO
- Returns:
- set of memberships for which a groupSet is missing
- See Also:
-
findAllByAttrDefOwnerAndField
public Set<Membership> findAllByAttrDefOwnerAndField(String ownerAttrDefId, Field f, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByAttrDefOwnerAndField
in interfaceMembershipDAO
- Returns:
- set
- Throws:
GrouperDAOException
- See Also:
-
findAllByAttrDefOwnerAndFieldAndType
public Set<Membership> findAllByAttrDefOwnerAndFieldAndType(String ownerAttrDefId, Field f, String type, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByAttrDefOwnerAndFieldAndType
in interfaceMembershipDAO
- Returns:
- set
- Throws:
GrouperDAOException
- See Also:
-
findAllByAttrDefOwnerAndMemberAndField
public Set<Membership> findAllByAttrDefOwnerAndMemberAndField(String ownerAttrDefId, String memberUUID, Field f, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByAttrDefOwnerAndMemberAndField
in interfaceMembershipDAO
- Returns:
- set
- Throws:
GrouperDAOException
- See Also:
-
findAllByAttrDefOwnerAsList
public List<Membership> findAllByAttrDefOwnerAsList(String attrDefId, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByAttrDefOwnerAsList
in interfaceMembershipDAO
- Returns:
- list
- Throws:
GrouperDAOException
- See Also:
-
findAllImmediateByAttrDefOwnerAsList
public List<Membership> findAllImmediateByAttrDefOwnerAsList(String attrDefId, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllImmediateByAttrDefOwnerAsList
in interfaceMembershipDAO
- Returns:
- list
- Throws:
GrouperDAOException
- See Also:
-
findAllByAttrDefOwnerAndMember
public Set<Membership> findAllByAttrDefOwnerAndMember(String ownerAttrDefId, String memberUUID, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllByAttrDefOwnerAndMember
in interfaceMembershipDAO
- Returns:
- set
- Throws:
GrouperDAOException
- See Also:
-
findAllEnabledDisabledMismatch
Description copied from interface:MembershipDAO
find records which are disabled which shouldnt be, and enabled which shouldnt be- Specified by:
findAllEnabledDisabledMismatch
in interfaceMembershipDAO
- Returns:
- the memberships
- See Also:
-
findAllNonImmediateByMember
public Set<Membership> findAllNonImmediateByMember(String memberUUID, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllNonImmediateByMember
in interfaceMembershipDAO
- Returns:
- set
- Throws:
GrouperDAOException
- See Also:
-
findAllNonImmediateByMemberAndField
public Set<Membership> findAllNonImmediateByMemberAndField(String memberUUID, Field f, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllNonImmediateByMemberAndField
in interfaceMembershipDAO
- Returns:
- set
- Throws:
GrouperDAOException
- See Also:
-
findAllNonImmediateByMemberAndFieldType
public Set<Membership> findAllNonImmediateByMemberAndFieldType(String memberUUID, String fieldType, boolean enabledOnly) throws GrouperDAOException - Specified by:
findAllNonImmediateByMemberAndFieldType
in interfaceMembershipDAO
- Returns:
- set
- Throws:
GrouperDAOException
- See Also:
-
findByImmediateUuidOrKey
public Membership findByImmediateUuidOrKey(String uuid, String memberUUID, String fieldId, String ownerAttrDefId, String ownerGroupId, String ownerStemId, boolean exceptionIfNull) throws GrouperDAOException - Specified by:
findByImmediateUuidOrKey
in interfaceMembershipDAO
- Returns:
- the stem or null
- Throws:
GrouperDAOException
- See Also:
-
saveUpdateProperties
Description copied from interface:MembershipDAO
save the update properties which are auto saved when business method is called- Specified by:
saveUpdateProperties
in interfaceMembershipDAO
- See Also:
-
findSourceIdsByGroupOwnerOptions
public Set<String> findSourceIdsByGroupOwnerOptions(String groupId, MembershipType membershipType, Field field, Boolean enabled) Description copied from interface:MembershipDAO
find membershpis by group owner and other options.- Specified by:
findSourceIdsByGroupOwnerOptions
in interfaceMembershipDAO
- Parameters:
groupId
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfield
- if finding one field, list here, otherwise members list is returnedenabled
- null for all, true for enabled only, false for disabled only- Returns:
- a set of sourceIds
- See Also:
-
findAllByStemParentOfGroupOwnerAndFieldAndType
public Set<Membership> findAllByStemParentOfGroupOwnerAndFieldAndType(Stem stem, Stem.Scope stemScope, Field field, MembershipType membershipType, Boolean enabledOnly, String memberId) throws GrouperDAOException - Specified by:
findAllByStemParentOfGroupOwnerAndFieldAndType
in interfaceMembershipDAO
membershipType
- e.g. immediate- Returns:
- set
- Throws:
GrouperDAOException
- See Also:
-
findAllMembersInOneGroupNotOtherAndType
public Set<Member> findAllMembersInOneGroupNotOtherAndType(String ownerInGroupId, String ownerNotInGroupId, String typeIn, String typeNotIn, QueryOptions queryOptions, Boolean enabled, boolean disabledOwnerNull) throws GrouperDAOException - Specified by:
findAllMembersInOneGroupNotOtherAndType
in interfaceMembershipDAO
enabled
- T for enabled, F for disabled, null for alldisabledOwnerNull
- if true, the owner must have disabled date of null- Returns:
- set
- Throws:
GrouperDAOException
- See Also:
-
findAllMembershipsByGroupOwnerFieldDisabledRange
public Set<Membership> findAllMembershipsByGroupOwnerFieldDisabledRange(String ownerGroupId, Field f, Timestamp disabledDateFrom, Timestamp disabledDateTo) Description copied from interface:MembershipDAO
Find all memberships based on group, field, and a range of disabled dates- Specified by:
findAllMembershipsByGroupOwnerFieldDisabledRange
in interfaceMembershipDAO
- Parameters:
ownerGroupId
- memberships in this ownerdisabledDateFrom
- null if dont considerdisabledDateTo
- null if dont consider- Returns:
- memberships.
- See Also:
-
findAllMembersInOneGroupNotStem
public Set<Member> findAllMembersInOneGroupNotStem(String ownerInGroupId, Stem ownerNotInStem, Stem.Scope stemScope, String typeIn, QueryOptions queryOptions) Description copied from interface:MembershipDAO
find members in a group who are not members in any group under a stem- Specified by:
findAllMembersInOneGroupNotStem
in interfaceMembershipDAO
- Returns:
- set
- See Also:
-
findAllByAttributeDefOwnerOptions
public Set<Object[]> findAllByAttributeDefOwnerOptions(String attributeDefId, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) Description copied from interface:MembershipDAO
find memberships by attribute def owner and other options.- Specified by:
findAllByAttributeDefOwnerOptions
in interfaceMembershipDAO
- Parameters:
attributeDefId
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfields
- if finding by fields, list here, otherwise all list fields will be returnedsources
- if limiting memberships of members in certain sources, list hereenabled
- null for all, true for enabled only, false for disabled onlyqueryOptions
- for the query- Returns:
- a set of membership and member objects
- See Also:
-
findAllByAttributeDefOwnerOptions
public Set<Object[]> findAllByAttributeDefOwnerOptions(String attributeDefId, Collection<String> totalMemberIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) Description copied from interface:MembershipDAO
find membershpis by attribute def owner and other options.- Specified by:
findAllByAttributeDefOwnerOptions
in interfaceMembershipDAO
- Parameters:
attributeDefId
- to limit memberships tototalMemberIds
- memberids to get, or blank for allmembershipType
- Immediate, NonImmediate, etcfields
- if finding by fields, list here, otherwise all list fields will be returnedsources
- if limiting memberships of members in certain sources, list hereenabled
- null for all, true for enabled only, false for disabled onlyqueryOptions
- for the query- Returns:
- a set of membership and member objects
- See Also:
-
findAllMembersByAttributeDefOwnerOptions
public List<Member> findAllMembersByAttributeDefOwnerOptions(String attributeDefId, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) generally you will order by m.subjectSourceIdDb, m.subjectIdDb, and page to the first 100- Specified by:
findAllMembersByAttributeDefOwnerOptions
in interfaceMembershipDAO
- Parameters:
attributeDefId
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfields
- if finding by fields, list here, otherwise all list fields will be returnedsources
- if limiting memberships of members in certain sources, list hereenabled
- null for all, true for enabled only, false for disabled onlyqueryOptions
- for the query- Returns:
- a set of members and member objects
- See Also:
-
findAllMembersByGroupOwnerOptions
public List<Member> findAllMembersByGroupOwnerOptions(String groupId, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) generally you will order by m.subjectSourceIdDb, m.subjectIdDb, and page to the first 100- Specified by:
findAllMembersByGroupOwnerOptions
in interfaceMembershipDAO
- Parameters:
groupId
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfields
- if finding by fields, list here, otherwise all list fields will be returnedsources
- if limiting memberships of members in certain sources, list hereenabled
- null for all, true for enabled only, false for disabled onlyqueryOptions
- for the query- Returns:
- a set of members and member objects
- See Also:
-
findAllByGroupOwnerOptions
public Set<Object[]> findAllByGroupOwnerOptions(String groupId, Collection<String> totalMemberIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) Description copied from interface:MembershipDAO
find membershpis by group owner and other options.- Specified by:
findAllByGroupOwnerOptions
in interfaceMembershipDAO
- Parameters:
groupId
- to limit memberships tototalMemberIds
- memberids to get, or blank for allmembershipType
- Immediate, NonImmediate, etcfields
- if finding by fields, list here, otherwise all list fields will be returnedsources
- if limiting memberships of members in certain sources, list hereenabled
- null for all, true for enabled only, false for disabled onlyqueryOptions
- for the query- Returns:
- a set of membership and member objects
- See Also:
-
findAllByGroupOwnerOptions
public Set<Object[]> findAllByGroupOwnerOptions(String groupId, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) Description copied from interface:MembershipDAO
find memberships by group owner and other options.- Specified by:
findAllByGroupOwnerOptions
in interfaceMembershipDAO
- Parameters:
groupId
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfields
- if finding by fields, list here, otherwise all list fields will be returnedsources
- if limiting memberships of members in certain sources, list hereenabled
- null for all, true for enabled only, false for disabled onlyqueryOptions
- for the query- Returns:
- a set of membership and member objects
- See Also:
-
findAllMembershipEntriesByGroupOwnerAndFieldAndType
public Set<Membership> findAllMembershipEntriesByGroupOwnerAndFieldAndType(String ownerGroupId, Field f, String type, boolean enabledOnly) Description copied from interface:MembershipDAO
In this case, membership objects are not joined with groupSets like most queries. This queries the memberships table only.- Specified by:
findAllMembershipEntriesByGroupOwnerAndFieldAndType
in interfaceMembershipDAO
- Returns:
- set of memberships
- See Also:
-
findMissingComplementMemberships
- Specified by:
findMissingComplementMemberships
in interfaceMembershipDAO
- Returns:
- set of arrays containing owner ids, composite ids, and member ids that should be added as composite memberships
- See Also:
-
edu.internet2.middleware.grouper.internal.dao.MembershipDAO#findMissingCompositeComplement()
-
findMissingComplementMemberships
- Specified by:
findMissingComplementMemberships
in interfaceMembershipDAO
- Returns:
- set of member ids that should be added as composite memberships
-
findMissingUnionMemberships
- Specified by:
findMissingUnionMemberships
in interfaceMembershipDAO
- Returns:
- set of arrays containing owner ids, composite ids, and member ids that should be added as composite memberships
- See Also:
-
edu.internet2.middleware.grouper.internal.dao.MembershipDAO#findMissingUnionMemberships()
-
findMissingUnionMemberships
- Specified by:
findMissingUnionMemberships
in interfaceMembershipDAO
- Returns:
- set of member ids that should be added as composite memberships
-
findMissingIntersectionMemberships
- Specified by:
findMissingIntersectionMemberships
in interfaceMembershipDAO
- Returns:
- set of arrays containing owner ids, composite ids, and member ids that should be added as composite memberships
- See Also:
-
edu.internet2.middleware.grouper.internal.dao.MembershipDAO#findMissingIntersectionMemberships()
-
findMissingIntersectionMemberships
- Specified by:
findMissingIntersectionMemberships
in interfaceMembershipDAO
- Returns:
- set of member ids that should be added as composite memberships
-
findBadComplementMemberships
- Specified by:
findBadComplementMemberships
in interfaceMembershipDAO
- Returns:
- set of immediate memberships that are bad
- See Also:
-
edu.internet2.middleware.grouper.internal.dao.MembershipDAO#findBadComplementMemberships()
-
findBadComplementMemberships
- Specified by:
findBadComplementMemberships
in interfaceMembershipDAO
- Returns:
- set of immediate memberships that are bad
-
findBadUnionMemberships
- Specified by:
findBadUnionMemberships
in interfaceMembershipDAO
- Returns:
- set of immediate memberships that are bad
- See Also:
-
edu.internet2.middleware.grouper.internal.dao.MembershipDAO#findBadUnionMemberships()
-
findBadUnionMemberships
- Specified by:
findBadUnionMemberships
in interfaceMembershipDAO
- Returns:
- set of immediate memberships that are bad
-
findBadIntersectionMemberships
- Specified by:
findBadIntersectionMemberships
in interfaceMembershipDAO
- Returns:
- set of immediate memberships that are bad
- See Also:
-
edu.internet2.middleware.grouper.internal.dao.MembershipDAO#findBadUnionMemberships()
-
findBadIntersectionMemberships
- Specified by:
findBadIntersectionMemberships
in interfaceMembershipDAO
- Returns:
- set of immediate memberships that are bad
-
findBadMembershipsOnCompositeGroup
Description copied from interface:MembershipDAO
This will find "immediate" memberships on composite groups along with memberships that don't have the right viaCompositeId.- Specified by:
findBadMembershipsOnCompositeGroup
in interfaceMembershipDAO
- Returns:
- set of immediate memberships that are bad
- See Also:
-
edu.internet2.middleware.grouper.internal.dao.MembershipDAO#findBadImmediateMembershipsOnCompositeGroup()
-
findBadMembershipsDeletedGroupAsMember
Description copied from interface:MembershipDAO
Find cases where a membership exists where the member is a deleted group.- Specified by:
findBadMembershipsDeletedGroupAsMember
in interfaceMembershipDAO
- Returns:
- set of immediate memberships that are bad
- See Also:
-
findBadCompositeMembershipsOnNonCompositeGroup
- Specified by:
findBadCompositeMembershipsOnNonCompositeGroup
in interfaceMembershipDAO
- Returns:
- set of immediate memberships that are bad
- See Also:
-
edu.internet2.middleware.grouper.internal.dao.MembershipDAO#findBadImmediateMembershipsOnCompositeGroup()
-
findByImmediateUuid
- Specified by:
findByImmediateUuid
in interfaceMembershipDAO
- Returns:
- membership
- See Also:
-
findByImmediateUuid
public Membership findByImmediateUuid(String uuid, boolean exceptionIfNull, QueryOptions queryOptions) - Specified by:
findByImmediateUuid
in interfaceMembershipDAO
- Returns:
- membership
- See Also:
-
findByImmediateUuids
retrieve by ids. note, this is not a secure method, will return any results queried- Specified by:
findByImmediateUuids
in interfaceMembershipDAO
- Parameters:
ids
-- Returns:
- the memberships, will not return null
-
findAllByStemOwnerOptions
public Set<Object[]> findAllByStemOwnerOptions(Collection<String> totalStemIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity) Description copied from interface:MembershipDAO
find memberships by stem owner and other options.- Specified by:
findAllByStemOwnerOptions
in interfaceMembershipDAO
- Parameters:
totalStemIds
- to limit memberships tototalMemberIds
- to limit memberships tototalMembershipIds
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfield
- if finding one field, list here, otherwise all list fields will be returnedsources
- if limiting memberships of members in certain sources, list herescope
- sql like string which will have a % appended to itstem
- if looking in a certain stemstemScope
- if looking only in this stem, or all substemsenabled
- null for all, true for enabled only, false for disabled onlycheckSecurity
- if we should check security, default to true- Returns:
- a set of membership, stem, and member objects
- See Also:
-
findAllByStemOwnerOptions
public Set<Object[]> findAllByStemOwnerOptions(Collection<String> totalStemIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity, QueryOptions queryOptionsForMember, String filterForMember, boolean splitScopeForMember, boolean hasFieldForMember, boolean hasMembershipTypeForMember, QueryOptions queryOptionsForStem, String scopeForStem, boolean splitScopeForStem, boolean hasFieldForStem, boolean hasMembershipTypeForStem) Description copied from interface:MembershipDAO
find memberships by stem owner and other options.- Specified by:
findAllByStemOwnerOptions
in interfaceMembershipDAO
- Parameters:
totalStemIds
- to limit memberships tototalMemberIds
- to limit memberships tototalMembershipIds
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfields
- if finding one field, list here, otherwise all list fields will be returnedsources
- if limiting memberships of members in certain sources, list herescope
- sql like string which will have a % appended to itstem
- if looking in a certain stemstemScope
- if looking only in this stem, or all substemsenabled
- null for all, true for enabled only, false for disabled onlycheckSecurity
- if we should check security, default to truequeryOptionsForMember
- query options for member. must include paging. if sorting then sort by memberfilterForMember
- if paging for member, then also filter for membersplitScopeForMember
- if the scope for member has spaces in it, then split by whitespace, and find results that contain all of the scope stringshasFieldForMember
- return memberships where the member has this field, note, it will return all the memberships for those membershasMembershipTypeForMember
- return memberships where the member has this field, note, it will return all the memberships for those membersqueryOptionsForStem
- if paging by stem, then these are the query optionsscopeForStem
- scope to search for in stems if paging by stemsplitScopeForStem
- if splitting scope when searching and paging by stemhasFieldForStem
- if has field for stem if paging by stemhasMembershipTypeForStem
- if paging for stems, this is the membership type to page on- Returns:
- a set of membership, stem, and member objects
- See Also:
-
edu.internet2.middleware.grouper.internal.dao.MembershipDAO#findAllByStemOwnerOptions(java.util.Collection, java.util.Collection, java.util.Collection, edu.internet2.middleware.grouper.membership.MembershipType, edu.internet2.middleware.grouper.Field, Set, java.lang.String, edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.grouper.Stem.Scope, java.lang.Boolean, Boolean, QueryOptions, String, boolean, Field, MembershipType)
-
findAllByStemOwnerOptions
public Set<Object[]> findAllByStemOwnerOptions(Collection<String> totalStemIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity, QueryOptions queryOptionsForMember, String filterForMember, boolean splitScopeForMember, boolean hasFieldForMember, boolean hasMembershipTypeForMember, QueryOptions queryOptionsForStem, String scopeForStem, boolean splitScopeForStem, boolean hasFieldForStem, boolean hasMembershipTypeForStem, Boolean hasEnabledDate, Boolean hasDisabledDate, CompositeType customCompositeType, Group customCompositeGroup) Description copied from interface:MembershipDAO
find memberships by stem owner and other options.- Specified by:
findAllByStemOwnerOptions
in interfaceMembershipDAO
- Parameters:
totalStemIds
- to limit memberships tototalMemberIds
- to limit memberships tototalMembershipIds
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfields
- if finding one field, list here, otherwise all list fields will be returnedsources
- if limiting memberships of members in certain sources, list herescope
- sql like string which will have a % appended to itstem
- if looking in a certain stemstemScope
- if looking only in this stem, or all substemsenabled
- null for all, true for enabled only, false for disabled onlycheckSecurity
- if we should check security, default to truequeryOptionsForMember
- query options for member. must include paging. if sorting then sort by memberfilterForMember
- if paging for member, then also filter for membersplitScopeForMember
- if the scope for member has spaces in it, then split by whitespace, and find results that contain all of the scope stringshasFieldForMember
- return memberships where the member has this field, note, it will return all the memberships for those membershasMembershipTypeForMember
- return memberships where the member has this field, note, it will return all the memberships for those membersqueryOptionsForStem
- if paging by stem, then these are the query optionsscopeForStem
- scope to search for in stems if paging by stemsplitScopeForStem
- if splitting scope when searching and paging by stemhasFieldForStem
- if has field for stem if paging by stemhasMembershipTypeForStem
- if paging for stems, this is the membership type to page on- Returns:
- a set of membership, stem, and member objects
- See Also:
-
edu.internet2.middleware.grouper.internal.dao.MembershipDAO#findAllByStemOwnerOptions(java.util.Collection, java.util.Collection, java.util.Collection, edu.internet2.middleware.grouper.membership.MembershipType, java.util.Collection, java.util.Set, java.lang.String, edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.grouper.Stem.Scope, java.lang.Boolean, java.lang.Boolean, edu.internet2.middleware.grouper.internal.dao.QueryOptions, java.lang.String, boolean, boolean, boolean, edu.internet2.middleware.grouper.internal.dao.QueryOptions, java.lang.String, boolean, boolean, boolean, java.lang.Boolean, java.lang.Boolean)
-
findAllByAttributeDefOwnerOptions
public Set<Object[]> findAllByAttributeDefOwnerOptions(Collection<String> totalAttributeDefIds, Collection<String> totalMemberIds, Collection<String> totalMembershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean checkSecurity) Description copied from interface:MembershipDAO
find memberships by stem owner and other options.- Specified by:
findAllByAttributeDefOwnerOptions
in interfaceMembershipDAO
- Parameters:
totalAttributeDefIds
- to limit memberships tototalMemberIds
- to limit memberships tototalMembershipIds
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfield
- if finding one field, list here, otherwise all list fields will be returnedsources
- if limiting memberships of members in certain sources, list herescope
- sql like string which will have a % appended to itstem
- if looking in a certain stemstemScope
- if looking only in this stem, or all substemsenabled
- null for all, true for enabled only, false for disabled onlycheckSecurity
- if we should check security, default to true- Returns:
- a set of membership, stem, and member objects
- See Also:
-
findAllByAttributeDefOwnerOptions
public Set<Object[]> findAllByAttributeDefOwnerOptions(Collection<String> attributeDefIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity, QueryOptions queryOptionsForMember, String filterForMember, boolean splitScopeForMember, boolean hasFieldForMember, boolean hasMembershipTypeForMember, QueryOptions queryOptionsForAttributeDef, String scopeForAttributeDef, boolean splitScopeForAttributeDef, boolean hasFieldForAttributeDef, boolean hasMembershipTypeForAttributeDef) Description copied from interface:MembershipDAO
find memberships by stem owner and other options.- Specified by:
findAllByAttributeDefOwnerOptions
in interfaceMembershipDAO
- Parameters:
attributeDefIds
- to limit memberships tomemberIds
- to limit memberships tomembershipIds
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfields
- if finding one field, list here, otherwise all list fields will be returnedsources
- if limiting memberships of members in certain sources, list herescope
- sql like string which will have a % appended to itstem
- if looking in a certain stemstemScope
- if looking only in this stem, or all substemsenabled
- null for all, true for enabled only, false for disabled onlyshouldCheckSecurity
- if we should check security, default to truequeryOptionsForMember
- if getting a list of members who have privileges, this is the paging/sortingfilterForMember
- if filtering by member search stringsplitScopeForMember
- if splitting scope (by spaces and all terms must be in there)hasFieldForMember
- if the member has a privilegehasMembershipTypeForMember
- if the membership type is for member listqueryOptionsForAttributeDef
- if paging for attribute defs, then these are the query options for the overall pagescopeForAttributeDef
- if paging for attribute defs, this is the scope to search for on the attribute defssplitScopeForAttributeDef
- if scoping and paging for attribute defs, this will split the scope by whitespacehasFieldForAttributeDef
- if paging by attribute def you can look for a specific field for the attribute defs and then all fields for the resulting attribute defshasMembershipTypeForAttributeDef
- if paging for attribute defs, this is the membership type- Returns:
- a set of membership, stem, and member objects
- See Also:
-
findAllByAttributeDefOwnerOptions
public Set<Object[]> findAllByAttributeDefOwnerOptions(Collection<String> attributeDefIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity, QueryOptions queryOptionsForMember, String filterForMember, boolean splitScopeForMember, boolean hasFieldForMember, boolean hasMembershipTypeForMember, QueryOptions queryOptionsForAttributeDef, String scopeForAttributeDef, boolean splitScopeForAttributeDef, boolean hasFieldForAttributeDef, boolean hasMembershipTypeForAttributeDef, Boolean hasEnabledDate, Boolean hasDisabledDate, CompositeType customCompositeType, Group customCompositeGroup) Description copied from interface:MembershipDAO
find memberships by stem owner and other options.- Specified by:
findAllByAttributeDefOwnerOptions
in interfaceMembershipDAO
- Parameters:
attributeDefIds
- to limit memberships tomemberIds
- to limit memberships tomembershipIds
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfields
- if finding one field, list here, otherwise all list fields will be returnedsources
- if limiting memberships of members in certain sources, list herescope
- sql like string which will have a % appended to itstem
- if looking in a certain stemstemScope
- if looking only in this stem, or all substemsenabled
- null for all, true for enabled only, false for disabled onlyshouldCheckSecurity
- if we should check security, default to truequeryOptionsForMember
- if getting a list of members who have privileges, this is the paging/sortingfilterForMember
- if filtering by member search stringsplitScopeForMember
- if splitting scope (by spaces and all terms must be in there)hasFieldForMember
- if the member has a privilegehasMembershipTypeForMember
- if the membership type is for member listqueryOptionsForAttributeDef
- if paging for attribute defs, then these are the query options for the overall pagescopeForAttributeDef
- if paging for attribute defs, this is the scope to search for on the attribute defssplitScopeForAttributeDef
- if scoping and paging for attribute defs, this will split the scope by whitespacehasFieldForAttributeDef
- if paging by attribute def you can look for a specific field for the attribute defs and then all fields for the resulting attribute defshasMembershipTypeForAttributeDef
- if paging for attribute defs, this is the membership type- Returns:
- a set of membership, stem, and member objects
- See Also:
-
edu.internet2.middleware.grouper.internal.dao.MembershipDAO#findAllByAttributeDefOwnerOptions(java.util.Collection, java.util.Collection, java.util.Collection, edu.internet2.middleware.grouper.membership.MembershipType, java.util.Collection, java.util.Set, java.lang.String, edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.grouper.Stem.Scope, java.lang.Boolean, java.lang.Boolean, edu.internet2.middleware.grouper.internal.dao.QueryOptions, java.lang.String, boolean, boolean, boolean, edu.internet2.middleware.grouper.internal.dao.QueryOptions, java.lang.String, boolean, boolean, boolean, java.lang.Boolean, java.lang.Boolean)
-
findAllByAttributeDefOwnerOptions
public Set<Object[]> findAllByAttributeDefOwnerOptions(Collection<String> attributeDefIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity, QueryOptions queryOptionsForAttributeDef, String scopeForAttributeDef, boolean splitScopeForAttributeDef, boolean hasFieldForAttributeDef, boolean hasMembershipTypeForAttributeDef) Description copied from interface:MembershipDAO
find memberships by stem owner and other options.- Specified by:
findAllByAttributeDefOwnerOptions
in interfaceMembershipDAO
- Parameters:
attributeDefIds
- to limit memberships tomemberIds
- to limit memberships tomembershipIds
- to limit memberships tomembershipType
- Immediate, NonImmediate, etcfields
- if finding one field, list here, otherwise all list fields will be returnedsources
- if limiting memberships of members in certain sources, list herescope
- sql like string which will have a % appended to itstem
- if looking in a certain stemstemScope
- if looking only in this stem, or all substemsenabled
- null for all, true for enabled only, false for disabled onlyshouldCheckSecurity
- if we should check security, default to truequeryOptionsForAttributeDef
- if paging for attribute defs, then these are the query options for the overall pagescopeForAttributeDef
- if paging for attribute defs, this is the scope to search for on the attribute defssplitScopeForAttributeDef
- if scoping and paging for attribute defs, this will split the scope by whitespacehasFieldForAttributeDef
- if paging by attribute def you can look for a specific field for the attribute defs and then all fields for the resulting attribute defshasMembershipTypeForAttributeDef
- if paging for attribute defs, this is the membership type- Returns:
- a set of membership, stem, and member objects
- See Also:
-