org.jboss.dna.connector.federation.merge
Class FederatedNode
java.lang.Object
org.jboss.dna.graph.commands.basic.BasicGraphCommand
org.jboss.dna.graph.commands.basic.BasicGetChildrenCommand
org.jboss.dna.graph.commands.basic.BasicGetNodeCommand
org.jboss.dna.connector.federation.merge.FederatedNode
- All Implemented Interfaces:
- Serializable, Comparable<org.jboss.dna.graph.commands.CreateNodeCommand>, org.jboss.dna.graph.cache.Cacheable, org.jboss.dna.graph.commands.ActsAsUpdate, org.jboss.dna.graph.commands.ActsOnPath, org.jboss.dna.graph.commands.ActsOnProperties, org.jboss.dna.graph.commands.CreateNodeCommand, org.jboss.dna.graph.commands.GetChildrenCommand, org.jboss.dna.graph.commands.GetNodeCommand, org.jboss.dna.graph.commands.GetPropertiesCommand, org.jboss.dna.graph.commands.GraphCommand
public class FederatedNode
- extends org.jboss.dna.graph.commands.basic.BasicGetNodeCommand
- implements org.jboss.dna.graph.commands.CreateNodeCommand
An in-memory (and temporary) representation of a federated node and it's merged properties and children.
- Author:
- Randall Hauch
- See Also:
- Serialized Form
|
Constructor Summary |
FederatedNode(org.jboss.dna.graph.properties.Path path,
UUID uuid)
Create a federated node given the path and UUID. |
| Methods inherited from class org.jboss.dna.graph.commands.basic.BasicGetNodeCommand |
getProperties, getPropertiesByName, setProperties, setProperty |
| Methods inherited from class org.jboss.dna.graph.commands.basic.BasicGetChildrenCommand |
addChild, getCachePolicy, getChildIdentityProperties, getChildren, getPath, getTimeLoaded, setCachePolicy, setNoChildren, setTimeLoaded |
| Methods inherited from class org.jboss.dna.graph.commands.basic.BasicGraphCommand |
createChildrenList, createChildrenList, createChildrenList, createChildrenList, getError, hasError, hasNoError, isCancelled, setCancelled, setError, setProperty, setProperty, setProperty |
| Methods inherited from interface org.jboss.dna.graph.commands.CreateNodeCommand |
getProperties |
| Methods inherited from interface org.jboss.dna.graph.commands.GraphCommand |
getError, hasError, hasNoError, isCancelled, setError |
| Methods inherited from interface org.jboss.dna.graph.commands.GetChildrenCommand |
addChild, setNoChildren |
| Methods inherited from interface org.jboss.dna.graph.cache.Cacheable |
getCachePolicy, getTimeLoaded, setCachePolicy |
| Methods inherited from interface org.jboss.dna.graph.cache.Cacheable |
getCachePolicy, getTimeLoaded, setCachePolicy |
DEFAULT_CONFLICT_BEHAVIOR
protected static final org.jboss.dna.graph.commands.NodeConflictBehavior DEFAULT_CONFLICT_BEHAVIOR
FederatedNode
public FederatedNode(org.jboss.dna.graph.properties.Path path,
UUID uuid)
- Create a federated node given the path and UUID.
- Parameters:
path - the path of the federated node; may not be nulluuid - the UUID of the federated node; may not be null
getUuid
public UUID getUuid()
- Get the UUID for this federated node.
- Returns:
- the UUID; never null
setUuid
public void setUuid(UUID uuid)
- Parameters:
uuid - Sets uuid to the specified value.
getMergePlan
public MergePlan getMergePlan()
- Get the merge plan for this federated node
- Returns:
- the merge plan, or null if there is no merge plan
setMergePlan
public void setMergePlan(MergePlan mergePlan)
- Set the merge plan for this federated node
- Parameters:
mergePlan - the new merge plan for this federated node; may be null
compareTo
public int compareTo(org.jboss.dna.graph.commands.CreateNodeCommand that)
-
- Specified by:
compareTo in interface Comparable<org.jboss.dna.graph.commands.CreateNodeCommand>
- See Also:
Comparable.compareTo(java.lang.Object)
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 org.jboss.dna.graph.commands.basic.BasicGetNodeCommand
- See Also:
Object.toString()
getConflictBehavior
public org.jboss.dna.graph.commands.NodeConflictBehavior getConflictBehavior()
-
- Specified by:
getConflictBehavior in interface org.jboss.dna.graph.commands.CreateNodeCommand
- See Also:
CreateNodeCommand.getConflictBehavior()
setConflictBehavior
public void setConflictBehavior(org.jboss.dna.graph.commands.NodeConflictBehavior nodeConflictBehavior)
- Set the behavior when node conflicts arise.
- Parameters:
nodeConflictBehavior - the conflict behavior, or null if the default should be used
Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.