java.lang.Object
org.nuxeo.connect.update.task.standalone.commands.AbstractCommand
org.nuxeo.connect.update.task.standalone.commands.UnAppend
All Implemented Interfaces:
org.nuxeo.connect.update.task.Command

public class UnAppend extends AbstractCommand
Rollback command for Append and Copy (with Copy.append=true) commands.
Since:
5.5
  • Field Details

  • Constructor Details

    • UnAppend

      public UnAppend()
    • UnAppend

      protected UnAppend(String id)
    • UnAppend

      public UnAppend(File contentToRemove, File fromFile)
      Parameters:
      contentToRemove - File which content must be removed.
      fromFile - Destination file from which content is removed.
  • 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.PackageException
      Description copied from class: AbstractCommand
      Override to implement command actions
      Specified by:
      doRun in class AbstractCommand
      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 class AbstractCommand
      Parameters:
      task - The task being validated
      status - Use ValidationStatus.addError(String) or ValidationStatus.addWarning(String) to provide validation error/warning messages
      Throws:
      org.nuxeo.connect.update.PackageException
    • readFrom

      public void readFrom(Element element) throws org.nuxeo.connect.update.PackageException
      Description copied from class: AbstractCommand
      Must be implemented to initialize the command arguments from an XML fragment.
      Specified by:
      readFrom in class AbstractCommand
      Throws:
      org.nuxeo.connect.update.PackageException