public interface Command
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
The command id
|
void |
initialize(Element element)
Initialize a command parameters from a DOM element.
|
boolean |
isPostInstall()
Test if the command must be run at the end in an installation process.
|
Command |
run(org.nuxeo.connect.update.task.Task task,
Map<String,String> prefs)
Execute the command and return the inverse command that can be used to
rollback.
|
void |
validate(org.nuxeo.connect.update.task.Task task,
org.nuxeo.connect.update.ValidationStatus status)
Validate if the command can be safely executed on the running platform.
|
void |
writeTo(XmlWriter writer)
Write the command as XML using the given
XmlWriter. |
boolean isPostInstall()
PostInstallCommand.String getId()
Command run(org.nuxeo.connect.update.task.Task task, Map<String,String> prefs) throws org.nuxeo.connect.update.PackageException
task - org.nuxeo.connect.update.PackageExceptionvoid validate(org.nuxeo.connect.update.task.Task task,
org.nuxeo.connect.update.ValidationStatus status)
throws org.nuxeo.connect.update.PackageException
status - org.nuxeo.connect.update.PackageExceptionvoid initialize(Element element) throws org.nuxeo.connect.update.PackageException
element - org.nuxeo.connect.update.PackageExceptionCopyright © 2011 Nuxeo SA. All Rights Reserved.