Enum Class WsMemberFilter
- All Implemented Interfaces:
Serializable
,Comparable<WsMemberFilter>
,Constable
member filter for retrieving members.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionretrieve all members (immediate, effective and composite)if this is a composite group, then return all the memberships that match the composite operator (union, intersection, complement).retrieve members which exist due a group as a member of another group (for composite groups, this will not return anything)return only direct members of a group (for composite groups this will not return anything)return only direct members of a group (for composite groups this will not return anything) -
Method Summary
Modifier and TypeMethodDescriptiongetGroups
(Member member, Field field, String scope, Stem stem, Stem.Scope stemScope, QueryOptions queryOptions, Boolean enabled) get groups for subject based on fieldgetMembers
(Group group, Field field, Set<Source> sources, QueryOptions queryOptions) get the members from the group based on type of filtergetMembersHelper
(Group group, Field field, Set<Source> sources, QueryOptions queryOptions) get the members from the group based on type of filterfinal Set<Membership>
getMemberships
(Group group, Field field) get the memberships from the group based on type of filterprotected abstract Set<Membership>
getMembershipsHelper
(Group group, Field field) get the memberships from the group based on type of filterabstract MembershipType
get the membership type for this member filterfinal boolean
see if a subject is in a groupprotected abstract boolean
hasMemberHelper
(Group group, Subject subject, Field field) see if a subject is in a groupstatic WsMemberFilter
Returns the enum constant of this class with the specified name.static WsMemberFilter
valueOfIgnoreCase
(String string) do a case-insensitive matchingstatic WsMemberFilter[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
All
retrieve all members (immediate, effective and composite) -
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) -
Composite
if this is a composite group, then return all the memberships that match the composite operator (union, intersection, complement). This will be the same as All for composite groups. -
NonImmediate
return only direct members of a group (for composite groups this will not return anything)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getMembers
public final Set<Member> getMembers(Group group, Field field, Set<Source> sources, QueryOptions queryOptions) get the members from the group based on type of filter- Parameters:
group
-field
- for membership or null to not check fieldsources
- are the sources to filter the membersqueryOptions
-- Returns:
- the set of members (non null)
-
getMembershipType
get the membership type for this member filter- Returns:
- the membership type
-
getMembersHelper
protected abstract Set<Member> getMembersHelper(Group group, Field field, Set<Source> sources, QueryOptions queryOptions) throws SchemaException get the members from the group based on type of filter- Parameters:
group
-field
- for membership or null to not check fieldsources
-queryOptions
-- Returns:
- the set of members (non null)
- Throws:
SchemaException
- if problem with field
-
getMembershipsHelper
protected abstract Set<Membership> getMembershipsHelper(Group group, Field field) throws SchemaException get the memberships from the group based on type of filter- Parameters:
group
-field
- for membership or null to not check field- Returns:
- the set of members (non null)
- Throws:
SchemaException
- is there is a problem with field
-
getMemberships
get the memberships from the group based on type of filter- Parameters:
group
-field
- for membership or null to not check field- Returns:
- the set of members (non null)
- Throws:
SchemaException
- is there is a problem with field
-
hasMemberHelper
protected abstract boolean hasMemberHelper(Group group, Subject subject, Field field) throws SchemaException see if a subject is in a group- Parameters:
group
-subject
-field
-- Returns:
- the set of members (non null)
- Throws:
SchemaException
-
hasMember
see if a subject is in a group- Parameters:
group
-subject
-field
-- Returns:
- the set of members (non null)
- Throws:
SchemaException
-
getGroups
public abstract Set<Group> getGroups(Member member, Field field, String scope, Stem stem, Stem.Scope stemScope, QueryOptions queryOptions, Boolean enabled) get groups for subject based on field- Parameters:
member
-field
-field
- to check with membershipscope
-stem
-stemScope
-enabled
-queryOptions
-- Returns:
- the set of members (non null)
-
valueOfIgnoreCase
do a case-insensitive matching- Parameters:
string
-- Returns:
- the enum or null or exception if not found
-