public interface DocumentService
Modifier and Type | Method and Description |
---|---|
DocumentElementStoreInformationType |
appendChildElement(DocumentRevisionReferenceType revisionReference,
DocumentElementReferenceType elementReference,
DocumentElementType child)
This method appends a child element to the document element given by its id and the id of the document the
element resides in.
|
DocumentStoreInformationType |
createDocument(ArchiveReferenceType archiveReference,
Map<String,PropertyType> indexData,
DocumentElementType rootElement)
This method stores a new document with the given data in the backend.
|
DocumentStoreInformationType |
createDocument(CreateDocumentInputType properties)
This method stores a new document with the given data in the backend.
|
void |
deleteDocument(DocumentRevisionReferenceType revisionReferenceType)
This method deletes the document referenced to by the given reference.
|
DocumentStoreInformationType |
deleteDocumentElement(DocumentRevisionReferenceType revisionReference,
DocumentElementReferenceType elementReference)
This method deletes the document element given by its reference and a reference to the latest revision of the
element it resides in.
|
List<AclReferenceType> |
getACLs(DocumentReferenceType documentReference)
This method returns the ACLs set on the current revision of the specified document.
|
DocumentRevisionReferenceType |
getLatestRevisionId(DocumentReferenceType documentId)
This method returns the id of the latest revision of the document given by its id.
|
DocumentRevisionType |
loadDocument(DocumentReferenceType documentId,
LoadKindEnumeration loadKind)
Loads the latest
document revision with the given
document id . |
DocumentRevisionType |
loadDocument(DocumentRevisionReferenceType revisionId,
LoadKindEnumeration loadKind)
Loads a complete
document revision given its
revision id . |
void |
lockDocument(DocumentReferenceType documentReference)
This method locks a document for the current user..
|
SearchExecutionService<PropertyType> |
newMultiValueFieldSearchService(DocumentRevisionReferenceType document,
String fieldName)
This method creates a new search service that searches in the values that are set on the given multi value field
for the given document.
|
InputStream |
readDocumentElementContent(DocumentRevisionReferenceType documentId,
DocumentElementReferenceType documentElementId)
Opens the content of the document element identified by the given id for reading and returns an
input stream for that data. |
SearchExecutionService<DocumentRevisionListItemType> |
searchServiceForDefinition(ArchiveReferenceType definitionReference)
This method returns a
search service for the given definition. |
void |
unlockDocument(DocumentReferenceType documentReference)
This method unlocks a document.
|
DocumentStoreInformationType |
updateDocument(DocumentRevisionReferenceType reference,
Map<String,PropertyType> indexData,
DocumentElementType rootElement)
This method updates a document given by its revision reference with the given data.
|
DocumentStoreInformationType |
updateDocument(DocumentRevisionReferenceType reference,
UpdateDocumentInputType properties)
This method updates a document given by its revision reference with the given data.
|
DocumentElementStoreInformationType |
updateDocumentElement(DocumentRevisionReferenceType revisionReference,
DocumentElementReferenceType elementReference,
DocumentElementType element)
This method replaces the document element given by its reference and a reference to the latest revision of the
element it resides in.
|
DocumentRevisionReferenceType getLatestRevisionId(DocumentReferenceType documentId) throws EcmException
documentId
- the id of the document to get the latest revision id forEcmException
DocumentRevisionType loadDocument(DocumentRevisionReferenceType revisionId, LoadKindEnumeration loadKind) throws EcmException
document revision
given its
revision id
.revisionId
- the revision id of the document to loadEcmException
DocumentRevisionType loadDocument(DocumentReferenceType documentId, LoadKindEnumeration loadKind) throws EcmException
document revision
with the given
document id
.documentId
- the id of the documentEcmException
InputStream readDocumentElementContent(DocumentRevisionReferenceType documentId, DocumentElementReferenceType documentElementId) throws EcmException
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 elementEcmException
DocumentStoreInformationType createDocument(ArchiveReferenceType archiveReference, Map<String,PropertyType> indexData, DocumentElementType rootElement) throws EcmException
archiveReference
- a reference to the archive to store the document inindexData
- the index data the document will hold.rootElement
- the documents root elementEcmException
DocumentStoreInformationType createDocument(CreateDocumentInputType properties) throws EcmException
properties
- the properties of the new documentEcmException
DocumentStoreInformationType updateDocument(DocumentRevisionReferenceType reference, Map<String,PropertyType> indexData, DocumentElementType rootElement) throws EcmException
reference
- a reference to the latest revision of the documentindexData
- the index data to changerootElement
- the new root elementEcmException
DocumentStoreInformationType updateDocument(DocumentRevisionReferenceType reference, UpdateDocumentInputType properties) throws EcmException
reference
- a reference to the latest revision of the documentproperties
- the properties to updateEcmException
DocumentElementStoreInformationType appendChildElement(DocumentRevisionReferenceType revisionReference, DocumentElementReferenceType elementReference, DocumentElementType child) throws EcmException
DocumentNodeType.STRUCTURE
.revisionReference
- a reference to the document revision the element resides inelementReference
- a reference to the structure element to add a child tochild
- the data of the child to addEcmException
DocumentElementStoreInformationType updateDocumentElement(DocumentRevisionReferenceType revisionReference, DocumentElementReferenceType elementReference, DocumentElementType element) throws EcmException
revisionReference
- a reference to the latest revision the element resides inelementReference
- a reference to the element to replaceelement
- the data to replace the element withEcmException
DocumentStoreInformationType deleteDocumentElement(DocumentRevisionReferenceType revisionReference, DocumentElementReferenceType elementReference) throws EcmException
revisionReference
- a reference to the revision the element resides inelementReference
- a reference to the element to deleteEcmException
SearchExecutionService<DocumentRevisionListItemType> searchServiceForDefinition(ArchiveReferenceType definitionReference) throws EcmException
search service
for the given definition.definitionReference
- a reference to the definition to search inEcmException
void deleteDocument(DocumentRevisionReferenceType revisionReferenceType) throws EcmException
ConcurrentWriteException
is thrown.revisionReferenceType
- a reference to the document revision to deleteEcmException
- on general errorsConcurrentWriteException
- when the given revision reference
references an outdated revisionSearchExecutionService<PropertyType> newMultiValueFieldSearchService(DocumentRevisionReferenceType document, String fieldName) throws EcmException
document
- the document to search infieldName
- the multi value field to search inEcmException
- when the service could not be createdvoid lockDocument(DocumentReferenceType documentReference) throws EcmException
documentReference
- the reference to the document to lockEcmException
- when locking the document failedvoid unlockDocument(DocumentReferenceType documentReference) throws EcmException
documentReference
- the reference to the document to unlockEcmException
- when unlocking the document failedList<AclReferenceType> getACLs(DocumentReferenceType documentReference) throws EcmException
documentReference
- the document to load the ACLs forEcmException
- when loading the ACLs failedCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.