Class CompositeCommand
java.lang.Object
org.nuxeo.connect.update.task.standalone.commands.AbstractCommand
org.nuxeo.connect.update.task.standalone.commands.CompositeCommand
- All Implemented Interfaces:
org.nuxeo.connect.update.task.Command
Command embedding multiple commands. For internal use.
- Since:
- 5.5
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<org.nuxeo.connect.update.task.Command>
static final String
Fields inherited from class org.nuxeo.connect.update.task.standalone.commands.AbstractCommand
fail, guardVars, id, ignore
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCommand
(org.nuxeo.connect.update.task.Command command) protected org.nuxeo.connect.update.task.Command
Override to implement command actionsprotected void
doValidate
(org.nuxeo.connect.update.task.Task task, org.nuxeo.connect.update.ValidationStatus status) Override to implement validation.boolean
isEmpty()
void
Must be implemented to initialize the command arguments from an XML fragment.void
writeTo
(org.nuxeo.connect.update.xml.XmlWriter writer) Methods inherited from class org.nuxeo.connect.update.task.standalone.commands.AbstractCommand
getId, ignore, initialize, isPostInstall, run, setFail, setIgnore, setPackageUpdateService, validate
-
Field Details
-
ID
- See Also:
-
commands
-
-
Constructor Details
-
CompositeCommand
-
CompositeCommand
public CompositeCommand()
-
-
Method Details
-
writeTo
public void writeTo(org.nuxeo.connect.update.xml.XmlWriter writer) -
doRun
protected org.nuxeo.connect.update.task.Command doRun(org.nuxeo.connect.update.task.Task task, Map<String, String> prefs) throws org.nuxeo.connect.update.PackageExceptionDescription copied from class:AbstractCommand
Override to implement command actions- Specified by:
doRun
in classAbstractCommand
- Returns:
- Rollback command
- Throws:
org.nuxeo.connect.update.PackageException
-
doValidate
protected void doValidate(org.nuxeo.connect.update.task.Task task, org.nuxeo.connect.update.ValidationStatus status) throws org.nuxeo.connect.update.PackageException Description copied from class:AbstractCommand
Override to implement validation.- Specified by:
doValidate
in classAbstractCommand
- Parameters:
task
- The task being validatedstatus
- UseValidationStatus.addError(String)
orValidationStatus.addWarning(String)
to provide validation error/warning messages- Throws:
org.nuxeo.connect.update.PackageException
-
readFrom
Description copied from class:AbstractCommand
Must be implemented to initialize the command arguments from an XML fragment.- Specified by:
readFrom
in classAbstractCommand
- Throws:
org.nuxeo.connect.update.PackageException
-
addCommand
public void addCommand(org.nuxeo.connect.update.task.Command command) -
isEmpty
public boolean isEmpty() -
combine
- Since:
- 9.3
-