public enum FieldMemberFilter extends Enum<FieldMemberFilter>
Enum Constant and Description |
---|
all
retrieve all members (immediate, effective and composite)
|
composite
if this is a composite group, then return all the memberships that match the
composite operator (union, intersection, complement).
|
effective
retrieve members which exist due a group as a member of another group (for composite
groups, this will not return anything)
|
immediate
return only direct members of a group (for composite groups this will not return
anything)
|
Modifier and Type | Method and Description |
---|---|
static <E extends Enum<?>> |
enumValueOfIgnoreCase(Class<E> theEnumClass,
String string,
boolean exceptionOnNotFound)
do a case-insensitive matching
|
abstract Set<Group> |
getGroups(Member member)
get groups for subject
|
abstract Set<Group> |
getGroups(Member member,
Field field)
get groups for subject based on field
|
Set<Member> |
getMembers(Group group,
Field field)
get the members from the group based on type of filter
|
protected abstract Set<Member> |
getMembersHelper(Group group,
Field field)
get the members from the group based on type of filter
|
Set<Membership> |
getMemberships(Group group,
Field field)
get the memberships from the group based on type of filter
|
protected abstract Set<Membership> |
getMembershipsHelper(Group group,
Field field)
get the memberships from the group based on type of filter
|
boolean |
hasMember(Group group,
Subject subject,
Field field)
see if a subject is in a group
|
protected abstract boolean |
hasMemberHelper(Group group,
Subject subject,
Field field)
see if a subject is in a group
|
static FieldMemberFilter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldMemberFilter |
valueOfIgnoreCase(String string)
do a case-insensitive matching
|
static FieldMemberFilter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldMemberFilter all
public static final FieldMemberFilter effective
public static final FieldMemberFilter immediate
public static final FieldMemberFilter composite
public static FieldMemberFilter[] values()
for (FieldMemberFilter c : FieldMemberFilter.values()) System.out.println(c);
public static FieldMemberFilter valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final Set<Member> getMembers(Group group, Field field)
group
- field
- for membership or null to not check fieldprotected abstract Set<Member> getMembersHelper(Group group, Field field) throws SchemaException
group
- field
- for membership or null to not check fieldSchemaException
- if problem with fieldprotected abstract Set<Membership> getMembershipsHelper(Group group, Field field) throws SchemaException
group
- field
- for membership or null to not check fieldSchemaException
- is there is a problem with fieldpublic final Set<Membership> getMemberships(Group group, Field field)
group
- field
- for membership or null to not check fieldSchemaException
- is there is a problem with fieldprotected abstract boolean hasMemberHelper(Group group, Subject subject, Field field) throws SchemaException
group
- subject
- field
- SchemaException
public final boolean hasMember(Group group, Subject subject, Field field)
group
- subject
- field
- SchemaException
public abstract Set<Group> getGroups(Member member)
member
- field
- to check with membershippublic abstract Set<Group> getGroups(Member member, Field field)
member
- field
- field
- to check with membershippublic static FieldMemberFilter valueOfIgnoreCase(String string)
string
- public static <E extends Enum<?>> E enumValueOfIgnoreCase(Class<E> theEnumClass, String string, boolean exceptionOnNotFound) throws RuntimeException
E
- generic typetheEnumClass
- class of the enumstring
- exceptionOnNotFound
- true if exception should be thrown on not foundGrouperRestInvalidRequest
- if there is a problemRuntimeException
Copyright © 2016 Internet2. All rights reserved.