public interface DocumentRevisionClient
ConcurrentWriteException will be thrown otherwise.| Modifier and Type | Method and Description |
|---|---|
void |
delete()
This method deletes the specified document.
|
DocumentElementClient |
getElement(com.lexmark.saperion.document.DocumentElementReferenceType reference)
This method returns the document element client for the given document element id.
|
com.lexmark.saperion.document.DocumentRevisionType |
load()
This method loads a document revision with its content.
|
com.lexmark.saperion.document.DocumentRevisionType |
loadMetadata()
This method loads a document revision without its content.
|
void |
purge()
This method removes every revision of this document as well as every element of those revisions.
|
SearchClient<com.lexmark.saperion.PropertyType> |
searchMultiValueField(String fieldName)
This method returns a search client for the content of the given multi value field of the given document
revision.
|
com.lexmark.saperion.document.DocumentStoreInformationType |
update(com.lexmark.saperion.document.DocumentElementType documentElement)
This is a shorthand for
update(Collections.<String, PropertyType> emptyMap(), documentElement)
updating only the document element and leaving the index data untouched. |
com.lexmark.saperion.document.DocumentStoreInformationType |
update(Map<String,com.lexmark.saperion.PropertyType> indexData)
This is a shorthand for
update(indexData, null) updating only the index data and leaving the document
structure untouched. |
com.lexmark.saperion.document.DocumentStoreInformationType |
update(Map<String,com.lexmark.saperion.PropertyType> indexData,
com.lexmark.saperion.document.DocumentElementType documentElement)
This method updates the document instance and replaces the document with the given entity.
|
com.lexmark.saperion.document.DocumentStoreInformationType |
update(com.lexmark.saperion.document.UpdateDocumentInputType properties)
This method updates the document with the given properties containing index-data, structure-data and ACLs.
|
void |
writeFulltextData(String fieldName,
InputStream data)
This method adds fulltext data to the specified field without creating a new
revision.
|
com.lexmark.saperion.document.DocumentRevisionType loadMetadata()
throws com.lexmark.saperion.exceptions.EcmException
com.lexmark.saperion.exceptions.EcmException - indicates that a system exception occurredcom.lexmark.saperion.document.DocumentRevisionType load()
throws com.lexmark.saperion.exceptions.EcmException
com.lexmark.saperion.exceptions.EcmException - indicates that a system exception occurredSearchClient<com.lexmark.saperion.PropertyType> searchMultiValueField(String fieldName) throws com.lexmark.saperion.exceptions.EcmException
fieldName - the name of the multi value fieldcom.lexmark.saperion.exceptions.EcmExceptionDocumentElementClient getElement(com.lexmark.saperion.document.DocumentElementReferenceType reference) throws com.lexmark.saperion.exceptions.EcmException
reference - the document element referencecom.lexmark.saperion.exceptions.EcmExceptionvoid delete()
throws com.lexmark.saperion.exceptions.EcmException
com.lexmark.saperion.exceptions.EcmException - indicates that a system exception occurredcom.lexmark.saperion.document.DocumentStoreInformationType update(Map<String,com.lexmark.saperion.PropertyType> indexData, com.lexmark.saperion.document.DocumentElementType documentElement) throws com.lexmark.saperion.exceptions.EcmException
indexData - the index data changes of the documentdocumentElement - the new document root structurecom.lexmark.saperion.exceptions.EcmException - indicates that a system exception occurredcom.lexmark.saperion.document.DocumentStoreInformationType update(com.lexmark.saperion.document.DocumentElementType documentElement)
throws com.lexmark.saperion.exceptions.EcmException
update(Collections.<String, PropertyType> emptyMap(), documentElement)
updating only the document element and leaving the index data untouched.documentElement - the new document root structurecom.lexmark.saperion.exceptions.EcmExceptioncom.lexmark.saperion.document.DocumentStoreInformationType update(Map<String,com.lexmark.saperion.PropertyType> indexData) throws com.lexmark.saperion.exceptions.EcmException
update(indexData, null) updating only the index data and leaving the document
structure untouched.indexData - the index data changes of the documentcom.lexmark.saperion.exceptions.EcmExceptioncom.lexmark.saperion.document.DocumentStoreInformationType update(com.lexmark.saperion.document.UpdateDocumentInputType properties)
throws com.lexmark.saperion.exceptions.EcmException
properties - the properties to updatecom.lexmark.saperion.exceptions.EcmException - when updating the document failedvoid purge()
throws com.lexmark.saperion.exceptions.EcmException
com.lexmark.saperion.exceptions.EcmExceptionvoid writeFulltextData(String fieldName, InputStream data) throws com.lexmark.saperion.exceptions.EcmException
fieldName - the name of the field used to store fulltext datadata - the fulltext datacom.lexmark.saperion.exceptions.EcmException - when writing the data failedCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.