|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.graph.request.processor.RequestProcessor
org.modeshape.graph.connector.map.MapRequestProcessor
org.modeshape.connector.store.jpa.model.simple.SimpleRequestProcessor
public class SimpleRequestProcessor

Extension of the MapRequestProcessor that provides a process(ReadBranchRequest) implementation optimized for
the simple JPA model. This class also provides some JPA-specific functionality for the ability to control
whether creating workspaces is allowed.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.modeshape.graph.request.processor.RequestProcessor |
|---|
RequestProcessor.LocationWithDepth |
| Constructor Summary | |
|---|---|
SimpleRequestProcessor(ExecutionContext context,
SimpleJpaRepository repository,
Observer observer,
boolean updatesAllowed)
|
|
| Method Summary | |
|---|---|
void |
close()
Close this processor, allowing it to clean up any open resources. |
void |
process(CloneWorkspaceRequest request)
Process a request to clone an existing workspace as a new workspace. |
void |
process(CollectGarbageRequest request)
Process a request to collect garbage. |
void |
process(CreateWorkspaceRequest request)
Process a request to create a new workspace. |
void |
process(ReadBranchRequest request)
Override the default handling for a read branch request to optimize the
queries involved. |
| Methods inherited from class org.modeshape.graph.connector.map.MapRequestProcessor |
|---|
getActualLocation, getTargetNode, getWorkspace, process, process, process, process, process, process, process, process, process, process, process, process, process, process, process, updatesAllowed |
| Methods inherited from class org.modeshape.graph.request.processor.RequestProcessor |
|---|
absoluteMaximumDepthForBranchReads, completeRequest, getChanges, getDefaultCachePolicy, getExecutionContext, getNowInUtc, getSourceName, includeChildrenInSubgraph, notifyObserverOfChanges, process, process, process, process, process, process, process, process, process, process, process, process, process, processUnknownRequest, recordChange, setCacheableInfo, setCacheableInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleRequestProcessor(ExecutionContext context,
SimpleJpaRepository repository,
Observer observer,
boolean updatesAllowed)
| Method Detail |
|---|
public void close()
RequestProcessor
close in class RequestProcessorpublic void process(ReadBranchRequest request)
default handling for a read branch request to optimize the
queries involved.
process in class RequestProcessorrequest - the request to readpublic void process(CreateWorkspaceRequest request)
MapRequestProcessorThis method does nothing if the request is null.
process in class MapRequestProcessorrequest - the requestRequestProcessor.process(org.modeshape.graph.request.CreateWorkspaceRequest)public void process(CloneWorkspaceRequest request)
MapRequestProcessorThis method does nothing if the request is null.
process in class MapRequestProcessorrequest - the requestRequestProcessor.process(org.modeshape.graph.request.CloneWorkspaceRequest)public void process(CollectGarbageRequest request)
The default implementation of this method does nothing.
process in class RequestProcessorrequest - the requestRequestProcessor.process(org.modeshape.graph.request.CollectGarbageRequest)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||