|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.graph.connector.path.AbstractWritablePathWorkspace org.jboss.dna.connector.filesystem.FileSystemRepository.FileSystemWorkspace
public class FileSystemRepository.FileSystemWorkspace
Writable workspace implementation for file system-backed workspaces
Constructor Summary | |
---|---|
FileSystemRepository.FileSystemWorkspace(String name,
ExecutionContext context,
File workspaceRoot)
|
Method Summary | |
---|---|
PathNode |
createNode(ExecutionContext context,
PathNode parentNode,
Name name,
Map<Name,Property> properties,
NodeConflictBehavior conflictBehavior)
Create a new node with the supplied name, as a child of the supplied parent. |
Path |
getLowestExistingPath(Path path)
Find the lowest existing node along the path. |
PathNode |
getNode(Path path)
Returns the node at the given path, if one exists of null if no exists at the given
path. |
PathNode |
moveNode(ExecutionContext context,
PathNode node,
Name desiredNewName,
WritablePathWorkspace originalWorkspace,
PathNode newParent,
PathNode beforeNode)
Move the supplied node to the new parent within this workspace. |
boolean |
removeNode(ExecutionContext context,
Path nodePath)
Removes the node at the given path |
PathNode |
setProperties(ExecutionContext context,
Path nodePath,
Map<Name,Property> properties)
Sets the given properties in a single operation, overwriting any previous properties for the same name. |
Methods inherited from class org.jboss.dna.graph.connector.path.AbstractWritablePathWorkspace |
---|
copyNode, createNode, getName, lockNode, query, removeProperties, search, unlockNode |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileSystemRepository.FileSystemWorkspace(String name, ExecutionContext context, File workspaceRoot)
Method Detail |
---|
public PathNode createNode(ExecutionContext context, PathNode parentNode, Name name, Map<Name,Property> properties, NodeConflictBehavior conflictBehavior)
WritablePathWorkspace
context
- the execution contextparentNode
- the parent node; may not be nullname
- the name; may not be nullproperties
- the properties for the new nodeconflictBehavior
- the expected behavior if an equivalently-named child already exists at the location
public boolean removeNode(ExecutionContext context, Path nodePath)
WritablePathWorkspace
context
- the context; may not be nullnodePath
- the path of the node to be removed
public PathNode setProperties(ExecutionContext context, Path nodePath, Map<Name,Property> properties)
WritablePathWorkspace
context
- the context; may not be nullnodePath
- the path to the node on which the properties should be setproperties
- the properties to set
public PathNode moveNode(ExecutionContext context, PathNode node, Name desiredNewName, WritablePathWorkspace originalWorkspace, PathNode newParent, PathNode beforeNode)
WritablePathWorkspace
index
to be correct in the new parent.
moveNode
in interface WritablePathWorkspace
moveNode
in class AbstractWritablePathWorkspace
node
- the node to be moved; may not be the workspace root nodedesiredNewName
- the new name for the node, if it is to be changed; may be nulloriginalWorkspace
- the workspace containing the node to be movednewParent
- the new parent; may not be the workspace root nodebeforeNode
- the node before which this new node should be placed
node
that reflects the new locationpublic Path getLowestExistingPath(Path path)
PathWorkspace
path
- the path to the node; may not be null
public PathNode getNode(Path path)
PathWorkspace
null
if no exists at the given
path.
path
- the path of the node to retrieve; may not be null
null
if no exists at the given
path.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |