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
DocumentRevisionClient
loadMetadata
in interface DocumentRevisionClient
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurredpublic com.lexmark.saperion.document.DocumentRevisionType load() throws com.lexmark.saperion.exceptions.EcmException
DocumentRevisionClient
load
in interface DocumentRevisionClient
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurredpublic void delete() throws com.lexmark.saperion.exceptions.EcmException
DocumentRevisionClient
delete
in interface DocumentRevisionClient
com.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
DocumentRevisionClient
update
in interface DocumentRevisionClient
indexData
- 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
DocumentRevisionClient
update(Collections.<String, PropertyType> emptyMap(), documentElement)
updating only the document element and leaving the index data untouched.update
in interface DocumentRevisionClient
documentElement
- the new document root structurecom.lexmark.saperion.exceptions.EcmException
public com.lexmark.saperion.document.DocumentStoreInformationType update(Map<String,com.lexmark.saperion.PropertyType> indexData) throws com.lexmark.saperion.exceptions.EcmException
DocumentRevisionClient
update(indexData, null)
updating only the index data and leaving the document
structure untouched.update
in interface DocumentRevisionClient
indexData
- the index data changes of the documentcom.lexmark.saperion.exceptions.EcmException
public com.lexmark.saperion.document.DocumentStoreInformationType update(com.lexmark.saperion.document.UpdateDocumentInputType properties) throws com.lexmark.saperion.exceptions.EcmException
DocumentRevisionClient
update
in interface DocumentRevisionClient
properties
- 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
DocumentRevisionClient
writeFulltextData
in interface DocumentRevisionClient
fieldName
- 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
DocumentRevisionClient
searchMultiValueField
in interface DocumentRevisionClient
fieldName
- the name of the multi value fieldcom.lexmark.saperion.exceptions.EcmException
public DocumentElementClient getElement(com.lexmark.saperion.document.DocumentElementReferenceType elementReference) throws com.lexmark.saperion.exceptions.EcmException
DocumentRevisionClient
getElement
in interface DocumentRevisionClient
elementReference
- the document element referencecom.lexmark.saperion.exceptions.EcmException
public void purge() throws com.lexmark.saperion.exceptions.EcmException
DocumentRevisionClient
purge
in interface DocumentRevisionClient
com.lexmark.saperion.exceptions.EcmException
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.