Class MembershipSubjectContainer

java.lang.Object
edu.internet2.middleware.grouper.membership.MembershipSubjectContainer

public class MembershipSubjectContainer extends Object
in a list of memberships, this is one subject. this only works when filtering for one owner
  • Constructor Details

    • MembershipSubjectContainer

      public MembershipSubjectContainer()
  • Method Details

    • considerAccessPrivilegeInheritance

      public void considerAccessPrivilegeInheritance()
      consider inheritance in one group
    • isHasNonImmediate

      public boolean isHasNonImmediate()
      if there is a non immediate in all the fields
      Returns:
      true if has non immediate
    • isHasUpdate

      public boolean isHasUpdate()
      if update exists for this row
      Returns:
      true if update exists for this row
    • isHasOptout

      public boolean isHasOptout()
      if optout exists for this row
      Returns:
      true if optout exists for this row
    • isCanOptout

      public boolean isCanOptout()
      if optout exists for this row
      Returns:
      true if optout exists for this row
    • getStemOwner

      public Stem getStemOwner()
      stem owner of this memberships
      Returns:
      stem owner
    • setStemOwner

      public void setStemOwner(Stem stemOwner1)
      stem owner of this memberships
      Parameters:
      stemOwner1 -
    • getAttributeDefOwner

      public AttributeDef getAttributeDefOwner()
      attribute def owner of membership
      Returns:
      attribute def
    • setAttributeDefOwner

      public void setAttributeDefOwner(AttributeDef attributeDefOwner1)
      attribute def owner of membership
      Parameters:
      attributeDefOwner1 -
    • getGroupOwner

      public Group getGroupOwner()
      group owner of this memberships
      Returns:
      group or null
    • setGroupOwner

      public void setGroupOwner(Group groupOwner1)
      group owner of this memberships
      Parameters:
      groupOwner1 -
    • considerNamingPrivilegeInheritance

      public static void considerNamingPrivilegeInheritance(Set<MembershipSubjectContainer> membershipSubjectContainers)
      add effective memberships for inheritance of privileges or GrouperAll for stem
      Parameters:
      membershipSubjectContainers -
    • addMembership

      public void addMembership(String fieldName, MembershipAssignType newMembershipAssignType)
      consider a new membership
      Parameters:
      fieldName -
      membershipAssignType -
    • getMember

      public Member getMember()
      member
      Returns:
      the member
    • setMember

      public void setMember(Member member1)
      member
      Parameters:
      member1 -
    • getMembershipContainers

      public Map<String,MembershipContainer> getMembershipContainers()
      See Also:
    • getAllMemberships

      public Map<String,List<Membership>> getAllMemberships()
      Returns:
      all memberships for field
    • setAllMemberships

      public void setAllMemberships(Map<String,List<Membership>> allMemberships)
      Parameters:
      allMemberships -
    • getSubject

      public Subject getSubject()
      See Also:
    • setSubject

      public void setSubject(Subject subject1)
      Parameters:
      subject1 - the subject to set
    • setMembershipContainers

      public void setMembershipContainers(Map<String,MembershipContainer> privilegeContainers1)
      Parameters:
      privilegeContainers1 - the privilegeContainers to set
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also:
    • considerAttributeDefPrivilegeInheritance

      public static void considerAttributeDefPrivilegeInheritance(Set<MembershipSubjectContainer> membershipSubjectContainers)
      add effective memberships for inheritance of privileges or GrouperAll for attributeDef
      Parameters:
      membershipSubjectContainers -
    • considerAccessPrivilegeInheritance

      public static void considerAccessPrivilegeInheritance(Set<MembershipSubjectContainer> membershipSubjectContainers)
      add effective memberships for inheritance of privileges or GrouperAll for group
      Parameters:
      membershipSubjectContainers -
    • convertFromMembershipsOwnersMembers

      public static Set<MembershipSubjectContainer> convertFromMembershipsOwnersMembers(Set<Object[]> memberships, Collection<Field> fields, boolean includeInheritedPrivileges)
      convert memberships into membership subject containers
      Parameters:
      memberships -
      fields -
      includeInheritedPrivileges -
      Returns:
      the containers per user