|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CommandExecutor
Method Summary | |
---|---|
void |
close()
Close this executor, allowing it to clean up any open resources. |
void |
execute(CompositeCommand command)
Execute a composite command that contains other commands. |
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(GetNodeCommand command)
Execute a command to get the properties and children of a node. |
void |
execute(GetPropertiesCommand command)
Execute a command to get the properties of a node. |
void |
execute(GraphCommand command)
Execute a graph command. |
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. |
Method Detail |
---|
void execute(GraphCommand command) throws RepositorySourceException
execute
methods should be called, and should then call those methods. This method should also do nothing if the command is null.
command
- the command to be executed
RepositorySourceException
- if there is an error executing the commandvoid execute(CompositeCommand command) throws RepositorySourceException
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandvoid execute(GetNodeCommand command) throws RepositorySourceException
GetNodeCommand
is a subtype of both
GetPropertiesCommand
and GetChildrenCommand
, so this method will be called in place of the
execute(GetPropertiesCommand)
and execute(GetChildrenCommand)
methods.
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandvoid execute(GetPropertiesCommand command) throws RepositorySourceException
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandvoid execute(GetChildrenCommand command) throws RepositorySourceException
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandvoid execute(CreateNodeCommand command) throws RepositorySourceException
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandvoid execute(SetPropertiesCommand command) throws RepositorySourceException
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandvoid execute(CopyNodeCommand command) throws RepositorySourceException
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandvoid execute(CopyBranchCommand command) throws RepositorySourceException
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandvoid execute(RecordBranchCommand command) throws RepositorySourceException
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandvoid execute(DeleteBranchCommand command) throws RepositorySourceException
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandvoid execute(MoveBranchCommand command) throws RepositorySourceException
command
- the command to be executed; may not be null
RepositorySourceException
- if there is an error executing the commandvoid close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |