|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.dna.graph.request.processor.RequestProcessor
org.jboss.dna.graph.connector.path.PathRequestProcessor
public class PathRequestProcessor
The default implementation of the RequestProcessor
for path repositories.
Constructor Summary | |
---|---|
PathRequestProcessor(ExecutionContext context,
PathRepository repository,
Observer observer,
boolean updatesAllowed,
PathRepositoryTransaction txn)
|
Method Summary | |
---|---|
PathRepositoryTransaction |
getTransaction()
Returns the transaction associated with this request processor. |
void |
process(AccessQueryRequest request)
Process a request to query a workspace with an access query, which is is a low-level atomic query that is part of a larger, planned query. |
void |
process(CloneBranchRequest request)
Process a request to clone a branch into a new workspace. |
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(FullTextSearchRequest request)
Process a request to search a workspace. |
void |
process(GetWorkspacesRequest request)
Process a request to get the information about the available workspaces. |
void |
process(LockBranchRequest request)
Process a request to lock a node or branch within a workspace The default implementation of this method does nothing, as most connectors will not support locking. |
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(ReadNodeRequest request)
Process a request to read the properties and children of a node at the supplied location. |
void |
process(UnlockBranchRequest request)
Process a request to unlock a node or branch within a workspace The default implementation of this method does nothing, as most connectors will not support locking. |
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, getChanges, getExecutionContext, getNowInUtc, getSourceName, notifyObserverOfChanges, process, 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 |
Constructor Detail |
---|
public PathRequestProcessor(ExecutionContext context, PathRepository repository, Observer observer, boolean updatesAllowed, PathRepositoryTransaction txn)
Method Detail |
---|
public void process(VerifyWorkspaceRequest request)
RequestProcessor
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the requestpublic void process(GetWorkspacesRequest request)
RequestProcessor
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the requestpublic void process(CreateWorkspaceRequest request)
RequestProcessor
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the requestpublic void process(CloneBranchRequest request)
RequestProcessor
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the requestpublic void process(CloneWorkspaceRequest request)
RequestProcessor
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the requestpublic void process(DestroyWorkspaceRequest request)
RequestProcessor
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the requestpublic void process(CopyBranchRequest request)
RequestProcessor
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the copy requestpublic void process(CreateNodeRequest request)
RequestProcessor
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the create requestpublic void process(DeleteBranchRequest request)
RequestProcessor
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the delete requestpublic void process(MoveBranchRequest request)
RequestProcessor
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the move requestpublic void process(ReadNodeRequest request)
RequestProcessor
This method does nothing if the request is null. Unless overridden, this method converts the single request into a
ReadAllChildrenRequest
and a ReadAllPropertiesRequest
.
process
in class RequestProcessor
request
- the read requestpublic void process(ReadAllChildrenRequest request)
RequestProcessor
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the read requestpublic void process(ReadAllPropertiesRequest request)
RequestProcessor
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the read requestpublic void process(AccessQueryRequest request)
RequestProcessor
The default implementation of this method behaves as though the implementation does not support queries by setting an error on the request
process
in class RequestProcessor
request
- the requestpublic void process(FullTextSearchRequest request)
RequestProcessor
The default implementation of this method behaves as though the implementation does not support full-text searches by setting an error on the request
process
in class RequestProcessor
request
- the requestpublic void process(UpdatePropertiesRequest request)
RequestProcessor
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the remove requestpublic void process(LockBranchRequest request)
RequestProcessor
The default implementation of this method does nothing, as most connectors will not support locking. Any implementation of this method should do nothing if the request is null.
Implementations that do support locking should throw a LockFailedException
if the request could not be fulfilled.
process
in class RequestProcessor
request
- the requestpublic void process(UnlockBranchRequest request)
RequestProcessor
The default implementation of this method does nothing, as most connectors will not support locking. Any implementation of this method should do nothing if the request is null.
process
in class RequestProcessor
request
- the requestpublic PathRepositoryTransaction getTransaction()
committed
or rolled back
.
PathRepositoryTransaction.commit()
,
PathRepositoryTransaction.rollback()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |