Class MembershipResult
java.lang.Object
edu.internet2.middleware.grouper.membership.MembershipResult
wrapper around membership result so that it can easily be processed
-
Constructor Summary
ConstructorsConstructorDescriptionMembershipResult
(Set<Object[]> theMembershipsGroupsMembers, String theFieldId, Collection<Field> theFields, boolean theIncludeInheritedPrivileges) -
Method Summary
Modifier and TypeMethodDescriptionoriginal output of querylazy load the calculation of reach subject/member and how they relate to the result setgroupIds()
get the group ids from the resultgroupNamesInStem
(Subject subject, String stemName) find the group names for the membership result in a certain stemgroups()
get the groups from the resultboolean
hasAttributeDefMembership
(String attributeDefName, Subject subject, String fieldName) boolean
hasGroupMembership
(String groupName, Subject subject) boolean
hasGroupMembership
(String groupName, Subject subject, String fieldName) boolean
hasStemMembership
(String stemName, Subject subject) boolean
hasStemMembership
(String stemName, Subject subject, String fieldName) void
initResultStems
(Set<Object[]> theMembershipsStemsMembers, String theFieldId) members()
get the members from the result
-
Constructor Details
-
MembershipResult
public MembershipResult() -
MembershipResult
public MembershipResult(Set<Object[]> theMembershipsGroupsMembers, String theFieldId, Collection<Field> theFields, boolean theIncludeInheritedPrivileges) - Parameters:
theMembershipsGroupsMembers
- is the list of arrays of membership, group, membertheFieldId
- is null for members, or specify if something elsetheFields
-theIncludeInheritedPrivileges
-
-
-
Method Details
-
getMembershipsOwnersMembers
original output of query- Returns:
- result
-
getMembershipSubjectContainers
lazy load the calculation of reach subject/member and how they relate to the result set- Returns:
- lazy load the calculations
-
initResultStems
- Parameters:
theMembershipsStemsMembers
- is the list of arrays of membership, stem, membertheFieldId
- is null for members, or specify if something else
-
hasGroupMembership
- Parameters:
groupName
-subject
-- Returns:
- if the memberships have this group
-
hasGroupMembership
- Parameters:
groupName
-subject
-- Returns:
- if the memberships have this group
-
hasStemMembership
- Parameters:
stemName
-subject
-- Returns:
- if the memberships have this stem
-
hasStemMembership
- Parameters:
stemName
-subject
-- Returns:
- if the memberships have this stem
-
hasAttributeDefMembership
public boolean hasAttributeDefMembership(String attributeDefName, Subject subject, String fieldName) - Parameters:
attributeDefName
-subject
-- Returns:
- if the memberships have this stem
-
members
get the members from the result- Returns:
- the members
-
groups
get the groups from the result- Returns:
- the groups
-
groupIds
get the group ids from the result- Returns:
- the group ids
-
groupNamesInStem
find the group names for the membership result in a certain stem- Parameters:
subject
-stemName
-- Returns:
- the group names
-