|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.dna.graph.commands.executor.AbstractCommandExecutor
org.jboss.dna.graph.commands.executor.SingleSourceCommandExecutor
public class SingleSourceCommandExecutor
Constructor Summary | |
---|---|
SingleSourceCommandExecutor(ExecutionContext context,
String sourceName,
DateTime now,
RepositoryConnectionFactory connectionFactory)
Create a command executor that does nothing. |
|
SingleSourceCommandExecutor(ExecutionContext context,
String sourceName,
RepositoryConnectionFactory connectionFactory)
Create a command executor that does nothing. |
Method Summary | |
---|---|
void |
close()
Close this executor, allowing it to clean up any open resources. |
void |
execute(CopyBranchCommand command)
Execute a command to copy an entire branch to a new location. |
void |
execute(CopyNodeCommand command)
Execute a command to copy a node to a new location. |
void |
execute(CreateNodeCommand command)
Execute a command to create a node and set the node's properties. |
void |
execute(DeleteBranchCommand command)
Execute a command to delete an entire branch. |
void |
execute(GetChildrenCommand command)
Execute a command to get the children of a node. |
void |
execute(GetPropertiesCommand command)
Execute a command to get the properties of a node. |
void |
execute(MoveBranchCommand command)
Execute a command to move a branch from one location to another. |
void |
execute(RecordBranchCommand command)
Execute a command to record the structure of a branch. |
void |
execute(SetPropertiesCommand command)
Execute a command to set some (or all) of the properties on a node. |
Methods inherited from class org.jboss.dna.graph.commands.executor.AbstractCommandExecutor |
---|
execute, execute, execute, getCurrentTimeInUtc, getExecutionContext, getSourceName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingleSourceCommandExecutor(ExecutionContext context, String sourceName, RepositoryConnectionFactory connectionFactory)
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 emptyconnectionFactory
- the factory for RepositoryConnection
instancespublic SingleSourceCommandExecutor(ExecutionContext context, String sourceName, DateTime now, RepositoryConnectionFactory connectionFactory)
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 usedconnectionFactory
- the factory for RepositoryConnection
instancesMethod Detail |
---|
public void close()
close
in interface CommandExecutor
close
in class AbstractCommandExecutor
AbstractCommandExecutor.close()
public void execute(CopyBranchCommand command) throws RepositorySourceException
execute
in interface CommandExecutor
execute
in class AbstractCommandExecutor
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandAbstractCommandExecutor.execute(org.jboss.dna.graph.commands.CopyBranchCommand)
public void execute(CopyNodeCommand command) throws RepositorySourceException
execute
in interface CommandExecutor
execute
in class AbstractCommandExecutor
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandAbstractCommandExecutor.execute(org.jboss.dna.graph.commands.CopyNodeCommand)
public void execute(CreateNodeCommand command) throws RepositorySourceException
execute
in interface CommandExecutor
execute
in class AbstractCommandExecutor
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandAbstractCommandExecutor.execute(org.jboss.dna.graph.commands.CreateNodeCommand)
public void execute(DeleteBranchCommand command) throws RepositorySourceException
execute
in interface CommandExecutor
execute
in class AbstractCommandExecutor
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandAbstractCommandExecutor.execute(org.jboss.dna.graph.commands.DeleteBranchCommand)
public void execute(GetChildrenCommand command) throws RepositorySourceException
execute
in interface CommandExecutor
execute
in class AbstractCommandExecutor
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandAbstractCommandExecutor.execute(org.jboss.dna.graph.commands.GetChildrenCommand)
public void execute(GetPropertiesCommand command) throws RepositorySourceException
execute
in interface CommandExecutor
execute
in class AbstractCommandExecutor
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandAbstractCommandExecutor.execute(org.jboss.dna.graph.commands.GetPropertiesCommand)
public void execute(MoveBranchCommand command) throws RepositorySourceException
execute
in interface CommandExecutor
execute
in class AbstractCommandExecutor
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandAbstractCommandExecutor.execute(org.jboss.dna.graph.commands.MoveBranchCommand)
public void execute(RecordBranchCommand command) throws RepositorySourceException
execute
in interface CommandExecutor
execute
in class AbstractCommandExecutor
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandAbstractCommandExecutor.execute(org.jboss.dna.graph.commands.RecordBranchCommand)
public void execute(SetPropertiesCommand command) throws RepositorySourceException
execute
in interface CommandExecutor
execute
in class AbstractCommandExecutor
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandAbstractCommandExecutor.execute(org.jboss.dna.graph.commands.SetPropertiesCommand)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |