Interface MembershipDAO
- All Superinterfaces:
GrouperDAO
- All Known Implementing Classes:
Hib3MembershipDAO
Basic
Membership
DAO interface.- Since:
- 1.2.0
- Version:
- $Id: MembershipDAO.java,v 1.35 2009-12-17 06:57:57 mchyzer Exp $
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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> memberIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) find membershpis by attribute def owner and other options.findAllByAttributeDefOwnerOptions
(Collection<String> attributeDefIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity) find memberships by stem owner and other options.findAllByAttributeDefOwnerOptions
(Collection<String> attributeDefIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> field, 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> field, 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> field, 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 ownerUUID, 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 ownerUUID, Field f, Collection<String> memberIds, String type, boolean enabledOnly) findAllByGroupOwnerAndFieldAndMembers
(String ownerUUID, Field f, Collection<Member> members, boolean enabledOnly) TODO update for 1.5findAllByGroupOwnerAndFieldAndMembersAndType
(String ownerUUID, Field f, Collection<Member> members, String type, boolean enabledOnly) findAllByGroupOwnerAndFieldAndType
(String ownerGroupId, Field f, String type, boolean enabledOnly) findAllByGroupOwnerAndMember
(String groupOwnerId, String memberUUID, boolean enabledOnly) findAllByGroupOwnerAndMemberAndField
(String ownerGroupId, String memberUUID, Field f, boolean enabledOnly) findAllByGroupOwnerAsList
(String ownerUUID, 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> memberIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) find membershpis by group owner and other options.findAllByGroupOwnerOptions
(Collection<String> groupIds, Collection<String> memberIds, Collection<String> membershipIds, 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> groupIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity) find membershpis by group owner and other options.findAllByGroupOwnerOptions
(Collection<String> groupIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity, FieldType fieldType) find membershpis by group owner and other options.findAllByGroupOwnerOptions
(Collection<String> groupIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> fields, Collection<Privilege> privilegesTheUserHas, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity, 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> groupIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> fields, Collection<Privilege> privilegesTheUserHas, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity, 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> groupIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> fields, Collection<Privilege> privilegesTheUserHas, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity, 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) 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 ownerUUID, boolean enabledOnly) findAllByStemOwnerOptions
(Collection<String> stemIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity) find memberships by stem owner and other options.findAllByStemOwnerOptions
(Collection<String> stemIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> field, 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 queryOptionsForStem, String scopeForStem, boolean splitScopeForStem, boolean hasFieldForStem, boolean hasMembershipTypeForStem) find memberships by stem owner and other options.findAllByStemOwnerOptions
(Collection<String> stemIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> field, 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 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 type, 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) find memberships by attribute def owner and other options.findAllMembersByGroupOwnerAndField
(String ownerGroupId, 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) find memberships by attribute def owner and other options.findAllMembersByOwnerAndFieldAndType
(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 field, 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.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 memberships
-
Method Details
-
findAllEnabledDisabledMismatch
find records which are disabled which shouldnt be, and enabled which shouldnt be- Parameters:
queryTime
-- Returns:
- the memberships
-
findAll
get all memberships- Parameters:
enabledOnly
-- Returns:
- set
-
findAllByCreatedAfter
Set<Membership> findAllByCreatedAfter(Date d, Field f, boolean enabledOnly) throws GrouperDAOException - Parameters:
d
-f
-enabledOnly
-- Returns:
- set of membership
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByCreatedBefore
Set<Membership> findAllByCreatedBefore(Date d, Field f, boolean enabledOnly) throws GrouperDAOException - Parameters:
d
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByMember
- Parameters:
memberUUID
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByGroupOwnerAndField
Set<Membership> findAllByGroupOwnerAndField(String ownerGroupId, Field f, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerGroupId
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByStemOwnerAndField
Set<Membership> findAllByStemOwnerAndField(String ownerStemId, Field f, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerStemId
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByGroupOwnerAndFieldAndType
Set<Membership> findAllByGroupOwnerAndFieldAndType(String ownerGroupId, Field f, String type, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerGroupId
-f
-type
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByStemParentOfGroupOwnerAndFieldAndType
Set<Membership> findAllByStemParentOfGroupOwnerAndFieldAndType(Stem stem, Stem.Scope stemScope, Field field, MembershipType type, Boolean enabledOnly, String memberId) throws GrouperDAOException - Parameters:
stem
-stemScope
-field
-type
- e.g. immediateenabledOnly
-memberId
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByStemOwnerAndFieldAndType
Set<Membership> findAllByStemOwnerAndFieldAndType(String ownerStemId, Field f, String type, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerStemId
-f
-type
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByGroupOwnerAndMemberAndField
Set<Membership> findAllByGroupOwnerAndMemberAndField(String ownerGroupId, String memberUUID, Field f, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerGroupId
-memberUUID
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByGroupOwnerAndFieldAndMembers
Set<Membership> findAllByGroupOwnerAndFieldAndMembers(String ownerUUID, Field f, Collection<Member> members, boolean enabledOnly) throws GrouperDAOException TODO update for 1.5- Parameters:
ownerUUID
-f
-members
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.1
-
findAllByGroupOwnerAndFieldAndMembersAndType
Set<Membership> findAllByGroupOwnerAndFieldAndMembersAndType(String ownerUUID, Field f, Collection<Member> members, String type, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerUUID
-f
-members
-type
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
-
findAllByGroupOwnerAndFieldAndMemberIdsAndType
Set<Membership> findAllByGroupOwnerAndFieldAndMemberIdsAndType(String ownerUUID, Field f, Collection<String> memberIds, String type, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerUUID
-f
-memberIds
-type
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
-
findAllByGroupOwnerAndCompositeAndMembers
Set<Membership> findAllByGroupOwnerAndCompositeAndMembers(String ownerUUID, Collection<Member> members, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerUUID
-members
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
-
findAllByGroupOwnerAndMember
Set<Membership> findAllByGroupOwnerAndMember(String groupOwnerId, String memberUUID, boolean enabledOnly) throws GrouperDAOException - Parameters:
groupOwnerId
-memberUUID
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.1
-
findAllMembersByGroupOwnerAndFieldAndType
Set<Member> findAllMembersByGroupOwnerAndFieldAndType(String ownerGroupId, Field f, String type, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerGroupId
-f
-type
-queryOptions
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
-
findAllMembersInOneGroupNotOtherAndType
Set<Member> findAllMembersInOneGroupNotOtherAndType(String ownerInGroupId, String ownerNotInGroupId, String typeIn, String typeNotIn, QueryOptions queryOptions, Boolean enabled, boolean disabledOwnerNull) throws GrouperDAOException - Parameters:
ownerInGroupId
-ownerNotInGroupId
-typeIn
-typeNotIn
-queryOptions
-enabled
- T for enabled, F for disabled, null for alldisabledOwnerNull
- if true, the owner must have disabled date of null- Returns:
- set
- Throws:
GrouperDAOException
-
findAllMembersInOneGroupNotStem
Set<Member> 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 stem- Parameters:
ownerInGroupId
-ownerNotInStem
-stemScope
-typeIn
-queryOptions
-- Returns:
- set
- Throws:
GrouperDAOException
-
findAllMembersByGroupOwnerAndFieldAndType
Set<Member> findAllMembersByGroupOwnerAndFieldAndType(String ownerGroupId, Field f, String type, Set<Source> sources, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerGroupId
-f
-type
-sources
-queryOptions
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
-
findAllMembersByOwnerAndFieldAndType
Set<Member> findAllMembersByOwnerAndFieldAndType(String ownerId, Field f, String type, Set<Source> sources, QueryOptions queryOptions, boolean enabledOnly, SortStringEnum memberSortStringEnum, SearchStringEnum memberSearchStringEnum, String memberSearchStringValue) throws GrouperDAOException - Parameters:
ownerId
-f
-type
-sources
-queryOptions
-enabledOnly
-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
-
findAllMembersByStemOwnerAndFieldAndType
Set<Member> findAllMembersByStemOwnerAndFieldAndType(String ownerStemId, Field f, String type, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException note, dont change this signature, Arnaud is using it- Parameters:
ownerStemId
-f
-type
-queryOptions
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
-
findAllByStemOwnerAndMemberAndField
Set<Membership> findAllByStemOwnerAndMemberAndField(String ownerStemId, String memberUUID, Field f, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerStemId
-memberUUID
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllMembersByGroupOwnerAndField
Set<Member> findAllMembersByGroupOwnerAndField(String ownerGroupId, Field f, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerGroupId
-f
-enabledOnly
-- Returns:
- Members from memberships.
- Throws:
GrouperDAOException
- if any DAO errors occur.- Since:
- 1.2.1
- See Also:
-
findAllMembershipsByGroupOwnerFieldDisabledRange
Set<Membership> findAllMembershipsByGroupOwnerFieldDisabledRange(String ownerGroupId, Field field, Timestamp disabledDateFrom, Timestamp disabledDateTo) Find all memberships based on group, field, and a range of disabled dates- Parameters:
ownerGroupId
- memberships in this ownerfield
-disabledDateFrom
- null if dont considerdisabledDateTo
- null if dont consider- Returns:
- memberships.
-
findAllMembersByGroupOwnerAndField
Set<Member> findAllMembersByGroupOwnerAndField(String groupOwnerId, Field f, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException - Parameters:
groupOwnerId
-f
-queryOptions
-enabledOnly
-- Returns:
- the members
- Throws:
GrouperDAOException
-
findAllMembersByGroupOwnerAndField
Set<Member> findAllMembersByGroupOwnerAndField(String groupOwnerId, Field f, Set<Source> sources, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException - Parameters:
groupOwnerId
-f
-sources
-queryOptions
-enabledOnly
-- Returns:
- the members
- Throws:
GrouperDAOException
-
findByGroupOwnerAndMemberAndFieldAndType
Membership findByGroupOwnerAndMemberAndFieldAndType(String ownerGroupId, String memberUUID, Field f, String type, boolean exceptionIfNull, boolean enabledOnly) throws GrouperDAOException, MembershipNotFoundException - Parameters:
ownerGroupId
-memberUUID
-f
-type
-exceptionIfNull
-enabledOnly
-- Returns:
- membership
- Throws:
GrouperDAOException
MembershipNotFoundException
-
findByStemOwnerAndMemberAndFieldAndType
Membership findByStemOwnerAndMemberAndFieldAndType(String ownerStemId, String memberUUID, Field f, String type, boolean exceptionIfNull, boolean enabledOnly) throws GrouperDAOException, MembershipNotFoundException - Parameters:
ownerStemId
-memberUUID
-f
-type
-exceptionIfNull
-enabledOnly
-- Returns:
- membership
- Throws:
GrouperDAOException
MembershipNotFoundException
-
findByAttrDefOwnerAndMemberAndFieldAndType
Membership findByAttrDefOwnerAndMemberAndFieldAndType(String ownerAttrDefId, String memberUUID, Field f, String type, boolean exceptionIfNull, boolean enabledOnly) throws GrouperDAOException, MembershipNotFoundException - Parameters:
ownerAttrDefId
-memberUUID
-f
-type
-exceptionIfNull
-enabledOnly
-- Returns:
- membership
- Throws:
GrouperDAOException
MembershipNotFoundException
-
findAllChildMemberships
Set<Membership> findAllChildMemberships(Membership _ms, boolean enabledOnly) throws GrouperDAOException - Parameters:
_ms
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findParentMembership
- Parameters:
_ms
-- Returns:
- membership
- Throws:
GrouperDAOException
- Since:
- 1.5.0
-
findAllEffectiveByGroupOwner
Set<Membership> findAllEffectiveByGroupOwner(String ownerGroupId, String memberUUID, Field f, String viaGroupId, int depth, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerGroupId
-memberUUID
-f
-viaGroupId
-depth
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllEffectiveByStemOwner
Set<Membership> findAllEffectiveByStemOwner(String ownerStemId, String memberUUID, Field f, String viaGroupId, int depth, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerStemId
-memberUUID
-f
-viaGroupId
-depth
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByGroupOwnerOptions
Set<Object[]> findAllByGroupOwnerOptions(Collection<String> groupIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled) find membershpis by group owner and other options.- Parameters:
groupIds
- to limit memberships tomemberIds
- to limit memberships tomembershipIds
- 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
-
findAllByGroupOwnerOptions
Set<Object[]> findAllByGroupOwnerOptions(Collection<String> groupIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity) find membershpis by group owner and other options.- Parameters:
groupIds
- to limit memberships tomemberIds
- to limit memberships tomembershipIds
- 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 onlyshouldCheckSecurity
- if we should check security, default to true- Returns:
- a set of membership, group, and member objects
-
findAllByGroupOwnerOptions
Set<Object[]> findAllByGroupOwnerOptions(Collection<String> groupIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> fields, Collection<Privilege> privilegesTheUserHas, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity, 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.- Parameters:
groupIds
- 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 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 onlyshouldCheckSecurity
- if we should check security, default to truefieldType
- field type of of membershipsserviceId
-serviceRole
-queryOptionsForMember
- 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 membersqueryOptionsForGroup
-scopeForGroup
-splitScopeForGroup
-hasFieldForGroup
-hasMembershipTypeForGroup
-memberHasMembershipForGroup
- makes sure this member has a membership in the group before returning any results- Returns:
- a set of membership, group, and member objects
- Since:
- v2.2
-
findAllByGroupOwnerOptions
Set<Object[]> findAllByGroupOwnerOptions(Collection<String> groupIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> fields, Collection<Privilege> privilegesTheUserHas, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity, 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.- Parameters:
groupIds
- 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 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 onlyshouldCheckSecurity
- if we should check security, default to truefieldType
- field type of of membershipsserviceId
-serviceRole
-queryOptionsForMember
- 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 membersqueryOptionsForGroup
-scopeForGroup
-splitScopeForGroup
-hasFieldForGroup
-hasMembershipTypeForGroup
-memberHasMembershipForGroup
- makes sure this member has a membership in the group before returning any resultshasEnabledDate
-hasDisabledDate
-customCompositeType
-customCompositeGroup
-- Returns:
- a set of membership, group, and member objects
- Since:
- v2.4
-
findAllByGroupOwnerOptions
Set<Object[]> findAllByGroupOwnerOptions(Collection<String> groupIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> fields, Collection<Privilege> privilegesTheUserHas, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity, 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.- Parameters:
groupIds
- 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 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 onlyshouldCheckSecurity
- if we should check security, default to truefieldType
- field type of of membershipsserviceId
-serviceRole
-queryOptionsForMember
- 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 membersqueryOptionsForGroup
-scopeForGroup
-splitScopeForGroup
-hasFieldForGroup
-hasMembershipTypeForGroup
-memberHasMembershipForGroup
- makes sure this member has a membership in the group before returning any resultshasEnabledDate
-hasDisabledDate
-customCompositeType
-customCompositeGroup
-queryOptionsForMembership
-- Returns:
- a set of membership, group, and member objects
- Since:
- v2.5
-
findAllByGroupOwnerOptions
Set<Object[]> findAllByGroupOwnerOptions(Collection<String> groupIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity, FieldType fieldType) find membershpis by group owner and other options.- Parameters:
groupIds
- to limit memberships tomemberIds
- to limit memberships tomembershipIds
- 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 onlyshouldCheckSecurity
- 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
-
findAllMembersByAttributeDefOwnerOptions
List<Member> findAllMembersByAttributeDefOwnerOptions(String attributeDefId, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) find memberships by attribute def owner and other options.- 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
-
findAllByAttributeDefOwnerOptions
Set<Object[]> findAllByAttributeDefOwnerOptions(String attributeDefId, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) find memberships by attribute def owner and other options.- 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
-
findAllByAttributeDefOwnerOptions
Set<Object[]> findAllByAttributeDefOwnerOptions(String attributeDefId, Collection<String> memberIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) find membershpis by attribute def owner and other options.- Parameters:
attributeDefId
- to limit memberships tomemberIds
- 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
-
findSourceIdsByGroupOwnerOptions
Set<String> findSourceIdsByGroupOwnerOptions(String groupId, MembershipType membershipType, Field field, Boolean enabled) find membershpis by group owner and other options.- 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
-
findAllEffectiveByMemberAndField
Set<Membership> findAllEffectiveByMemberAndField(String memberUUID, Field f, boolean enabledOnly) throws GrouperDAOException - Parameters:
memberUUID
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllEffectiveByGroupOwnerAndMemberAndField
Set<Membership> findAllEffectiveByGroupOwnerAndMemberAndField(String ownerGroupId, String memberUUID, Field f, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerGroupId
-memberUUID
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllImmediateByMemberAndField
Set<Membership> findAllImmediateByMemberAndField(String memberUUID, Field f, boolean enabledOnly) throws GrouperDAOException - Parameters:
memberUUID
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllNonImmediateByMemberAndField
Set<Membership> findAllNonImmediateByMemberAndField(String memberUUID, Field f, boolean enabledOnly) throws GrouperDAOException - Parameters:
memberUUID
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllImmediateByMemberAndFieldType
Set<Membership> findAllImmediateByMemberAndFieldType(String memberUUID, String fieldType, boolean enabledOnly) throws GrouperDAOException - Parameters:
memberUUID
-fieldType
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllImmediateByMember
- Parameters:
memberUUID
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.3.1
-
findAllByGroupOwnerAsList
List<Membership> findAllByGroupOwnerAsList(String ownerUUID, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerUUID
-enabledOnly
-- Returns:
- list
- Throws:
GrouperDAOException
- Since:
- 1.3.1
-
findAllByStemOwnerAsList
List<Membership> findAllByStemOwnerAsList(String ownerUUID, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerUUID
-enabledOnly
-- Returns:
- list
- Throws:
GrouperDAOException
- Since:
- 1.3.1
-
findByUuid
Membership findByUuid(String uuid, boolean exceptionIfNull, boolean enabledOnly) throws GrouperDAOException, MembershipNotFoundException - Parameters:
uuid
-exceptionIfNull
-enabledOnly
-- Returns:
- membership
- Throws:
GrouperDAOException
MembershipNotFoundException
-
findByUuid
Membership findByUuid(String uuid, boolean exceptionIfNull, boolean enabledOnly, QueryOptions queryOptions) throws GrouperDAOException, MembershipNotFoundException - Parameters:
uuid
-exceptionIfNull
-enabledOnly
-queryOptions
-- Returns:
- membership
- Throws:
GrouperDAOException
MembershipNotFoundException
-
findMembershipsByMemberAndFieldSecure
Set<Membership> findMembershipsByMemberAndFieldSecure(GrouperSession grouperSession, String memberUUID, Field f, boolean enabledOnly) throws GrouperDAOException find memberships that the user is allowed to see- Parameters:
grouperSession
-memberUUID
-f
-enabledOnly
-- Returns:
- the memberships
- Throws:
GrouperDAOException
-
save
Save a membership- Parameters:
ms
-
-
save
Save a set of memberships- Parameters:
mships
-
-
delete
Delete a membership- Parameters:
ms
-
-
update
Update a membership- Parameters:
ms
-
-
update
Update a set of memberships- Parameters:
mships
-
-
delete
Delete a set of memberships- Parameters:
mships
-
-
findAllByCreatorOrMember
find all memberships that have this member or have this creator- Parameters:
member
-enabledOnly
-- Returns:
- the memberships
-
findAllByGroupOwnerAndFieldAndDepth
Set<Membership> findAllByGroupOwnerAndFieldAndDepth(String ownerGroupId, Field f, int depth, boolean enabledOnly) - Parameters:
ownerGroupId
-f
-depth
-enabledOnly
-- Returns:
- set
-
findAllByGroupOwnerAndDepth
- Parameters:
ownerGroupId
-depth
-enabledOnly
-- Returns:
- set
-
findAllByMemberAndDepth
- Parameters:
memberId
-depth
-enabledOnly
-- Returns:
- set
-
findMissingImmediateGroupSetsForGroupOwners
Set<Membership> findMissingImmediateGroupSetsForGroupOwners()Find all missing group sets for immediate memberships where the owner is a group.- Returns:
- set of memberships for which a groupSet is missing
-
findMissingImmediateGroupSetsForStemOwners
Set<Membership> findMissingImmediateGroupSetsForStemOwners()Find all missing group sets for immediate memberships where the owner is a stem.- Returns:
- set of memberships for which a groupSet is missing
-
findMissingImmediateGroupSetsForAttrDefOwners
Set<Membership> findMissingImmediateGroupSetsForAttrDefOwners()Find all missing group sets for immediate memberships where the owner is an attr def.- Returns:
- set of memberships for which a groupSet is missing
-
findAllMembersByAttrDefOwnerAndFieldAndType
Set<Member> findAllMembersByAttrDefOwnerAndFieldAndType(String ownerAttrDefId, Field f, String type, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerAttrDefId
-f
-type
-queryOptions
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
-
findAllEffectiveByAttrDefOwner
Set<Membership> findAllEffectiveByAttrDefOwner(String ownerAttrDefId, String memberUUID, Field f, String viaGroupId, int depth, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerAttrDefId
-memberUUID
-f
-viaGroupId
-depth
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByAttrDefOwnerAndField
Set<Membership> findAllByAttrDefOwnerAndField(String ownerAttrDefId, Field f, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerAttrDefId
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByAttrDefOwnerAndMember
Set<Membership> findAllByAttrDefOwnerAndMember(String ownerAttrDefId, String memberUUID, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerAttrDefId
-memberUUID
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.1
-
findAllByAttrDefOwnerAndFieldAndType
Set<Membership> findAllByAttrDefOwnerAndFieldAndType(String ownerAttrDefId, Field f, String type, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerAttrDefId
-f
-type
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByAttrDefOwnerAndMemberAndField
Set<Membership> findAllByAttrDefOwnerAndMemberAndField(String ownerAttrDefId, String memberUUID, Field f, boolean enabledOnly) throws GrouperDAOException - Parameters:
ownerAttrDefId
-memberUUID
-f
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByAttrDefOwnerAsList
List<Membership> findAllByAttrDefOwnerAsList(String attrDefId, boolean enabledOnly) throws GrouperDAOException - Parameters:
attrDefId
-enabledOnly
-- Returns:
- list
- Throws:
GrouperDAOException
- Since:
- 1.3.1
-
findAllImmediateByAttrDefOwnerAsList
List<Membership> findAllImmediateByAttrDefOwnerAsList(String attrDefId, boolean enabledOnly) throws GrouperDAOException - Parameters:
attrDefId
-enabledOnly
-- Returns:
- list
- Throws:
GrouperDAOException
-
findAllNonImmediateByMember
- Parameters:
memberUUID
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.3.1
-
findAllNonImmediateByMemberAndFieldType
Set<Membership> findAllNonImmediateByMemberAndFieldType(String memberUUID, String fieldType, boolean enabledOnly) throws GrouperDAOException - Parameters:
memberUUID
-fieldType
-enabledOnly
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findByImmediateUuidOrKey
Membership findByImmediateUuidOrKey(String uuid, String memberUUID, String fieldId, String ownerAttrDefId, String ownerGroupId, String ownerStemId, boolean exceptionIfNull) throws GrouperDAOException - Parameters:
uuid
-memberUUID
-fieldId
-ownerAttrDefId
-ownerGroupId
-ownerStemId
-exceptionIfNull
-- Returns:
- the stem or null
- Throws:
GrouperDAOException
GroupNotFoundException
- Since:
- 1.6.0
-
findByImmediateUuid
- Parameters:
uuid
-exceptionIfNull
-- Returns:
- membership
-
findByImmediateUuid
- Parameters:
uuid
-exceptionIfNull
-queryOptions
-- Returns:
- membership
-
saveUpdateProperties
save the update properties which are auto saved when business method is called- Parameters:
membership
-
-
findAllMembersByGroupOwnerOptions
List<Member> findAllMembersByGroupOwnerOptions(String groupId, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) find memberships by attribute def owner and other options.- 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
-
findAllByGroupOwnerOptions
Set<Object[]> findAllByGroupOwnerOptions(String groupId, Collection<String> memberIds, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) find membershpis by group owner and other options.- Parameters:
groupId
- to limit memberships tomemberIds
- 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
-
findAllByGroupOwnerOptions
Set<Object[]> findAllByGroupOwnerOptions(String groupId, MembershipType membershipType, Collection<Field> fields, Set<Source> sources, Boolean enabled, QueryOptions queryOptions) find memberships by group owner and other options.- 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
-
findAllMembershipEntriesByGroupOwnerAndFieldAndType
Set<Membership> findAllMembershipEntriesByGroupOwnerAndFieldAndType(String ownerGroupId, Field f, String type, boolean enabledOnly) In this case, membership objects are not joined with groupSets like most queries. This queries the memberships table only.- Parameters:
ownerGroupId
-f
-type
-enabledOnly
-- Returns:
- set of memberships
-
findMissingComplementMemberships
- Returns:
- set of arrays containing owner ids, composite ids, and member ids that should be added as composite memberships
-
findMissingUnionMemberships
- Returns:
- set of arrays containing owner ids, composite ids, and member ids that should be added as composite memberships
-
findMissingIntersectionMemberships
- Returns:
- set of arrays containing owner ids, composite ids, and member ids that should be added as composite memberships
-
findBadComplementMemberships
- Parameters:
compositeIds
-- Returns:
- set of immediate memberships that are bad
-
findBadUnionMemberships
- Parameters:
compositeIds
-- Returns:
- set of immediate memberships that are bad
-
findBadIntersectionMemberships
- Parameters:
compositeIds
-- Returns:
- set of immediate memberships that are bad
-
findMissingComplementMemberships
- Parameters:
composite
-- Returns:
- set of member ids that should be added as composite memberships
-
findMissingUnionMemberships
- Parameters:
composite
-- Returns:
- set of member ids that should be added as composite memberships
-
findMissingIntersectionMemberships
- Parameters:
composite
-- Returns:
- set of member ids that should be added as composite memberships
-
findBadComplementMemberships
- Parameters:
composite
-- Returns:
- set of immediate memberships that are bad
-
findBadUnionMemberships
- Parameters:
composite
-- Returns:
- set of immediate memberships that are bad
-
findBadIntersectionMemberships
- Parameters:
composite
-- Returns:
- set of immediate memberships that are bad
-
findBadMembershipsOnCompositeGroup
Set<Membership> findBadMembershipsOnCompositeGroup()This will find "immediate" memberships on composite groups along with memberships that don't have the right viaCompositeId.- Returns:
- set of immediate memberships that are bad
-
findBadCompositeMembershipsOnNonCompositeGroup
Set<Membership> findBadCompositeMembershipsOnNonCompositeGroup()- Returns:
- set of immediate memberships that are bad
-
findBadMembershipsDeletedGroupAsMember
Set<Membership> findBadMembershipsDeletedGroupAsMember()Find cases where a membership exists where the member is a deleted group.- Returns:
- set of immediate memberships that are bad
-
findAllByStemOwnerOptions
Set<Object[]> findAllByStemOwnerOptions(Collection<String> stemIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity) find memberships by stem owner and other options.- Parameters:
stemIds
- to limit memberships tomemberIds
- to limit memberships tomembershipIds
- 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 onlyshouldCheckSecurity
- if we should check security, default to true- Returns:
- a set of membership, stem, and member objects
-
findAllByStemOwnerOptions
Set<Object[]> findAllByStemOwnerOptions(Collection<String> stemIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> field, 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 queryOptionsForStem, String scopeForStem, boolean splitScopeForStem, boolean hasFieldForStem, boolean hasMembershipTypeForStem) find memberships by stem owner and other options.- Parameters:
stemIds
- to limit memberships tomemberIds
- to limit memberships tomembershipIds
- 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 onlyshouldCheckSecurity
- 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
- Since:
- v2.2
-
findAllByStemOwnerOptions
Set<Object[]> findAllByStemOwnerOptions(Collection<String> stemIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> field, 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 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.- Parameters:
stemIds
- to limit memberships tomemberIds
- to limit memberships tomembershipIds
- 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 onlyshouldCheckSecurity
- 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 onhasEnabledDate
-hasDisabledDate
-customCompositeType
-customCompositeGroup
-- Returns:
- a set of membership, stem, and member objects
- Since:
- v2.4
-
findAllByAttributeDefOwnerOptions
Set<Object[]> findAllByAttributeDefOwnerOptions(Collection<String> attributeDefIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Field field, Set<Source> sources, String scope, Stem stem, Stem.Scope stemScope, Boolean enabled, Boolean shouldCheckSecurity) find memberships by stem owner and other options.- Parameters:
attributeDefIds
- to limit memberships tomemberIds
- to limit memberships tomembershipIds
- 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 onlyshouldCheckSecurity
- if we should check security, default to true- Returns:
- a set of membership, stem, and member objects
-
findAllByAttributeDefOwnerOptions
Set<Object[]> findAllByAttributeDefOwnerOptions(Collection<String> attributeDefIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> field, 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.- Parameters:
attributeDefIds
- to limit memberships tomemberIds
- to limit memberships tomembershipIds
- 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 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
- Since:
- v2.2
-
findAllByAttributeDefOwnerOptions
Set<Object[]> findAllByAttributeDefOwnerOptions(Collection<String> attributeDefIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> field, 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.- Parameters:
attributeDefIds
- to limit memberships tomemberIds
- to limit memberships tomembershipIds
- 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 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 typehasEnabledDate
-hasDisabledDate
-customCompositeType
-customCompositeGroup
-- Returns:
- a set of membership, stem, and member objects
- Since:
- v2.4
-
findAllByAttributeDefOwnerOptions
Set<Object[]> findAllByAttributeDefOwnerOptions(Collection<String> attributeDefIds, Collection<String> memberIds, Collection<String> membershipIds, MembershipType membershipType, Collection<Field> field, 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.- Parameters:
attributeDefIds
- to limit memberships tomemberIds
- to limit memberships tomembershipIds
- 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 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
- Since:
- v2.2
-
findByImmediateUuids
retrieve by ids. note, this is not a secure method, will return any results queried- Parameters:
ids
-- Returns:
- the memberships, will not return null
-