|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.dna.graph.request.Request
org.jboss.dna.graph.request.CreateNodeRequest
public class CreateNodeRequest

Instruction to create the node under the specified location. This command will create the node and set the initial properties.
| Field Summary | |
|---|---|
static NodeConflictBehavior |
DEFAULT_CONFLICT_BEHAVIOR
|
| Constructor Summary | |
|---|---|
CreateNodeRequest(Location parentLocation,
String workspaceName,
Name childName,
Iterable<Property> properties)
Create a request to create a node with the given properties under the supplied location. |
|
CreateNodeRequest(Location parentLocation,
String workspaceName,
Name childName,
Iterator<Property> properties)
Create a request to create a node with the given properties under the supplied location. |
|
CreateNodeRequest(Location parentLocation,
String workspaceName,
Name childName,
NodeConflictBehavior conflictBehavior,
Iterable<Property> properties)
Create a request to create a node with the given properties under the supplied location. |
|
CreateNodeRequest(Location parentLocation,
String workspaceName,
Name childName,
NodeConflictBehavior conflictBehavior,
Iterator<Property> properties)
Create a request to create a node with the given properties under the supplied location. |
|
CreateNodeRequest(Location parentLocation,
String workspaceName,
Name childName,
NodeConflictBehavior conflictBehavior,
Property... properties)
Create a request to create a node with the given properties under the supplied location. |
|
CreateNodeRequest(Location parentLocation,
String workspaceName,
Name childName,
Property... properties)
Create a request to create a node with the given properties under the supplied location. |
|
| Method Summary | |
|---|---|
Location |
changedLocation()
Get the location of the top-most node that is to be changed by this request. |
boolean |
changes(String workspace,
Path path)
Determine if this request changes the branch at the given path. |
NodeConflictBehavior |
conflictBehavior()
Get the expected behavior when copying the branch and the destination already has a node with the same
name. |
boolean |
equals(Object obj)
|
Location |
getActualLocationOfNode()
Get the actual location of the node that was created. |
String |
inWorkspace()
Get the name of the workspace in which the node is to be createde |
boolean |
isReadOnly()
Return whether this request only reads information. |
Iterator<Property> |
iterator()
|
Name |
named()
Get the name for the new child. |
Collection<Property> |
properties()
Get the properties for the node. |
void |
setActualLocationOfNode(Location actual)
Sets the actual and complete location of the node being created. |
String |
toString()
|
Location |
under()
Get the location defining the parent of the new node that is to be created. |
| Methods inherited from class org.jboss.dna.graph.request.Request |
|---|
cancel, getError, hasError, isCancelled, setError |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final NodeConflictBehavior DEFAULT_CONFLICT_BEHAVIOR
| Constructor Detail |
|---|
public CreateNodeRequest(Location parentLocation,
String workspaceName,
Name childName,
Property... properties)
parentLocation - the location of the existing parent node, under which the new child should be createdworkspaceName - the name of the workspace containing the parentchildName - the name of the new child to create under the existing parentproperties - the properties of the new node, which should include any identification
properties for the new node
IllegalArgumentException - if the location, workspace name, or child name is null
public CreateNodeRequest(Location parentLocation,
String workspaceName,
Name childName,
Iterable<Property> properties)
parentLocation - the location of the existing parent node, under which the new child should be createdworkspaceName - the name of the workspace containing the parentchildName - the name of the new child to create under the existing parentproperties - the properties of the new node, which should include any identification
properties for the new node
IllegalArgumentException - if the location, workspace name, or child name is null
public CreateNodeRequest(Location parentLocation,
String workspaceName,
Name childName,
Iterator<Property> properties)
parentLocation - the location of the existing parent node, under which the new child should be createdworkspaceName - the name of the workspace containing the parentchildName - the name of the new child to create under the existing parentproperties - the properties of the new node, which should include any identification
properties for the new node
IllegalArgumentException - if the location, workspace name, or child name is null
public CreateNodeRequest(Location parentLocation,
String workspaceName,
Name childName,
NodeConflictBehavior conflictBehavior,
Property... properties)
parentLocation - the location of the existing parent node, under which the new child should be createdworkspaceName - the name of the workspace containing the parentchildName - the name of the new child to create under the existing parentproperties - the properties of the new node, which should include any identification
properties for the new nodeconflictBehavior - the expected behavior if an equivalently-named child already exists under the into
location
IllegalArgumentException - if the location, workspace name, child name, or the conflict behavior is null
public CreateNodeRequest(Location parentLocation,
String workspaceName,
Name childName,
NodeConflictBehavior conflictBehavior,
Iterable<Property> properties)
parentLocation - the location of the existing parent node, under which the new child should be createdworkspaceName - the name of the workspace containing the parentchildName - the name of the new child to create under the existing parentproperties - the properties of the new node, which should include any identification
properties for the new nodeconflictBehavior - the expected behavior if an equivalently-named child already exists under the into
location
IllegalArgumentException - if the location, workspace name, child name, or the conflict behavior is null
public CreateNodeRequest(Location parentLocation,
String workspaceName,
Name childName,
NodeConflictBehavior conflictBehavior,
Iterator<Property> properties)
parentLocation - the location of the existing parent node, under which the new child should be createdworkspaceName - the name of the workspace containing the parentchildName - the name of the new child to create under the existing parentproperties - the properties of the new node, which should include any identification
properties for the new nodeconflictBehavior - the expected behavior if an equivalently-named child already exists under the into
location
IllegalArgumentException - if the location, workspace name, child name, or the conflict behavior is null| Method Detail |
|---|
public Location under()
public String inWorkspace()
public Name named()
public Iterator<Property> iterator()
iterator in interface Iterable<Property>Iterable.iterator()public Collection<Property> properties()
location has identification properties, the resulting
properties will include the identification properties.
public NodeConflictBehavior conflictBehavior()
destination already has a node with the same
name.
public boolean isReadOnly()
isReadOnly in class RequestRequest.isReadOnly()public void setActualLocationOfNode(Location actual)
path.
actual - the actual location of the node being created, or null if the current location should be
used
IllegalArgumentException - if the actual location does not represent the same
location as the current location, or if the actual location does not have a path.public Location getActualLocationOfNode()
public boolean changes(String workspace,
Path path)
changes in interface ChangeRequestworkspace - the name of the workspace; may not be nullpath - the path; may not be null
ChangeRequest.changes(java.lang.String, org.jboss.dna.graph.property.Path)public Location changedLocation()
changedLocation in interface ChangeRequestChangeRequest.changedLocation()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||