org.jboss.dna.connector.federation.executor
Class ProjectedCreateNodeCommand

java.lang.Object
  extended by org.jboss.dna.connector.federation.executor.ActsOnProjectedPathCommand<CreateNodeCommand>
      extended by org.jboss.dna.connector.federation.executor.ProjectedCreateNodeCommand
All Implemented Interfaces:
Comparable<CreateNodeCommand>, ActsAsUpdate, ActsOnPath, ActsOnProperties, CreateNodeCommand, GraphCommand

public class ProjectedCreateNodeCommand
extends ActsOnProjectedPathCommand<CreateNodeCommand>
implements CreateNodeCommand

Author:
Randall Hauch

Constructor Summary
ProjectedCreateNodeCommand(CreateNodeCommand delegate, Path projectedPath)
           
 
Method Summary
 int compareTo(CreateNodeCommand that)
          
 NodeConflictBehavior getConflictBehavior()
          Get the desired behavior when a node at the target path already exists.
 Collection<Property> getProperties()
          Get the properties.
 
Methods inherited from class org.jboss.dna.connector.federation.executor.ActsOnProjectedPathCommand
getError, getPath, hasError, hasNoError, isCancelled, setError
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.dna.graph.commands.GraphCommand
getError, hasError, hasNoError, isCancelled, setError
 

Constructor Detail

ProjectedCreateNodeCommand

public ProjectedCreateNodeCommand(CreateNodeCommand delegate,
                                  Path projectedPath)
Method Detail

getConflictBehavior

public NodeConflictBehavior getConflictBehavior()
Get the desired behavior when a node at the target path already exists.

Specified by:
getConflictBehavior in interface CreateNodeCommand
Returns:
the desired behavior; never null
See Also:
CreateNodeCommand.getConflictBehavior()

getProperties

public Collection<Property> getProperties()
Get the properties. Any property with no values will be removed.

Specified by:
getProperties in interface ActsOnProperties
Specified by:
getProperties in interface CreateNodeCommand
Returns:
the properties
See Also:
CreateNodeCommand.getProperties()

compareTo

public int compareTo(CreateNodeCommand that)

Specified by:
compareTo in interface Comparable<CreateNodeCommand>
See Also:
Comparable.compareTo(java.lang.Object)


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.