Class DeleteDocument

java.lang.Object
com.lexmark.saperion.remote.common.operations.AbstractOperation<T,SaBasicException,LegacyConnection>
com.saperion.operations.LegacyOperation<com.lexmark.saperion.remote.common.operations.Void>
com.saperion.operations.VoidOperation
com.saperion.operations.document.DeleteDocument
All Implemented Interfaces:
com.lexmark.saperion.remote.common.operations.Operation<com.lexmark.saperion.remote.common.operations.Void,SaBasicException,LegacyConnection>, Serializable

public class DeleteDocument extends VoidOperation
Deletes a Document as SaRMIServerCommand.deleteDocument(int, int, String) does. In fact it actually calls exactly this method. The VoidOperation.invoke() method has no return value.
See Also:
  • Constructor Details

    • DeleteDocument

      public DeleteDocument(String documentHDOC, int deleteType)
      Parameters:
      documentHDOC - HDOC of the document to delete
      deleteType - Deletion strategy which may be set on one of the following values:
    • SaConstant.JNI_DELETECONTENT_MODE_DBSIMPLE = 0 Set status to 65002
    • SaConstant.JNI_DELETECONTENT_MODE_DBCOMPLETE = 1 - remove from DB
    • SaConstant.JNI_DELETECONTENT_MODE_PURGEDOCUMENT = 2 -Final delete
      Contains DBSIMPLE and "remove from medium"
    • SaConstant.DELETEMODE = "deletemode" -Deletemode entry in archief.ini;
  • Method Details