Class InstallPlaceholder
- java.lang.Object
-
- org.nuxeo.connect.update.task.standalone.commands.AbstractCommand
-
- org.nuxeo.connect.update.task.standalone.commands.InstallPlaceholder
-
- All Implemented Interfaces:
org.nuxeo.connect.update.task.Command
public class InstallPlaceholder extends AbstractCommand
Deploy an OSGi bundle into the running platform. The bundle is specified using the absolute bundle file path. The inverse of this command is the Undeploy command.- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description InstallPlaceholder()InstallPlaceholder(File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.nuxeo.connect.update.task.CommanddoRun(org.nuxeo.connect.update.task.Task task, Map<String,String> prefs)Override to implement command actionsprotected voiddoValidate(org.nuxeo.connect.update.task.Task task, org.nuxeo.connect.update.ValidationStatus status)Override to implement validation.voidreadFrom(Element element)Must be implemented to initialize the command arguments from an XML fragment.voidwriteTo(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 Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
file
protected File file
-
-
Constructor Detail
-
InstallPlaceholder
public InstallPlaceholder()
-
InstallPlaceholder
public InstallPlaceholder(File file)
-
-
Method Detail
-
doValidate
protected void doValidate(org.nuxeo.connect.update.task.Task task, org.nuxeo.connect.update.ValidationStatus status) throws org.nuxeo.connect.update.PackageExceptionDescription copied from class:AbstractCommandOverride to implement validation.- Specified by:
doValidatein 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
-
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:AbstractCommandOverride to implement command actions- Specified by:
doRunin classAbstractCommand- Returns:
- Rollback command
- Throws:
org.nuxeo.connect.update.PackageException
-
readFrom
public void readFrom(Element element) throws org.nuxeo.connect.update.PackageException
Description copied from class:AbstractCommandMust be implemented to initialize the command arguments from an XML fragment.- Specified by:
readFromin classAbstractCommand- Throws:
org.nuxeo.connect.update.PackageException
-
writeTo
public void writeTo(org.nuxeo.connect.update.xml.XmlWriter writer)
-
-