public interface DocumentService
| Modifier and Type | Method and Description |
|---|---|
com.lexmark.saperion.document.DocumentStoreInformationType |
createDocument(com.lexmark.saperion.document.DocumentDefinitionReferenceType definition,
Map<String,Object> indexData,
com.lexmark.saperion.document.DocumentElementType rootElement)
This method stores a new document with the given data in the backend.
|
com.lexmark.saperion.document.DocumentRevisionReferenceType |
getLatestRevisionId(com.lexmark.saperion.document.DocumentReferenceType documentId)
This method returns the id of the latest revision of the document given by its id.
|
com.lexmark.saperion.document.DocumentRevisionType |
loadDocument(com.lexmark.saperion.document.DocumentReferenceType documentId,
com.lexmark.saperion.document.LoadKindEnumeration loadKind)
Loads the latest
document revision with the given
document id. |
com.lexmark.saperion.document.DocumentRevisionType |
loadDocument(com.lexmark.saperion.document.DocumentRevisionReferenceType revisionId,
com.lexmark.saperion.document.LoadKindEnumeration loadKind)
Loads a complete
document revision given its
revision id. |
InputStream |
readDocumentElementContent(com.lexmark.saperion.document.DocumentReferenceType documentId,
com.lexmark.saperion.document.DocumentElementReferenceType documentElementId)
Opens the content of the document element identified by the given id for reading and returns an
input stream for that data. |
List<com.lexmark.saperion.document.DocumentRevisionReferenceType> |
searchDocuments(com.lexmark.saperion.document.DocumentDefinitionReferenceType definitionReference,
QueryExpression<Boolean> filter)
Loads all documents for which the given filter holds
|
com.lexmark.saperion.document.DocumentRevisionType |
searchUniqueDocument(com.lexmark.saperion.document.DocumentDefinitionReferenceType definitionReference,
QueryExpression<Boolean> filter,
com.lexmark.saperion.document.LoadKindEnumeration loadKind)
Loads the unique document for which the given filter holds.
|
com.lexmark.saperion.document.DocumentRevisionReferenceType getLatestRevisionId(com.lexmark.saperion.document.DocumentReferenceType documentId)
throws SaBasicException
documentId - the id of the document to get the latest revision id forSaBasicExceptioncom.lexmark.saperion.document.DocumentRevisionType loadDocument(com.lexmark.saperion.document.DocumentRevisionReferenceType revisionId,
com.lexmark.saperion.document.LoadKindEnumeration loadKind)
throws SaBasicException
document revision given its
revision id.revisionId - the revision id of the document to loadSaBasicExceptioncom.lexmark.saperion.document.DocumentRevisionType loadDocument(com.lexmark.saperion.document.DocumentReferenceType documentId,
com.lexmark.saperion.document.LoadKindEnumeration loadKind)
throws SaBasicException
document revision with the given
document id.documentId - the id of the documentSaBasicExceptioncom.lexmark.saperion.document.DocumentRevisionType searchUniqueDocument(com.lexmark.saperion.document.DocumentDefinitionReferenceType definitionReference,
QueryExpression<Boolean> filter,
com.lexmark.saperion.document.LoadKindEnumeration loadKind)
throws SaBasicException
definitionReference - reference to the document definition to search in.filter - a QueryExpression of type boolean that uniquely identifies the documentSaBasicExceptionList<com.lexmark.saperion.document.DocumentRevisionReferenceType> searchDocuments(com.lexmark.saperion.document.DocumentDefinitionReferenceType definitionReference, QueryExpression<Boolean> filter) throws SaBasicException
definitionReference - the document definition to search in.filter - a QueryExpression of type boolean that is true for all wanted documentsrevision ids of documents that match the given filterSaBasicExceptionInputStream readDocumentElementContent(com.lexmark.saperion.document.DocumentReferenceType documentId, com.lexmark.saperion.document.DocumentElementReferenceType documentElementId) throws SaBasicException
input stream for that data. If the element is chunked the resulting stream will stream
over all the chunks.documentId - the id of the document the element to read belongs todocumentElementId - the id of the document element to read frominput stream for the content of the given document elementSaBasicExceptioncom.lexmark.saperion.document.DocumentStoreInformationType createDocument(com.lexmark.saperion.document.DocumentDefinitionReferenceType definition,
Map<String,Object> indexData,
com.lexmark.saperion.document.DocumentElementType rootElement)
throws SaBasicException
definition - a reference to the definition to store the document inindexData - the index data the document will hold.rootElement - the documents root elementSaBasicExceptionCopyright © 2016 SAPERION AG. All rights reserved.