public class DocumentRevisionClientImpl extends Object implements DocumentRevisionClient
DocumentRevisionClient
.Constructor and Description |
---|
DocumentRevisionClientImpl(DocumentService documentService,
DocumentRevisionReferenceType reference) |
Modifier and Type | Method and Description |
---|---|
void |
delete()
This method deletes the specified document.
|
DocumentElementClient |
getElement(DocumentElementReferenceType elementReference)
This method returns the document element client for the given document element id.
|
DocumentRevisionType |
load()
This method loads a document revision with its content.
|
DocumentRevisionType |
loadMetadata()
This method loads a document revision without its content.
|
SearchClient<PropertyType> |
searchMultiValueField(String fieldName)
This method returns a search client for the content of the given multi value field of the given document
revision.
|
DocumentStoreInformationType |
update(DocumentElementType documentElement)
This is a shorthand for
update(Collections.<String, PropertyType> emptyMap(), documentElement)
updating only the document element and leaving the index data untouched. |
DocumentStoreInformationType |
update(Map<String,PropertyType> indexData)
This is a shorthand for
update(indexData, null) updating only the index data and leaving the document
structure untouched. |
DocumentStoreInformationType |
update(Map<String,PropertyType> indexData,
DocumentElementType documentElement)
This method updates the document instance and replaces the document with the given entity.
|
DocumentStoreInformationType |
update(UpdateDocumentInputType properties)
This method updates the document with the given properties containing index-data, structure-data and ACLs.
|
public DocumentRevisionClientImpl(DocumentService documentService, DocumentRevisionReferenceType reference)
public DocumentRevisionType loadMetadata() throws EcmException
DocumentRevisionClient
loadMetadata
in interface DocumentRevisionClient
EcmException
- indicates that a system exception occurredpublic DocumentRevisionType load() throws EcmException
DocumentRevisionClient
load
in interface DocumentRevisionClient
EcmException
- indicates that a system exception occurredpublic void delete() throws EcmException
DocumentRevisionClient
delete
in interface DocumentRevisionClient
EcmException
- indicates that a system exception occurredpublic DocumentStoreInformationType update(Map<String,PropertyType> indexData, DocumentElementType documentElement) throws EcmException
DocumentRevisionClient
update
in interface DocumentRevisionClient
indexData
- the index data changes of the documentdocumentElement
- the new document root structureEcmException
- indicates that a system exception occurredpublic DocumentStoreInformationType update(DocumentElementType documentElement) throws 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 structureEcmException
public DocumentStoreInformationType update(Map<String,PropertyType> indexData) throws 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 documentEcmException
public DocumentStoreInformationType update(UpdateDocumentInputType properties) throws EcmException
DocumentRevisionClient
update
in interface DocumentRevisionClient
properties
- the properties to updateEcmException
- when updating the document failedpublic SearchClient<PropertyType> searchMultiValueField(String fieldName) throws EcmException
DocumentRevisionClient
searchMultiValueField
in interface DocumentRevisionClient
fieldName
- the name of the multi value fieldEcmException
public DocumentElementClient getElement(DocumentElementReferenceType elementReference) throws EcmException
DocumentRevisionClient
getElement
in interface DocumentRevisionClient
elementReference
- the document element referenceEcmException
Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.