|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.connector.base.PathWorkspace<PathNode>
org.modeshape.connector.svn.SvnWorkspace
public class SvnWorkspace
Workspace implementation for SVN repository connector
Nested Class Summary | |
---|---|
protected class |
SvnWorkspace.SvnCommand
|
protected class |
SvnWorkspace.SvnCompositeCommand
|
protected class |
SvnWorkspace.SvnPutContentCommand
|
protected class |
SvnWorkspace.SvnPutFileCommand
|
protected class |
SvnWorkspace.SvnPutFolderCommand
|
protected class |
SvnWorkspace.SvnRemoveCommand
|
Nested classes/interfaces inherited from class org.modeshape.graph.connector.base.PathWorkspace |
---|
PathWorkspace.ChangeCommand<NodeType extends PathNode> |
Field Summary | |
---|---|
protected static byte[] |
EMPTY_BYTE_ARRAY
|
Fields inherited from class org.modeshape.graph.connector.base.PathWorkspace |
---|
pathFactory |
Constructor Summary | |
---|---|
SvnWorkspace(String name,
SvnWorkspace originalToClone,
org.tmatesoft.svn.core.io.SVNRepository workspaceRoot)
|
|
SvnWorkspace(SvnRepository repository,
org.tmatesoft.svn.core.io.SVNRepository workspaceRoot,
String name,
UUID rootNodeUuid)
|
Method Summary | |
---|---|
void |
cachePolicyChanged(NodeCachePolicyChangedEvent<Path,PathNode> event)
Notifies this workspace that the cache policy has changed and the cache should be reset. |
void |
commit(List<PathWorkspace.ChangeCommand<PathNode>> commands)
Successively (and in order) apply the changes from the list of pending commands All validation for each of the objects (including validation of resource availability in the underlying persistent store) should be performed prior to invoking this method. |
PathWorkspace.ChangeCommand<PathNode> |
createMoveCommand(PathNode source,
PathNode target)
Create a change command that represents the movement of a node. |
SvnWorkspace.SvnCommand |
createPutCommand(PathNode previousNode,
PathNode node)
Create a change command for the required update to the given node |
SvnWorkspace.SvnCommand |
createRemoveCommand(Path path)
Create a change command for the removal of the given node and its descendants |
NodeCache<Path,PathNode> |
getCache()
|
PathNode |
getNode(Path path)
Get the node with the supplied path. |
protected org.tmatesoft.svn.core.SVNNodeKind |
getNodeKind(ExecutionContext context,
Path path,
String repositoryRootUrl)
|
PathNode |
getRootNode()
Get the root node in this workspace. |
protected boolean |
readNode(ExecutionContext context,
String workspaceName,
Path requestedPath,
List<Property> properties,
List<Path.Segment> children)
|
protected void |
validate(PathNode node)
|
Methods inherited from class org.modeshape.graph.connector.base.PathWorkspace |
---|
getName, getRootNodeUuid, hasNodeCache, moveNode, putNode, removeAll, removeNode, toString, verifyNodeExists |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final byte[] EMPTY_BYTE_ARRAY
Constructor Detail |
---|
public SvnWorkspace(SvnRepository repository, org.tmatesoft.svn.core.io.SVNRepository workspaceRoot, String name, UUID rootNodeUuid)
public SvnWorkspace(String name, SvnWorkspace originalToClone, org.tmatesoft.svn.core.io.SVNRepository workspaceRoot)
Method Detail |
---|
public void cachePolicyChanged(NodeCachePolicyChangedEvent<Path,PathNode> event)
cachePolicyChanged
in interface NodeCachePolicyChangedListener<Path,PathNode>
event
- the cache policy changed event; may not be nullpublic NodeCache<Path,PathNode> getCache()
getCache
in interface NodeCachingWorkspace<Path,PathNode>
public PathNode getRootNode()
PathWorkspace
getRootNode
in class PathWorkspace<PathNode>
public PathNode getNode(Path path)
PathWorkspace
getNode
in class PathWorkspace<PathNode>
path
- the path to the node
protected boolean readNode(ExecutionContext context, String workspaceName, Path requestedPath, List<Property> properties, List<Path.Segment> children) throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
protected org.tmatesoft.svn.core.SVNNodeKind getNodeKind(ExecutionContext context, Path path, String repositoryRootUrl) throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
protected void validate(PathNode node)
public PathWorkspace.ChangeCommand<PathNode> createMoveCommand(PathNode source, PathNode target)
PathWorkspace
put command
should be used to reflect these changes.
createMoveCommand
in class PathWorkspace<PathNode>
source
- the original version of the node; may not be nulltarget
- the new version of the node; may not be null
PathWorkspace.ChangeCommand
instance that reflects the changes to the nodePathWorkspace.createMoveCommand(PathNode, PathNode)
,
PathWorkspace.commit(List)
public SvnWorkspace.SvnCommand createPutCommand(PathNode previousNode, PathNode node)
PathWorkspace
createPutCommand
in class PathWorkspace<PathNode>
previousNode
- the prior version of the node; may be null if this is a new nodenode
- the new version of the node; may not be null
PathWorkspace.ChangeCommand
instance that reflects the changes to the nodePathWorkspace.commit(List)
public SvnWorkspace.SvnCommand createRemoveCommand(Path path)
PathWorkspace
createRemoveCommand
in class PathWorkspace<PathNode>
path
- the path to the node at the root of the branch to be removed; may not be null
PathWorkspace.ChangeCommand
instance that reflects the changes to the nodePathWorkspace.createPutCommand(PathNode, PathNode)
,
PathWorkspace.commit(List)
public void commit(List<PathWorkspace.ChangeCommand<PathNode>> commands)
PathWorkspace
All validation for each of the objects (including validation of resource availability in the underlying persistent store) should be performed prior to invoking this method.
commit
in class PathWorkspace<PathNode>
commands
- the list of commands to apply
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |