public class GraphNode extends Object
Constructor and Description |
---|
GraphNode(GrouperObject grouperObject)
General constructor for a GraphNode containing a grouper Object.
|
GraphNode(GrouperObject grouperObject,
boolean isStartNode)
Constructor that also marks the node as the starting node for the graph
|
Modifier and Type | Method and Description |
---|---|
void |
addChildNode(GraphNode childNode)
Adds a child node to the collection
|
void |
addObjectTypeName(String objectTypeName)
Adds one object type name to the node's current list.
|
void |
addParentNode(GraphNode parentNode)
adds a parent node to the collection
|
boolean |
equals(Object obj)
Compares two nodes and considers them equal if they both hold the same GrouperObject.
|
long |
getAllMemberCount()
The total member count as set by the caller.
|
Set<GraphNode> |
getChildNodes()
Gets the child nodes linked to this node.
|
long |
getDirectMemberCount()
the direct member count as set by the caller
|
long |
getDistanceFromStartNode()
Returns the number of hops from the starting node to this node.
|
GrouperObject |
getGrouperObject()
returns the underlying GrouperObject value
|
String |
getGrouperObjectId()
helper method to get the id of the underlying GrouperObject
|
String |
getGrouperObjectName()
Helper method to get the id of the underlying GrouperObject
|
List<String> |
getObjectTypeNames()
the grouper object types for a group or stem, as set by the creator of this node
|
Set<GraphNode> |
getParentNodes()
Gets the parent nodes linked to this node.
|
StyleObjectType |
getStyleObjectType()
gets the style object type enum
|
int |
hashCode()
Computes the hashCode based on the contained GrouperObject
|
boolean |
isComplementGroup()
True if the underlying Grouper object is group the has a composite type of COMPLEMENT
|
boolean |
isGroup()
True if the underlying Grouper object is a
Group |
boolean |
isIntersectGroup()
True if the underlying Grouper object is group the has a composite type of INTERSECT
|
boolean |
isLoaderGroup()
True if the underlying Grouper object is a group set up
as a Grouper Loader job (either SQL or LDAP).
|
boolean |
isProvisionerTarget()
True if the underlying Grouper object is a
GrouperObjectProvisionerWrapper |
boolean |
isSimpleLoaderGroup()
True if the underlying Grouper object is a group set up
as a SQL_SIMPLE or LDAP_SIMPLE Grouper Loader job
|
boolean |
isStartNode()
True if this is the starting node.
|
boolean |
isStem()
True if the underlying Grouper object is a
Stem |
boolean |
isSubject()
True if the underlying Grouper object is a
GrouperObjectSubjectWrapper |
boolean |
isVisited()
virtual method that returns true if both parents and children have been visited
|
boolean |
isVisitedChildren()
Returns whether the child nodes have been visited.
|
boolean |
isVisitedParents()
returns whether the parent nodes have been visited.
|
void |
setAllMemberCount(long allMemberCount)
sets the total member count for this node
|
void |
setDirectMemberCount(long directMemberCount)
sets the direct member count for this node.
|
void |
setDistanceFromStartNode(long distanceFromStartNode)
Sets the number of hops from the starting node to this node.
|
void |
setObjectTypeNames(List<String> objectTypeNames)
sets the list of grouper object type names
|
void |
setStartNode(boolean startNode)
sets whether this is the start node
|
void |
setVisitedChildren(boolean visitedChildren)
marks this node as having visited all its child nodes
|
void |
setVisitedParents(boolean visitedParents)
marks this node as having visited all its parent nodes
|
String |
toString() |
public GraphNode(GrouperObject grouperObject, boolean isStartNode)
grouperObject
- isStartNode
- public GraphNode(GrouperObject grouperObject)
grouperObject
- public boolean equals(Object obj)
public int hashCode()
public GrouperObject getGrouperObject()
public long getAllMemberCount()
public List<String> getObjectTypeNames()
public long getDirectMemberCount()
public void setAllMemberCount(long allMemberCount)
allMemberCount
- member countpublic void setDirectMemberCount(long directMemberCount)
directMemberCount
- member countpublic void setObjectTypeNames(List<String> objectTypeNames)
objectTypeNames
- public void addObjectTypeName(String objectTypeName)
objectTypeName
- public boolean isVisited()
public boolean isVisitedParents()
public void setVisitedParents(boolean visitedParents)
visitedParents
- public boolean isVisitedChildren()
public void setVisitedChildren(boolean visitedChildren)
visitedChildren
- public Set<GraphNode> getParentNodes()
public void addParentNode(GraphNode parentNode)
parentNode
- parent node to addpublic Set<GraphNode> getChildNodes()
public void addChildNode(GraphNode childNode)
childNode
- child node to addpublic long getDistanceFromStartNode()
public void setDistanceFromStartNode(long distanceFromStartNode)
distanceFromStartNode
- public boolean isStem()
Stem
public boolean isGroup()
Group
public boolean isSubject()
GrouperObjectSubjectWrapper
public boolean isLoaderGroup()
public boolean isSimpleLoaderGroup()
public boolean isProvisionerTarget()
GrouperObjectProvisionerWrapper
public boolean isIntersectGroup()
public boolean isComplementGroup()
public boolean isStartNode()
public void setStartNode(boolean startNode)
startNode
- flag whether this is the starting nodepublic StyleObjectType getStyleObjectType()
public String getGrouperObjectId()
public String getGrouperObjectName()
Copyright © 2016 Internet2. All rights reserved.