public class Delete extends AbstractCommand
The inverse of the delete command is a copy command.
| Modifier and Type | Field and Description | 
|---|---|
protected File | 
file  | 
static String | 
ID  | 
protected static org.apache.commons.logging.Log | 
log  | 
protected String | 
md5  | 
protected boolean | 
onExit  | 
fail, guardVars, id, ignore| Constructor and Description | 
|---|
Delete()  | 
Delete(File file,
      String md5)  | 
Delete(File file,
      String md5,
      boolean onExit)  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
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, validateprotected static final org.apache.commons.logging.Log log
public static final String ID
protected boolean onExit
public Delete()
protected void doValidate(org.nuxeo.connect.update.task.Task task, org.nuxeo.connect.update.ValidationStatus status)
AbstractCommanddoValidate in class AbstractCommandtask - The task being validatedstatus - Use ValidationStatus.addError(String) or ValidationStatus.addWarning(String) to
            provide validation error/warning messagesprotected org.nuxeo.connect.update.task.Command doRun(org.nuxeo.connect.update.task.Task task, Map<String,String> prefs) throws org.nuxeo.connect.update.PackageException
AbstractCommanddoRun in class AbstractCommandorg.nuxeo.connect.update.PackageExceptionpublic void readFrom(Element element) throws org.nuxeo.connect.update.PackageException
AbstractCommandreadFrom in class AbstractCommandorg.nuxeo.connect.update.PackageExceptionpublic void writeTo(org.nuxeo.connect.update.xml.XmlWriter writer)
Copyright © 2019 Nuxeo. All rights reserved.