public class MemberFinder extends Object
Constructor and Description |
---|
MemberFinder() |
Modifier and Type | Method and Description |
---|---|
static void |
clearInternalMembers() |
static Set |
findAll(GrouperSession s)
Find all members.
|
static Set<Member> |
findAll(GrouperSession s,
Source source)
Find all members by source.
|
static Set<Member> |
findAllUsed(GrouperSession grouperSession,
Source source)
Find all members by source used somewhere, e.g.
|
static Member |
findBySubject(GrouperSession s,
Subject subj)
Deprecated.
use overload
|
static Member |
findBySubject(GrouperSession s,
Subject subj,
boolean createIfNotExist)
|
static Set<Member> |
findBySubjects(Collection<Subject> subjects,
boolean createIfNotExists)
convert a set of subjects to a set of members
|
static Set<Member> |
findBySubjectsInGroup(GrouperSession grouperSession,
Set<Subject> subjects,
Group group,
Field field,
MembershipType membershipType)
convert a set of subjects to a set of members
|
static Member |
findByUuid(GrouperSession s,
String uuid)
Deprecated.
|
static Member |
findByUuid(GrouperSession s,
String uuid,
boolean exceptionIfNotFound)
Get a member by UUID.
|
static Member |
internal_createMember(Subject subj,
String memberUuidIfCreate)
create a member
|
static Member |
internal_findAllMember() |
static Member |
internal_findBySubject(Subject subj,
String uuidIfCreate,
boolean createIfNotExist)
find a member, perhaps create a new one if not there
|
static Set<Member> |
internal_findMembersByType(GrouperSession grouperSession,
Group group,
Field field,
String type,
Set<Source> sources,
QueryOptions queryOptions,
SortStringEnum memberSortStringEnum,
SearchStringEnum memberSearchStringEnum,
String memberSearchStringValue)
make sure allowed to see them, and find the members
|
static Member |
internal_findOrCreateBySubject(String id,
String src,
String type)
find a member
|
static Member |
internal_findReadableMemberBySubject(GrouperSession grouperSession,
Subject subject,
boolean exceptionIfNotExist)
find a member object and if group, make sure it is readable
|
static Member |
internal_findRootMember() |
static Member |
internal_findViewableMemberBySubject(GrouperSession s,
Subject subj,
boolean exceptionIfNotExist) |
static void |
memberCreatedCacheDelete(String sourceId,
String subjectId) |
public static Set findAll(GrouperSession s) throws GrouperException
Set members = MemberFinder.findAll(s);
s
- Find all members within this session context.Set
of Member
objects.GrouperException
public static Set<Member> findAllUsed(GrouperSession grouperSession, Source source) throws GrouperException
Set members = MemberFinder.findAllUsed(s, source);
grouperSession
- Find all members within this session context.source
- Find all members with this source.Set
of Member
objects.GrouperException
public static Set<Member> findAll(GrouperSession s, Source source) throws GrouperException
Set members = MemberFinder.findAll(s, source);
s
- Find all members within this session context.source
- Find all members with this source.Set
of Member
objects.GrouperException
public static Set<Member> internal_findMembersByType(GrouperSession grouperSession, Group group, Field field, String type, Set<Source> sources, QueryOptions queryOptions, SortStringEnum memberSortStringEnum, SearchStringEnum memberSearchStringEnum, String memberSearchStringValue)
grouperSession
- group
- field
- type
- sources
- queryOptions
- memberSortStringEnum
- memberSearchStringEnum
- memberSearchStringValue
- @Deprecated public static Member findBySubject(GrouperSession s, Subject subj)
public static Set<Member> findBySubjectsInGroup(GrouperSession grouperSession, Set<Subject> subjects, Group group, Field field, MembershipType membershipType)
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 anypublic static Set<Member> findBySubjects(Collection<Subject> subjects, boolean createIfNotExists)
subjects
- to convert to memberscreateIfNotExists
- group
- 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 anypublic static Member findBySubject(GrouperSession s, Subject subj, boolean createIfNotExist)
@Deprecated public static Member findByUuid(GrouperSession s, String uuid) throws MemberNotFoundException
// Get a member by uuid. try { Member m = MemberFind.findByUuid(s, uuid); } catch (MemberNotFoundException e) { // Member not found }
s
- Get Member
within this session context.uuid
- Get Member
with this UUID.Member
object.MemberNotFoundException
public static Member findByUuid(GrouperSession s, String uuid, boolean exceptionIfNotFound) throws MemberNotFoundException
// Get a member by uuid. Member m = MemberFind.findByUuid(s, uuid, false);
s
- Get Member
within this session context.uuid
- Get Member
with this UUID.exceptionIfNotFound
- true to throw exception if not foundMember
object.MemberNotFoundException
public static Member internal_findAllMember() throws GrouperException
GrouperException
public static Member internal_findRootMember() throws GrouperException
GrouperException
public static Member internal_findBySubject(Subject subj, String uuidIfCreate, boolean createIfNotExist)
subj
- uuidIfCreate
- uuid to use if creatingcreateIfNotExist
- public static Member internal_findOrCreateBySubject(String id, String src, String type)
id
- src
- type
- public static void memberCreatedCacheDelete(String sourceId, String subjectId)
sourceId
- subjectId
- public static Member internal_createMember(Subject subj, String memberUuidIfCreate)
subj
- memberUuidIfCreate
- public static Member internal_findViewableMemberBySubject(GrouperSession s, Subject subj, boolean exceptionIfNotExist) throws InsufficientPrivilegeException, MemberNotFoundException
s
- subj
- exceptionIfNotExist
- InsufficientPrivilegeException
MemberNotFoundException
public static Member internal_findReadableMemberBySubject(GrouperSession grouperSession, Subject subject, boolean exceptionIfNotExist) throws MemberNotFoundException, InsufficientPrivilegeException
grouperSession
- subject
- exceptionIfNotExist
- MemberNotFoundException
InsufficientPrivilegeException
public static void clearInternalMembers()
Copyright © 2016 Internet2. All rights reserved.