Interface MemberDAO
- All Superinterfaces:
GrouperDAO
- All Known Implementing Classes:
Hib3MemberDAO
Basic
Member
DAO interface.- Since:
- 1.2.0
- Version:
- $Id: MemberDAO.java,v 1.11 2009-12-28 06:08:37 mchyzer Exp $
-
Method Summary
Modifier and TypeMethodDescription_internal_membersComplement
(String groupUuid1, String groupUuid2) find the set of member uuids of the complement of two groups_internal_membersIntersection
(String groupUuid1, String groupUuid2) find the set of member uuids of the intersection of two groups_internal_membersUnion
(String groupUuid1, String groupUuid2) find the set of member uuids of the union of two groupsvoid
boolean
void
existsCachePut
(String uuid, boolean exists) update the exists cachefindAll()
Returns member ids for deleted groups and local entities that are deleted but still marked as resolvable or not deleted.Returns member ids that are checked by USDUReturns member ids that need to have subject resolution eligible updated to FfindAllUsed
(Source source) find all members that are used somewhere (e.g.findByIdIndex
(Long idIndex, boolean exceptionIfNotFound) findByIds
(Collection<String> ids, QueryOptions queryOptions) find by ids securefindBySubject
(Subject subj) Deprecated.use overloadfindBySubject
(Subject subj, boolean exceptionIfNull) findBySubject
(String subjectId) Deprecated.use overloadfindBySubject
(String subjectId, boolean exceptionIfNull) find by subject id only (cant be duplicates)findBySubject
(String subjectId, String src) Deprecated.use overloadfindBySubject
(String subjectId, String src, boolean exceptionIfNull) find by subject id and source idfindBySubject
(String id, String src, String type) Deprecated.use overloadfindBySubject
(String id, String src, String type, boolean exceptionIfNull) findBySubject
(String id, String src, String type, boolean exceptionIfNull, QueryOptions queryOptions) find member by subjectfindBySubjectIdentifier
(String subjectIdentifier, String src, boolean exceptionIfNull) find by subject identifier and source idfindBySubjectIds
(Collection<String> subjectIds, String subjectSourceId) Retrieve Member objects based on a list of SubjectIds within a single SubjectSourcefindBySubjects
(Collection<Subject> subjects, boolean createIfNotExists) find members by subjects and create if not exist possiblyfindBySubjectsInGroup
(GrouperSession grouperSession, Set<Subject> subjects, Group group, Field field, MembershipType membershipType) convert a set of subjects to a set of membersfindByUuid
(String uuid) Deprecated.findByUuid
(String uuid, boolean exceptionIfNull) findByUuid
(String uuid, boolean exceptionIfNull, QueryOptions queryOptions) findByUuidOrSubject
(String uuid, String subjectId, String source, boolean exceptionIfNull) find a member by uuid or subject idgetAllMembersSecure
(GrouperSession grouperSession, QueryOptions queryOptions, String idOfAttributeDefName, Object attributeValue, Set<Object> attributeValuesOnAssignment, Boolean attributeCheckReadOnAttributeDef, String idOfAttributeDefName2, Object attributeValue2, Set<Object> attributeValuesOnAssignment2) get all members securegetUnresolvableMembers
(QueryOptions queryOptions, Boolean deleted) void
saveUpdateProperties
(Member member) save the udpate properties which are auto saved when business method is calledselectByDataProvider
(Long dataProviderInternalId) get all the members that are assigned in a data provider to fields or rowsvoid
void
uuid2dtoCacheRemove
(String uuid) remove from cache
-
Method Details
-
selectByDataProvider
get all the members that are assigned in a data provider to fields or rows- Parameters:
dataProviderInternalId
-- Returns:
- the members by internal id
-
findByIds
find by ids secure- Parameters:
ids
-queryOptions
-- Returns:
- the members empty set or exception
-
create
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
exists
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAll
- Throws:
GrouperDAOException
- Since:
- 1.3.0
-
findAll
- Throws:
GrouperDAOException
- Since:
- 1.3.0
-
findAllUsed
find all members that are used somewhere (e.g. memberships or attributes)- Parameters:
source
-- Returns:
- the members
- Throws:
GrouperDAOException
- Since:
- 1.6.1
-
findBySubject
Deprecated.use overload- Throws:
GrouperDAOException
MemberNotFoundException
- Since:
- 1.2.0
-
findBySubject
Member findBySubject(Subject subj, boolean exceptionIfNull) throws GrouperDAOException, MemberNotFoundException - Throws:
GrouperDAOException
MemberNotFoundException
- Since:
- 1.2.0
-
findBySubject
@Deprecated Member findBySubject(String id, String src, String type) throws GrouperDAOException, MemberNotFoundException Deprecated.use overload- Throws:
GrouperDAOException
MemberNotFoundException
- Since:
- 1.2.0
-
findBySubject
Member findBySubject(String id, String src, String type, boolean exceptionIfNull) throws GrouperDAOException, MemberNotFoundException - Throws:
GrouperDAOException
MemberNotFoundException
- Since:
- 1.2.0
-
findBySubject
Member findBySubject(String id, String src, String type, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, MemberNotFoundException find member by subject- Parameters:
id
-src
-type
-exceptionIfNull
-queryOptions
-- Returns:
- the member or null
- Throws:
GrouperDAOException
MemberNotFoundException
-
findBySubject
@Deprecated Member findBySubject(String subjectId) throws GrouperDAOException, MemberNotFoundException, MemberNotUniqueException Deprecated.use overloadfind by subject id only (cant be duplicates)- Parameters:
subjectId
-- Returns:
- the member
- Throws:
GrouperDAOException
MemberNotFoundException
MemberNotUniqueException
-
findBySubject
Member findBySubject(String subjectId, boolean exceptionIfNull) throws GrouperDAOException, MemberNotFoundException, MemberNotUniqueException find by subject id only (cant be duplicates)- Parameters:
subjectId
-- Returns:
- the member
- Throws:
GrouperDAOException
MemberNotFoundException
MemberNotUniqueException
-
findBySubject
Member findBySubject(String subjectId, String src, boolean exceptionIfNull) throws GrouperDAOException, MemberNotFoundException find by subject id and source id- Parameters:
subjectId
-src
-- Returns:
- the member
- Throws:
GrouperDAOException
MemberNotFoundException
-
findBySubjectIdentifier
Member findBySubjectIdentifier(String subjectIdentifier, String src, boolean exceptionIfNull) throws GrouperDAOException, MemberNotFoundException find by subject identifier and source id- Parameters:
subjectIdentifier
-src
-- Returns:
- the member
- Throws:
GrouperDAOException
MemberNotFoundException
-
findBySubject
@Deprecated Member findBySubject(String subjectId, String src) throws GrouperDAOException, MemberNotFoundException Deprecated.use overloadfind by subject id and source id- Parameters:
subjectId
-src
-- Returns:
- the member
- Throws:
GrouperDAOException
MemberNotFoundException
-
findByUuid
Deprecated.- Throws:
GrouperDAOException
MemberNotFoundException
- Since:
- 1.2.0
-
findByUuid
Member findByUuid(String uuid, boolean exceptionIfNull) throws GrouperDAOException, MemberNotFoundException - Throws:
GrouperDAOException
MemberNotFoundException
- Since:
- 1.2.0
-
findByUuid
Member findByUuid(String uuid, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, MemberNotFoundException - Throws:
GrouperDAOException
MemberNotFoundException
- Since:
- 1.2.0
-
update
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
existsCachePut
update the exists cache- Parameters:
uuid
-exists
-
-
uuid2dtoCacheRemove
remove from cache- Parameters:
uuid
-
-
_internal_membersIntersection
find the set of member uuids of the intersection of two groups- Parameters:
groupUuid1
-groupUuid2
-- Returns:
- the set of member uuids (non null)
-
_internal_membersUnion
find the set of member uuids of the union of two groups- Parameters:
groupUuid1
-groupUuid2
-- Returns:
- the set of member uuids (non null)
-
_internal_membersComplement
find the set of member uuids of the complement of two groups- Parameters:
groupUuid1
-groupUuid2
-- Returns:
- the set of member uuids (non null)
-
findBySubjectsInGroup
Set<Member> findBySubjectsInGroup(GrouperSession grouperSession, Set<Subject> subjects, Group group, Field field, MembershipType membershipType) convert a set of subjects to a set of members- Parameters:
grouperSession
-subjects
- to convert to membersgroup
- that subjects must be infield
- that they must be in in the group (null will default to eh members listmembershipType
- that they must be in in the group or null for any- Returns:
- the members in the group
-
findBySubjects
find members by subjects and create if not exist possibly- Parameters:
subjects
-createIfNotExists
-- Returns:
- the members
-
findBySubjectIds
Retrieve Member objects based on a list of SubjectIds within a single SubjectSource- Parameters:
subjectIds
-subjectSourceId
-- Returns:
-
findByUuidOrSubject
find a member by uuid or subject id- Parameters:
uuid
-subjectId
-source
-exceptionIfNull
-- Returns:
- the member
-
saveUpdateProperties
save the udpate properties which are auto saved when business method is called- Parameters:
member
-
-
getAllMembersSecure
Set<Member> getAllMembersSecure(GrouperSession grouperSession, QueryOptions queryOptions, String idOfAttributeDefName, Object attributeValue, Set<Object> attributeValuesOnAssignment, Boolean attributeCheckReadOnAttributeDef, String idOfAttributeDefName2, Object attributeValue2, Set<Object> attributeValuesOnAssignment2) get all members secure- Parameters:
grouperSession
-subject
-privileges
-queryOptions
-idOfAttributeDefName
- if looking for members that have this attribute def nameattributeValue
- if looking for members that have this attribute value on the attribute def nameattributeValuesOnAssignment
- if looking for an attribute value on an assignment, could be multiple valuesattributeCheckReadOnAttributeDef
- use security around attribute def? default is trueidOfAttributeDefName2
- if looking for members that have this attribute def name2attributeValue2
- if looking for members that have this attribute value2 on the attribute def name2attributeValuesOnAssignment2
- if looking for an attribute value on an assignment2, could be multiple values- Returns:
- set of member
- Since:
- v2.4.0.patch
-
getUnresolvableMembers
- Parameters:
queryOptions
-deleted
- true - return unresolvable members that are deleted false - return unresolvable members that are not deleted null - return all unresolvable members- Returns:
- unresolvable members
-
findAllMemberIdsForUnresolvableCheck
Returns member ids that are checked by USDU- Returns:
- set of member ids
-
findAllMemberIdsNoLongerSubjectResolutionEligible
Returns member ids that need to have subject resolution eligible updated to F- Returns:
- set of member ids
-
findAllDeletedGroupMemberIdsIncorrectSubjectResolutionAttributes
Returns member ids for deleted groups and local entities that are deleted but still marked as resolvable or not deleted.- Returns:
- set of member ids
-
findByIdIndex
- Returns:
- member
- Throws:
MemberNotFoundException
-