public class DocumentRevisionClientImpl extends Object implements DocumentRevisionClient
DocumentRevisionClient.| Constructor and Description |
|---|
DocumentRevisionClientImpl(com.lexmark.saperion.document.DocumentService documentService,
com.lexmark.saperion.document.DocumentRevisionReferenceType reference) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
This method deletes the specified document.
|
DocumentElementClient |
getElement(com.lexmark.saperion.document.DocumentElementReferenceType elementReference)
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.
|
public DocumentRevisionClientImpl(com.lexmark.saperion.document.DocumentService documentService,
com.lexmark.saperion.document.DocumentRevisionReferenceType reference)
public com.lexmark.saperion.document.DocumentRevisionType loadMetadata()
throws com.lexmark.saperion.exceptions.EcmException
DocumentRevisionClientloadMetadata in interface DocumentRevisionClientcom.lexmark.saperion.exceptions.EcmException - indicates that a system exception occurredpublic com.lexmark.saperion.document.DocumentRevisionType load()
throws com.lexmark.saperion.exceptions.EcmException
DocumentRevisionClientload in interface DocumentRevisionClientcom.lexmark.saperion.exceptions.EcmException - indicates that a system exception occurredpublic void delete()
throws com.lexmark.saperion.exceptions.EcmException
DocumentRevisionClientdelete in interface DocumentRevisionClientcom.lexmark.saperion.exceptions.EcmException - indicates that a system exception occurredpublic com.lexmark.saperion.document.DocumentStoreInformationType update(Map<String,com.lexmark.saperion.PropertyType> indexData, com.lexmark.saperion.document.DocumentElementType documentElement) throws com.lexmark.saperion.exceptions.EcmException
DocumentRevisionClientupdate in interface DocumentRevisionClientindexData - the index data changes of the documentdocumentElement - the new document root structurecom.lexmark.saperion.exceptions.EcmException - indicates that a system exception occurredpublic com.lexmark.saperion.document.DocumentStoreInformationType update(com.lexmark.saperion.document.DocumentElementType documentElement)
throws com.lexmark.saperion.exceptions.EcmException
DocumentRevisionClientupdate(Collections.<String, PropertyType> emptyMap(), documentElement)
updating only the document element and leaving the index data untouched.update in interface DocumentRevisionClientdocumentElement - the new document root structurecom.lexmark.saperion.exceptions.EcmExceptionpublic com.lexmark.saperion.document.DocumentStoreInformationType update(Map<String,com.lexmark.saperion.PropertyType> indexData) throws com.lexmark.saperion.exceptions.EcmException
DocumentRevisionClientupdate(indexData, null) updating only the index data and leaving the document
structure untouched.update in interface DocumentRevisionClientindexData - the index data changes of the documentcom.lexmark.saperion.exceptions.EcmExceptionpublic com.lexmark.saperion.document.DocumentStoreInformationType update(com.lexmark.saperion.document.UpdateDocumentInputType properties)
throws com.lexmark.saperion.exceptions.EcmException
DocumentRevisionClientupdate in interface DocumentRevisionClientproperties - the properties to updatecom.lexmark.saperion.exceptions.EcmException - when updating the document failedpublic void writeFulltextData(String fieldName, InputStream data) throws com.lexmark.saperion.exceptions.EcmException
DocumentRevisionClientwriteFulltextData in interface DocumentRevisionClientfieldName - the name of the field used to store fulltext datadata - the fulltext datacom.lexmark.saperion.exceptions.EcmException - when writing the data failedpublic SearchClient<com.lexmark.saperion.PropertyType> searchMultiValueField(String fieldName) throws com.lexmark.saperion.exceptions.EcmException
DocumentRevisionClientsearchMultiValueField in interface DocumentRevisionClientfieldName - the name of the multi value fieldcom.lexmark.saperion.exceptions.EcmExceptionpublic DocumentElementClient getElement(com.lexmark.saperion.document.DocumentElementReferenceType elementReference) throws com.lexmark.saperion.exceptions.EcmException
DocumentRevisionClientgetElement in interface DocumentRevisionClientelementReference - the document element referencecom.lexmark.saperion.exceptions.EcmExceptionpublic void purge()
throws com.lexmark.saperion.exceptions.EcmException
DocumentRevisionClientpurge in interface DocumentRevisionClientcom.lexmark.saperion.exceptions.EcmExceptionCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.