|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.connector.inmemory.InMemoryRepository
@NotThreadSafe public class InMemoryRepository
Constructor Summary | |
---|---|
InMemoryRepository(String name,
UUID rootNodeUUID)
|
Method Summary | |
---|---|
Node |
copyNode(ExecutionContext context,
Node original,
Node newParent,
boolean recursive)
|
Node |
createNode(ExecutionContext context,
Node parentNode,
Name name,
UUID uuid)
Create a new node with the supplied name, as a child of the supplied parent. |
Node |
createNode(ExecutionContext context,
String pathToNewNode)
Create a node at the supplied path. |
ReadWriteLock |
getLock()
|
Path |
getLowestExistingPath(Path path)
Find the lowest existing node along the path. |
String |
getName()
|
Node |
getNode(ExecutionContext context,
String path)
|
Node |
getNode(Path path)
Find a node with the given path. |
Node |
getNode(UUID uuid)
|
Node |
getRoot()
|
void |
moveNode(ExecutionContext context,
Node node,
Node newParent)
Move the supplied node to the new parent. |
void |
removeNode(ExecutionContext context,
Node node)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InMemoryRepository(String name, UUID rootNodeUUID)
Method Detail |
---|
public ReadWriteLock getLock()
public String getName()
public Node getRoot()
public Node getNode(UUID uuid)
public Node getNode(ExecutionContext context, String path)
public Node getNode(Path path)
path
- the path to the node; may not be null
public Path getLowestExistingPath(Path path)
path
- the path to the node; may not be null
public void removeNode(ExecutionContext context, Node node)
public Node createNode(ExecutionContext context, String pathToNewNode)
context
- the environment; may not be nullpathToNewNode
- the path to the new node; may not be null
public Node createNode(ExecutionContext context, Node parentNode, Name name, UUID uuid)
context
- the execution contextparentNode
- the parent node; may not be nullname
- the name; may not be nulluuid
- the UUID of the node, or null if the UUID is to be generated
public void moveNode(ExecutionContext context, Node node, Node newParent)
index
to be correct in the new parent.
context
- node
- the node to be moved; may not be the root
newParent
- the new parent; may not be the root
public Node copyNode(ExecutionContext context, Node original, Node newParent, boolean recursive)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |