Class DocumentElementClientImpl
java.lang.Object
com.lexmark.saperion.client.implementation.document.DocumentElementClientImpl
- All Implemented Interfaces:
- DocumentElementClient
This is the default implementation of 
DocumentElementClient.- Author:
- jschwarz
- 
Constructor SummaryConstructorsConstructorDescriptionDocumentElementClientImpl(com.lexmark.saperion.document.DocumentService documentService, com.lexmark.saperion.document.DocumentRevisionReferenceType revisionReference, com.lexmark.saperion.document.DocumentElementReferenceType reference) 
- 
Method SummaryModifier and TypeMethodDescriptioncom.lexmark.saperion.document.DocumentElementStoreInformationTypeappendChild(com.lexmark.saperion.document.DocumentElementType element) This method appends a given document element as a child to the current one.voiddelete()This method deletes the current document element.This method Opens the content of the document element identified by the given id for reading and returns aninput streamfor that data.renderContent(com.lexmark.saperion.document.RenditionType renditionType, com.lexmark.saperion.document.RenderOption... renderOptions) This method render the content of the given element into given type with given options and return asInputStreamcom.lexmark.saperion.document.DocumentElementStoreInformationTypeupdate(com.lexmark.saperion.document.DocumentElementType element) This method updates the document element instance and replaces it with the given entity.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.lexmark.saperion.client.document.DocumentElementClientrenderContent
- 
Constructor Details- 
DocumentElementClientImplpublic DocumentElementClientImpl(com.lexmark.saperion.document.DocumentService documentService, com.lexmark.saperion.document.DocumentRevisionReferenceType revisionReference, com.lexmark.saperion.document.DocumentElementReferenceType reference) 
 
- 
- 
Method Details- 
updatepublic com.lexmark.saperion.document.DocumentElementStoreInformationType update(com.lexmark.saperion.document.DocumentElementType element) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:DocumentElementClientThis method updates the document element instance and replaces it with the given entity.- Specified by:
- updatein interface- DocumentElementClient
- Parameters:
- element- the update document element input
- Throws:
- com.lexmark.saperion.exceptions.EcmException- indicates that a system exception occurred
 
- 
appendChildpublic com.lexmark.saperion.document.DocumentElementStoreInformationType appendChild(com.lexmark.saperion.document.DocumentElementType element) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:DocumentElementClientThis method appends a given document element as a child to the current one. This method is only valid for structure composite document elements.- Specified by:
- appendChildin interface- DocumentElementClient
- Parameters:
- element- the element to append
- Throws:
- com.lexmark.saperion.exceptions.EcmException
 
- 
loadContentDescription copied from interface:DocumentElementClientThis method Opens the content of the document element identified by the given id for reading and returns aninput streamfor that data. If the element is chunked the resulting stream will stream over all the chunks.- Specified by:
- loadContentin interface- DocumentElementClient
- Returns:
- an input streamfor the content of the given document element
- Throws:
- com.lexmark.saperion.exceptions.EcmException- indicates that a system exception occurred
 
- 
renderContentpublic InputStream renderContent(com.lexmark.saperion.document.RenditionType renditionType, com.lexmark.saperion.document.RenderOption... renderOptions) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:DocumentElementClientThis method render the content of the given element into given type with given options and return asInputStream- Specified by:
- renderContentin interface- DocumentElementClient
- Returns:
- An instance of InputStream
- Throws:
- com.lexmark.saperion.exceptions.EcmException
 
- 
deletepublic void delete() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:DocumentElementClientThis method deletes the current document element.- Specified by:
- deletein interface- DocumentElementClient
- Throws:
- com.lexmark.saperion.exceptions.EcmException- indicates that a system exception occurred
 
 
-