public class CompositeCommand extends AbstractCommand
Modifier and Type | Field and Description |
---|---|
protected List<org.nuxeo.connect.update.task.Command> |
commands |
static String |
ID |
fail, guardVars, id, ignore
Modifier | Constructor and Description |
---|---|
|
CompositeCommand() |
protected |
CompositeCommand(String id) |
Modifier and Type | Method and Description |
---|---|
void |
addCommand(org.nuxeo.connect.update.task.Command command) |
protected org.nuxeo.connect.update.task.Command |
doRun(org.nuxeo.connect.update.task.Task task,
Map<String,String> prefs)
Override to implement command actions
|
protected void |
doValidate(org.nuxeo.connect.update.task.Task task,
org.nuxeo.connect.update.ValidationStatus status)
Override to implement validation.
|
boolean |
isEmpty() |
void |
readFrom(Element element)
Must be implemented to initialize the command arguments from an XML fragment.
|
void |
writeTo(org.nuxeo.connect.update.xml.XmlWriter writer) |
getId, ignore, initialize, isPostInstall, run, setFail, setIgnore, setPackageUpdateService, validate
public static final String ID
protected CompositeCommand(String id)
public CompositeCommand()
public void writeTo(org.nuxeo.connect.update.xml.XmlWriter writer)
protected org.nuxeo.connect.update.task.Command doRun(org.nuxeo.connect.update.task.Task task, Map<String,String> prefs) throws org.nuxeo.connect.update.PackageException
AbstractCommand
doRun
in class AbstractCommand
org.nuxeo.connect.update.PackageException
protected void doValidate(org.nuxeo.connect.update.task.Task task, org.nuxeo.connect.update.ValidationStatus status) throws org.nuxeo.connect.update.PackageException
AbstractCommand
doValidate
in class AbstractCommand
task
- The task being validatedstatus
- Use ValidationStatus.addError(String)
or ValidationStatus.addWarning(String)
to
provide validation error/warning messagesorg.nuxeo.connect.update.PackageException
public void readFrom(Element element) throws org.nuxeo.connect.update.PackageException
AbstractCommand
readFrom
in class AbstractCommand
org.nuxeo.connect.update.PackageException
public void addCommand(org.nuxeo.connect.update.task.Command command)
public boolean isEmpty()
Copyright © 2017 Nuxeo. All rights reserved.