public class SearchUniqueDocument extends AbstractOperation<com.lexmark.saperion.document.DocumentRevisionType> implements Operation<com.lexmark.saperion.document.DocumentRevisionType>
DocumentRevisionType
. If it exists it will be loaded and returned.Constructor and Description |
---|
SearchUniqueDocument(com.lexmark.saperion.document.DocumentDefinitionReferenceType definitionName,
QueryExpression<Boolean> filter,
com.lexmark.saperion.document.LoadKindEnumeration loadKind)
This creates a new
operation that expects to find at most one document in the given definition
for which the filter holds. |
Modifier and Type | Method and Description |
---|---|
com.lexmark.saperion.document.DocumentDefinitionReferenceType |
getDefinitionName() |
QueryExpression<Boolean> |
getFilter() |
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 SearchUniqueDocument(com.lexmark.saperion.document.DocumentDefinitionReferenceType definitionName, QueryExpression<Boolean> filter, com.lexmark.saperion.document.LoadKindEnumeration loadKind)
operation
that expects to find at most one document in the given definition
for which the filter holds. If it does not exist, null will be returned. Otherwise the document will be loaded
according to the given load kind and returned.definitionName
- The definition to search in. Must not be null.filter
- The condition the uniquely identifies the document searched. Must not be null.loadKind
- Whether to completely load the document or to omit 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 com.lexmark.saperion.document.DocumentDefinitionReferenceType getDefinitionName()
public QueryExpression<Boolean> getFilter()
public com.lexmark.saperion.document.LoadKindEnumeration getLoadKind()
public String toString()
toString
in class AbstractOperation<com.lexmark.saperion.document.DocumentRevisionType>
Copyright © 2016 SAPERION AG. All rights reserved.