Class MembershipPathNode

java.lang.Object
edu.internet2.middleware.grouper.membership.MembershipPathNode
All Implemented Interfaces:
Comparable<MembershipPathNode>

public class MembershipPathNode extends Object implements Comparable<MembershipPathNode>
membership path node including both end nodes
  • Constructor Details

    • MembershipPathNode

      public MembershipPathNode()
      default constructor
    • MembershipPathNode

      public MembershipPathNode(Field field, Group theOwnerGroup)
      constructor for group path code
      Parameters:
      field -
      theOwnerGroup -
    • MembershipPathNode

      public MembershipPathNode(Field field, Group ownerGroup, CompositeType compositeType, Group theLeftCompositeFactor, Group theRightCompositeFactor, Group theOtherFactor)
      construct a composite group node
      Parameters:
      field -
      ownerGroup -
      compositeType -
      theLeftCompositeFactor -
      theRightCompositeFactor -
      theOtherFactor -
    • MembershipPathNode

      public MembershipPathNode(Field field, Stem theOwnerStem)
      constructor for stem path code
      Parameters:
      field -
      theOwnerStem -
    • MembershipPathNode

      public MembershipPathNode(Field field, AttributeDef theOwnerAttributeDef)
      constructor for attributeDef path code
      Parameters:
      field -
      theOwnerAttributeDef -
  • Method Details

    • clone

      protected Object clone()
      Overrides:
      clone in class Object
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      See Also:
    • toString

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

      public CompositeType getCompositeType()
      if composite, this is the right composite factor
      Returns:
      composite
    • setCompositeType

      public void setCompositeType(CompositeType compositeType1)
      if composite, this is the right composite factor
      Parameters:
      compositeType1 -
    • getOtherFactor

      public Group getOtherFactor()
      this is the factor not in the path
      Returns:
      the otherFactor
    • setOtherFactor

      public void setOtherFactor(Group otherFactor1)
      this is the factor not in the path
      Parameters:
      otherFactor1 - the otherFactor to set
    • isComposite

      public boolean isComposite()
      if this is a composite group
      Returns:
      composite
    • setComposite

      public void setComposite(boolean composite1)
      if this is a composite group
      Parameters:
      composite1 -
    • getLeftCompositeFactor

      public Group getLeftCompositeFactor()
      if composite, this is the right composite factor
      Returns:
      factor
    • setLeftCompositeFactor

      public void setLeftCompositeFactor(Group leftCompositeFactor1)
      if composite, this is the right composite factor
      Parameters:
      leftCompositeFactor1 -
    • getRightCompositeFactor

      public Group getRightCompositeFactor()
      if composite, this is the right composite factor
      Returns:
      right composite factor
    • setRightCompositeFactor

      public void setRightCompositeFactor(Group rightCompositeFactor1)
      if composite, this is the right composite factor
      Parameters:
      rightCompositeFactor1 -
    • getOwnerAttributeDef

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

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

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

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

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

      public void setOwnerStem(Stem ownerStem1)
      if this is a stem privilege, this is the owner stem
      Parameters:
      ownerStem1 -
    • 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 -
    • compareTo

      public int compareTo(MembershipPathNode membershipPathNode)
      Specified by:
      compareTo in interface Comparable<MembershipPathNode>
      See Also: