|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.graph.request.processor.RequestProcessor org.jboss.dna.connector.svn.SVNRepositoryRequestProcessor
public class SVNRepositoryRequestProcessor
The RequestProcessor
implementation for the file subversion repository connector. This is the class that does the bulk
of the work in the subversion repository connector, since it processes all requests.
Nested Class Summary | |
---|---|
static class |
SVNRepositoryRequestProcessor.AddDirectory
root should be the last, previously created, parent folder. |
static class |
SVNRepositoryRequestProcessor.AddFile
|
Method Summary | |
---|---|
ScmAction |
addDirectory(String root,
String path)
|
ScmAction |
addFile(String path,
String file,
byte[] content)
|
ScmAction |
copyDirectory(String path,
String newPath,
long revision)
|
ScmAction |
deleteDirectory(String path)
|
ScmAction |
deleteFile(String path,
String file)
|
org.tmatesoft.svn.core.io.SVNRepository |
getDefaultWorkspace()
Get the repository driver. |
long |
getLatestRevision(org.tmatesoft.svn.core.io.SVNRepository repos)
Get the last revision. |
void |
process(CloneWorkspaceRequest request)
Process a request to clone an existing workspace as a new workspace. |
void |
process(CopyBranchRequest request)
Process a request to copy a branch into another location. |
void |
process(CreateNodeRequest request)
Process a request to create a node at a specified location. |
void |
process(CreateWorkspaceRequest request)
Process a request to create a new workspace. |
void |
process(DeleteBranchRequest request)
Process a request to delete a branch at a specified location. |
void |
process(DestroyWorkspaceRequest request)
Process a request to permanently destroy a workspace. |
void |
process(GetWorkspacesRequest request)
Process a request to get the information about the available workspaces. |
void |
process(MoveBranchRequest request)
Process a request to move a branch at a specified location into a different location. |
void |
process(ReadAllChildrenRequest request)
Process a request to read all of the children of a node. |
void |
process(ReadAllPropertiesRequest request)
Process a request to read the properties of a node at the supplied location. |
void |
process(RenameNodeRequest request)
Process a request to rename a node specified location into a different location. |
void |
process(UpdatePropertiesRequest request)
Process a request to remove the specified properties from a node. |
void |
process(VerifyWorkspaceRequest request)
Process a request to verify a named workspace. |
Methods inherited from class org.jboss.dna.graph.request.processor.RequestProcessor |
---|
close, getExecutionContext, getSourceName, process, process, process, process, process, process, process, process, process, process, process |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void process(ReadAllChildrenRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the read requestRequestProcessor.process(org.jboss.dna.graph.request.ReadAllChildrenRequest)
public void process(ReadAllPropertiesRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the read requestRequestProcessor.process(org.jboss.dna.graph.request.ReadAllPropertiesRequest)
public void process(CreateNodeRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the create requestRequestProcessor.process(org.jboss.dna.graph.request.CreateNodeRequest)
public void process(UpdatePropertiesRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the remove requestRequestProcessor.process(org.jboss.dna.graph.request.UpdatePropertiesRequest)
public void process(CopyBranchRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the copy requestRequestProcessor.process(org.jboss.dna.graph.request.CopyBranchRequest)
public void process(DeleteBranchRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the delete requestRequestProcessor.process(org.jboss.dna.graph.request.DeleteBranchRequest)
public void process(MoveBranchRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the move requestRequestProcessor.process(org.jboss.dna.graph.request.MoveBranchRequest)
public void process(RenameNodeRequest request)
This method does nothing if the request is null. Unless overridden, this method converts the rename into a
move
. However, this only works if the request
has a path
for its location
. (If not, this method throws an UnsupportedOperationException
and
must be overridden.)
process
in class RequestProcessor
request
- the rename requestRequestProcessor.process(org.jboss.dna.graph.request.RenameNodeRequest)
public void process(VerifyWorkspaceRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the requestRequestProcessor.process(org.jboss.dna.graph.request.VerifyWorkspaceRequest)
public void process(GetWorkspacesRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the requestRequestProcessor.process(org.jboss.dna.graph.request.GetWorkspacesRequest)
public void process(CloneWorkspaceRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the requestRequestProcessor.process(org.jboss.dna.graph.request.CloneWorkspaceRequest)
public void process(CreateWorkspaceRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the requestRequestProcessor.process(org.jboss.dna.graph.request.CreateWorkspaceRequest)
public void process(DestroyWorkspaceRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the requestRequestProcessor.process(org.jboss.dna.graph.request.DestroyWorkspaceRequest)
public org.tmatesoft.svn.core.io.SVNRepository getDefaultWorkspace()
public long getLatestRevision(org.tmatesoft.svn.core.io.SVNRepository repos) throws Exception
repos
-
Exception
public ScmAction addDirectory(String root, String path)
addDirectory
in interface ScmActionFactory
ScmActionFactory.addDirectory(java.lang.String, java.lang.String)
public ScmAction addFile(String path, String file, byte[] content)
addFile
in interface ScmActionFactory
ScmActionFactory.addFile(java.lang.String, java.lang.String, byte[])
public ScmAction copyDirectory(String path, String newPath, long revision)
copyDirectory
in interface ScmActionFactory
ScmActionFactory.copyDirectory(java.lang.String, java.lang.String, long)
public ScmAction deleteDirectory(String path)
deleteDirectory
in interface ScmActionFactory
ScmActionFactory.deleteDirectory(java.lang.String)
public ScmAction deleteFile(String path, String file)
deleteFile
in interface ScmActionFactory
ScmActionFactory.deleteFile(java.lang.String, java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |