Class MembershipPathGroup

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

public class MembershipPathGroup extends Object
collection of membership paths for a subject in a group, group privilege, stem privilege, or attribute privilege
  • Constructor Details

    • MembershipPathGroup

      public MembershipPathGroup()
  • Method Details

    • analyzePrivileges

      public static MembershipPathGroup analyzePrivileges(Group group, Subject subject)
      analyze group privileges for a group and a member
      Parameters:
      group -
      subject -
      Returns:
      the membershipPathGroup
    • analyzePrivileges

      public static MembershipPathGroup analyzePrivileges(Group group, Member member)
      analyze group privileges for a group and a member
      Parameters:
      group -
      member -
      Returns:
      the membershipPathGroup
    • isHasMembership

      public boolean isHasMembership()
      true if member has membership in this owner
      Returns:
      true if member has membership in this owner
    • analyze

      public static MembershipPathGroup analyze(Group group, Subject subject, Field field)
      analyze the membership/privilege of a member in a group by various paths
      Parameters:
      group -
      subject -
      field -
      Returns:
      the group of paths
    • analyze

      public static MembershipPathGroup analyze(Group group, Member member, Field field)
      analyze the membership/privilege of a member in a group by various paths
      Parameters:
      group -
      member -
      field -
      Returns:
      the group of paths
    • analyze

      public static MembershipPathGroup analyze(Group group, Member member, Field field, Subject callingSubject, int timeToLive)
      analyze the membership/privilege of a member in a group by various paths
      Parameters:
      group -
      member -
      field -
      callingSubject -
      timeToLive - prevent recursive loops
      Returns:
      the group of paths
    • analyzePrivileges

      public static MembershipPathGroup analyzePrivileges(Group group, Member member, Subject callingSubject)
      analyze the privileges of a member in a group by various paths
      Parameters:
      group -
      member -
      callingSubject -
      Returns:
      the group of paths
    • main

      public static void main(String[] args)
      Parameters:
      args -
    • toString

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

      public Set<MembershipPath> getMembershipPaths()
      set of membership paths
      Returns:
      paths
    • setMembershipPaths

      public void setMembershipPaths(Set<MembershipPath> membershipPaths1)
      set of membership paths
      Parameters:
      membershipPaths1 -
    • getMember

      public Member getMember()
      member for this membership
      Returns:
      member
    • setMember

      public void setMember(Member member1)
      member for this membership
      Parameters:
      member1 -
    • getOwnerGroup

      public Group getOwnerGroup()
      if this is a list or group privilege, this is the owner group
      Returns:
      group
    • setOwnerGroup

      public void setOwnerGroup(Group ownerGroup1)
      if this is a list or group privilege, this is the owner group
      Parameters:
      ownerGroup1 -
    • getOwnerStem

      public Stem getOwnerStem()
      if this is a stem privilege, this is the owner stem
      Returns:
      owner stem
    • setOwnerStem

      public void setOwnerStem(Stem ownerStem1)
      if this is a stem privilege, this is the owner stem
      Parameters:
      ownerStem1 -
    • getOwnerAttributeDef

      public AttributeDef getOwnerAttributeDef()
      if this is an attributeDef privilege, this is the owner attribute def
      Returns:
      attribute def
    • setOwnerAttributeDef

      public void setOwnerAttributeDef(AttributeDef ownerAttributeDef1)
      if this is an attributeDef privilege, this is the owner attribute def
      Parameters:
      ownerAttributeDef1 -
    • getMembershipOwnerType

      public MembershipOwnerType getMembershipOwnerType()
      what type e.g. list, or stemPrivilege
      Returns:
      owner type
    • setMembershipOwnerType

      public void setMembershipOwnerType(MembershipOwnerType membershipOwnerType1)
      what type e.g. list, or stemPrivilege
      Parameters:
      membershipOwnerType1 -
    • analyzePrivileges

      public static MembershipPathGroup analyzePrivileges(Stem stem, Subject subject)
      analyze stem privileges for a stem and a member
      Parameters:
      stem -
      subject -
      Returns:
      the membershipPathGroup
    • analyzePrivileges

      public static MembershipPathGroup analyzePrivileges(AttributeDef attributeDef, Subject subject)
      analyze attrDef privileges for an attrDef and a member
      Parameters:
      attributeDef -
      subject -
      Returns:
      the membershipPathGroup
    • analyze

      public static MembershipPathGroup analyze(Stem stem, Member member, Field field)
      analyze the membership/privilege of a member in a stem by various paths
      Parameters:
      stem -
      member -
      field -
      Returns:
      the group of paths
    • analyze

      public static MembershipPathGroup analyze(AttributeDef attributeDef, Member member, Field field)
      analyze the membership/privilege of a member in a attributeDef by various paths
      Parameters:
      attributeDef -
      member -
      field -
      Returns:
      the group of paths
    • analyze

      public static MembershipPathGroup analyze(AttributeDef attributeDef, Member member, Field field, Subject callingSubject)
      analyze the membership/privilege of a member in a attributeDef by various paths
      Parameters:
      attributeDef -
      member -
      field -
      callingSubject -
      Returns:
      the group of paths
    • analyze

      public static MembershipPathGroup analyze(Stem stem, Member member, Field field, Subject callingSubject)
      analyze the membership/privilege of a member in a stem by various paths
      Parameters:
      stem -
      member -
      field -
      callingSubject -
      Returns:
      the group of paths
    • analyzePrivileges

      public static MembershipPathGroup analyzePrivileges(Stem stem, Member member)
      analyze stem privileges for a stem and a member
      Parameters:
      stem -
      member -
      Returns:
      the membershipPathGroup
    • analyzePrivileges

      public static MembershipPathGroup analyzePrivileges(Stem stem, Member member, Subject callingSubject)
      analyze the privileges of a member in a stem by various paths
      Parameters:
      stem -
      member -
      callingSubject -
      Returns:
      the group of paths
    • analyzePrivileges

      public static MembershipPathGroup analyzePrivileges(AttributeDef attributeDef, Member member)
      analyze attributeDef privileges for a attributeDef and a member
      Parameters:
      attributeDef -
      member -
      Returns:
      the membershipPathGroup
    • analyzePrivileges

      public static MembershipPathGroup analyzePrivileges(AttributeDef attributeDef, Member member, Subject callingSubject)
      analyze the privileges of a member in a attributeDef by various paths
      Parameters:
      attributeDef -
      member -
      callingSubject -
      Returns:
      the group of paths