public class SearchUniqueDocument
extends com.lexmark.saperion.remote.common.operations.EcmOperation<com.lexmark.saperion.document.DocumentRevisionType,com.lexmark.saperion.exceptions.EcmException>
DocumentRevisionType
. If it exists it will be loaded and returned.Constructor and Description |
---|
SearchUniqueDocument(com.lexmark.saperion.archive.ArchiveReferenceType archiveReference,
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.archive.ArchiveReferenceType |
geArchiveReference() |
QueryExpression<Boolean> |
getFilter() |
com.lexmark.saperion.document.LoadKindEnumeration |
getLoadKind() |
com.lexmark.saperion.document.DocumentRevisionType |
invoke() |
String |
toString() |
public SearchUniqueDocument(com.lexmark.saperion.archive.ArchiveReferenceType archiveReference, 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.archiveReference
- The archive 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 com.lexmark.saperion.exceptions.EcmException
com.lexmark.saperion.exceptions.EcmException
public com.lexmark.saperion.archive.ArchiveReferenceType geArchiveReference()
public QueryExpression<Boolean> getFilter()
public com.lexmark.saperion.document.LoadKindEnumeration getLoadKind()
public String toString()
toString
in class com.lexmark.saperion.remote.common.operations.AbstractOperation<com.lexmark.saperion.document.DocumentRevisionType,com.lexmark.saperion.exceptions.EcmException,com.lexmark.saperion.remote.common.Connection>
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.