Package com.saperion.operations.document
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>
,java.io.Serializable
public class DeleteDocument extends VoidOperation
Deletes a Document asSaRMIServerCommand.deleteDocument(int, int, String)
does. In fact it actually calls exactly this method. TheVoidOperation.invoke()
method has no return value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeleteDocument(java.lang.String documentHDOC, int deleteType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
voidInvoke()
Invokes this void operation.-
Methods inherited from class com.saperion.operations.VoidOperation
afterInvoke, getResult, invoke
-
Methods inherited from class com.saperion.operations.LegacyOperation
beforeInvoke, beforeInvoke, getClientToken, mapEcmException, mapException
-
Methods inherited from class com.lexmark.saperion.remote.common.operations.AbstractOperation
toArrayList, toCaseInsensitiveMap, toHashMap, toString
-
-
-
-
Constructor Detail
-
DeleteDocument
public DeleteDocument(java.lang.String documentHDOC, int deleteType)
- Parameters:
documentHDOC
- HDOC of the document to deletedeleteType
- 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 Detail
-
voidInvoke
protected void voidInvoke() throws java.lang.Exception
Description copied from class:VoidOperation
Invokes this void operation.- Specified by:
voidInvoke
in classVoidOperation
- Throws:
java.lang.Exception
- exception when invoking this operation
-
-