public class LoadDocumentById extends AbstractOperation<com.lexmark.saperion.document.DocumentRevisionType> implements Operation<com.lexmark.saperion.document.DocumentRevisionType>
operation
LoadDocumentById loads a document from the backend by its
id
.Constructor and Description |
---|
LoadDocumentById(com.lexmark.saperion.document.DocumentReferenceType id)
This creates an
operation that completely loads the latest revision of the document with the
given id. |
LoadDocumentById(com.lexmark.saperion.document.DocumentReferenceType id,
com.lexmark.saperion.document.LoadKindEnumeration loadKind)
This creates an
operation that loads the latest revision of the document with the given id. |
Modifier and Type | Method and Description |
---|---|
com.lexmark.saperion.document.DocumentReferenceType |
getId() |
com.lexmark.saperion.document.LoadKindEnumeration |
getLoadKind() |
com.lexmark.saperion.document.DocumentRevisionType |
invoke()
The method that will be called on the server side.
|
String |
toString() |
afterInvoke, getResult, toArrayList
beforeInvoke, getClientToken, mapException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
afterInvoke, beforeInvoke, getResult
public LoadDocumentById(com.lexmark.saperion.document.DocumentReferenceType id)
operation
that completely loads the latest revision of the document with the
given id.id
- the id of the document to load. Must not be null.public LoadDocumentById(com.lexmark.saperion.document.DocumentReferenceType id, com.lexmark.saperion.document.LoadKindEnumeration loadKind)
operation
that loads the latest revision of the document with the given id.id
- the id of the document to load. Must not be null.loadKind
- Whether the document should be loaded completely or without the content. Must not be null.public com.lexmark.saperion.document.DocumentRevisionType invoke() throws SaBasicException
Operation
invoke
in interface Operation<com.lexmark.saperion.document.DocumentRevisionType>
SaBasicException
- exception when invoking this operationpublic String toString()
toString
in class AbstractOperation<com.lexmark.saperion.document.DocumentRevisionType>
public com.lexmark.saperion.document.DocumentReferenceType getId()
public com.lexmark.saperion.document.LoadKindEnumeration getLoadKind()
Copyright © 2016 SAPERION AG. All rights reserved.