edu.internet2.middleware.grouper.membership
Class MembershipPathNode

java.lang.Object
  extended by 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

Author:
mchyzer

Constructor Summary
MembershipPathNode()
          default constructor
MembershipPathNode(Field field, AttributeDef theOwnerAttributeDef)
          constructor for attributeDef path code
MembershipPathNode(Field field, Group theOwnerGroup)
          constructor for group path code
MembershipPathNode(Field field, Group ownerGroup, CompositeType compositeType, Group theLeftCompositeFactor, Group theRightCompositeFactor, Group theOtherFactor)
          construct a composite group node
MembershipPathNode(Field field, Stem theOwnerStem)
          constructor for stem path code
 
Method Summary
 int compareTo(MembershipPathNode membershipPathNode)
           
 boolean equals(Object obj)
           
 CompositeType getCompositeType()
          if composite, this is the right composite factor
 Group getLeftCompositeFactor()
          if composite, this is the right composite factor
 MembershipOwnerType getMembershipOwnerType()
          what type e.g.
 Group getOtherFactor()
          this is the factor not in the path
 AttributeDef getOwnerAttributeDef()
          if this is an attributeDef privilege, this is the owner attribute def
 Group getOwnerGroup()
          if this is a list or group privilege, this is the owner group
 Stem getOwnerStem()
          if this is a stem privilege, this is the owner stem
 Group getRightCompositeFactor()
          if composite, this is the right composite factor
 int hashCode()
           
 boolean isComposite()
          if this is a composite group
 void setComposite(boolean composite1)
          if this is a composite group
 void setCompositeType(CompositeType compositeType1)
          if composite, this is the right composite factor
 void setLeftCompositeFactor(Group leftCompositeFactor1)
          if composite, this is the right composite factor
 void setMembershipOwnerType(MembershipOwnerType membershipOwnerType1)
          what type e.g.
 void setOtherFactor(Group otherFactor1)
          this is the factor not in the path
 void setOwnerAttributeDef(AttributeDef ownerAttributeDef1)
          if this is an attributeDef privilege, this is the owner attribute def
 void setOwnerGroup(Group ownerGroup1)
          if this is a list or group privilege, this is the owner group
 void setOwnerStem(Stem ownerStem1)
          if this is a stem privilege, this is the owner stem
 void setRightCompositeFactor(Group rightCompositeFactor1)
          if composite, this is the right composite factor
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

hashCode

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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

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

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:
Comparable.compareTo(Object)