org.jboss.dna.connector.federation.executor
Class SingleProjectionCommandExecutor
java.lang.Object
org.jboss.dna.graph.commands.executor.AbstractCommandExecutor
org.jboss.dna.connector.federation.executor.SingleProjectionCommandExecutor
- All Implemented Interfaces:
- org.jboss.dna.graph.commands.executor.CommandExecutor
@NotThreadSafe
public class SingleProjectionCommandExecutor
- extends org.jboss.dna.graph.commands.executor.AbstractCommandExecutor
- Author:
- Randall Hauch
|
Method Summary |
void |
close()
|
void |
execute(org.jboss.dna.graph.commands.CopyBranchCommand command)
|
void |
execute(org.jboss.dna.graph.commands.CopyNodeCommand command)
|
void |
execute(org.jboss.dna.graph.commands.CreateNodeCommand command)
|
void |
execute(org.jboss.dna.graph.commands.DeleteBranchCommand command)
|
void |
execute(org.jboss.dna.graph.commands.GetChildrenCommand command)
|
void |
execute(org.jboss.dna.graph.commands.GetNodeCommand command)
|
void |
execute(org.jboss.dna.graph.commands.GetPropertiesCommand command)
|
void |
execute(org.jboss.dna.graph.commands.MoveBranchCommand command)
|
void |
execute(org.jboss.dna.graph.commands.RecordBranchCommand command)
|
void |
execute(org.jboss.dna.graph.commands.SetPropertiesCommand command)
|
protected org.jboss.dna.graph.connectors.RepositoryConnection |
getConnection()
|
protected org.jboss.dna.graph.properties.Path |
getPathInRepository(org.jboss.dna.graph.properties.Path pathInSource)
|
protected org.jboss.dna.graph.properties.Path |
getPathInSource(org.jboss.dna.graph.properties.Path pathInRepository)
|
| Methods inherited from class org.jboss.dna.graph.commands.executor.AbstractCommandExecutor |
execute, execute, getCurrentTimeInUtc, getExecutionContext, getSourceName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleProjectionCommandExecutor
public SingleProjectionCommandExecutor(org.jboss.dna.graph.ExecutionContext context,
String sourceName,
Projection projection,
org.jboss.dna.graph.connectors.RepositoryConnectionFactory connectionFactory)
- Parameters:
context - the execution context in which the executor will be run; may not be nullsourceName - the name of the RepositorySource that is making use of this executor; may not be null or emptyprojection - the projection used for the cached information; may not be null and must have exactly one
ruleconnectionFactory - the factory for RepositoryConnection instances
SingleProjectionCommandExecutor
public SingleProjectionCommandExecutor(org.jboss.dna.graph.ExecutionContext context,
String sourceName,
org.jboss.dna.graph.properties.DateTime now,
Projection projection,
org.jboss.dna.graph.connectors.RepositoryConnectionFactory connectionFactory)
- Parameters:
context - the execution context in which the executor will be run; may not be nullsourceName - the name of the RepositorySource that is making use of this executor; may not be null or emptynow - the current time; may be null if the system time is to be usedprojection - the projection used for the cached information; may not be null and must have exactly one
ruleconnectionFactory - the factory for RepositoryConnection instances
getConnection
protected org.jboss.dna.graph.connectors.RepositoryConnection getConnection()
throws org.jboss.dna.graph.connectors.RepositorySourceException
- Throws:
org.jboss.dna.graph.connectors.RepositorySourceException
close
public void close()
-
- Specified by:
close in interface org.jboss.dna.graph.commands.executor.CommandExecutor- Overrides:
close in class org.jboss.dna.graph.commands.executor.AbstractCommandExecutor
- See Also:
AbstractCommandExecutor.close()
execute
public void execute(org.jboss.dna.graph.commands.GetChildrenCommand command)
throws org.jboss.dna.graph.connectors.RepositorySourceException
-
- Specified by:
execute in interface org.jboss.dna.graph.commands.executor.CommandExecutor- Overrides:
execute in class org.jboss.dna.graph.commands.executor.AbstractCommandExecutor
- Throws:
org.jboss.dna.graph.connectors.RepositorySourceException- See Also:
AbstractCommandExecutor.execute(org.jboss.dna.graph.commands.GetChildrenCommand)
execute
public void execute(org.jboss.dna.graph.commands.GetPropertiesCommand command)
throws org.jboss.dna.graph.connectors.RepositorySourceException
-
- Specified by:
execute in interface org.jboss.dna.graph.commands.executor.CommandExecutor- Overrides:
execute in class org.jboss.dna.graph.commands.executor.AbstractCommandExecutor
- Throws:
org.jboss.dna.graph.connectors.RepositorySourceException- See Also:
AbstractCommandExecutor.execute(org.jboss.dna.graph.commands.GetPropertiesCommand)
execute
public void execute(org.jboss.dna.graph.commands.GetNodeCommand command)
throws org.jboss.dna.graph.connectors.RepositorySourceException
-
- Specified by:
execute in interface org.jboss.dna.graph.commands.executor.CommandExecutor- Overrides:
execute in class org.jboss.dna.graph.commands.executor.AbstractCommandExecutor
- Throws:
org.jboss.dna.graph.connectors.RepositorySourceException- See Also:
AbstractCommandExecutor.execute(org.jboss.dna.graph.commands.GetNodeCommand)
execute
public void execute(org.jboss.dna.graph.commands.CreateNodeCommand command)
throws org.jboss.dna.graph.connectors.RepositorySourceException
-
- Specified by:
execute in interface org.jboss.dna.graph.commands.executor.CommandExecutor- Overrides:
execute in class org.jboss.dna.graph.commands.executor.AbstractCommandExecutor
- Throws:
org.jboss.dna.graph.connectors.RepositorySourceException- See Also:
AbstractCommandExecutor.execute(org.jboss.dna.graph.commands.CreateNodeCommand)
execute
public void execute(org.jboss.dna.graph.commands.SetPropertiesCommand command)
throws org.jboss.dna.graph.connectors.RepositorySourceException
-
- Specified by:
execute in interface org.jboss.dna.graph.commands.executor.CommandExecutor- Overrides:
execute in class org.jboss.dna.graph.commands.executor.AbstractCommandExecutor
- Throws:
org.jboss.dna.graph.connectors.RepositorySourceException- See Also:
AbstractCommandExecutor.execute(org.jboss.dna.graph.commands.SetPropertiesCommand)
execute
public void execute(org.jboss.dna.graph.commands.DeleteBranchCommand command)
throws org.jboss.dna.graph.connectors.RepositorySourceException
-
- Specified by:
execute in interface org.jboss.dna.graph.commands.executor.CommandExecutor- Overrides:
execute in class org.jboss.dna.graph.commands.executor.AbstractCommandExecutor
- Throws:
org.jboss.dna.graph.connectors.RepositorySourceException- See Also:
AbstractCommandExecutor.execute(org.jboss.dna.graph.commands.DeleteBranchCommand)
execute
public void execute(org.jboss.dna.graph.commands.MoveBranchCommand command)
throws org.jboss.dna.graph.connectors.RepositorySourceException
-
- Specified by:
execute in interface org.jboss.dna.graph.commands.executor.CommandExecutor- Overrides:
execute in class org.jboss.dna.graph.commands.executor.AbstractCommandExecutor
- Throws:
org.jboss.dna.graph.connectors.RepositorySourceException- See Also:
AbstractCommandExecutor.execute(org.jboss.dna.graph.commands.MoveBranchCommand)
execute
public void execute(org.jboss.dna.graph.commands.RecordBranchCommand command)
throws org.jboss.dna.graph.connectors.RepositorySourceException
-
- Specified by:
execute in interface org.jboss.dna.graph.commands.executor.CommandExecutor- Overrides:
execute in class org.jboss.dna.graph.commands.executor.AbstractCommandExecutor
- Throws:
org.jboss.dna.graph.connectors.RepositorySourceException- See Also:
AbstractCommandExecutor.execute(org.jboss.dna.graph.commands.RecordBranchCommand)
execute
public void execute(org.jboss.dna.graph.commands.CopyBranchCommand command)
throws org.jboss.dna.graph.connectors.RepositorySourceException
-
- Specified by:
execute in interface org.jboss.dna.graph.commands.executor.CommandExecutor- Overrides:
execute in class org.jboss.dna.graph.commands.executor.AbstractCommandExecutor
- Throws:
org.jboss.dna.graph.connectors.RepositorySourceException- See Also:
AbstractCommandExecutor.execute(org.jboss.dna.graph.commands.CopyBranchCommand)
execute
public void execute(org.jboss.dna.graph.commands.CopyNodeCommand command)
throws org.jboss.dna.graph.connectors.RepositorySourceException
-
- Specified by:
execute in interface org.jboss.dna.graph.commands.executor.CommandExecutor- Overrides:
execute in class org.jboss.dna.graph.commands.executor.AbstractCommandExecutor
- Throws:
org.jboss.dna.graph.connectors.RepositorySourceException- See Also:
AbstractCommandExecutor.execute(org.jboss.dna.graph.commands.CopyNodeCommand)
getPathInSource
protected org.jboss.dna.graph.properties.Path getPathInSource(org.jboss.dna.graph.properties.Path pathInRepository)
getPathInRepository
protected org.jboss.dna.graph.properties.Path getPathInRepository(org.jboss.dna.graph.properties.Path pathInSource)
Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.