Package com.axemble.vdoc.sdk.interfaces
Interface ITransformer
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
PortalResourceTransformer,ProcessResourceTransformer
Allows to transform directory elements to and from XML documents.
- Since:
- VDocSDK 1.0
- Author:
- Vassyly Lygeros
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidresourceToXML(IResource resource, File resourceFolder) Deprecated.: use resourceToXML( IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent ) method instead.voidresourceToXML(IResource resource, OutputStream outputStream) Deprecated.: use resourceToXML( IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent ) method instead.voidresourceToXML(IResource resource, OutputStream outputStream, boolean includeAttachmentsContent) Deprecated.: use resourceToXML( IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent ) method instead.voidresourceToXML(IResource resource, OutputStream outputStream, boolean includeAttachmentsContent, boolean includeWorkflowInstanceBody) Allows to transform aIResourceobject to an XML document.voidresourceToXML(IResource resource, OutputStream outputStream, File attachmentsFolder) Deprecated.: use resourceToXML( IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent ) method instead.voidresourceToXML(IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent) Allows to transform aIResourceobject to an XML document.voidresourceToXML(IResource resource, Collection columns, OutputStream outputStream) Allows to get values of a resource by specifying the columns to retrieve.voidsetIncludeAttachmentsContent(boolean includeAttachmentsContent) Allows to include or not the files content.voidsetIncludeLabels(boolean includeLabels) Allows to include or not the labels.voidsetIncludeLinkedResources(boolean includeLinkedResources) Allows to include or notILinkedResourceobjects.voidsetIncludeLinkedWorkflowInstances(boolean includeLinkedWorkflowInstances) Allows to include or not linkedIWorkflowInstanceobjects.voidsetIncludeStorageResources(boolean includeStorageResources) Allows to include or notIStorageResourceobjects.voidsetStopExecutionOnCriticalError(boolean stopExecutionOnCriticalError) Allows to stop the execution of the treatment if an exception occur.voiduseGuid(boolean generateGuid) Allows to specify whether to use generate a Guid or not.xmlToResource(IResource resource, InputStream inputStream) Updates a resource.xmlToResource(InputStream inputStream) Import a resource from an XML stream.xmlToResource(InputStream inputStream, File resourceFolder) Import a resource from an XML stream.
-
Method Details
-
resourceToXML
Deprecated.: use resourceToXML( IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent ) method instead.Allows to transform aIResourceobject to an XML document.- Parameters:
resource- TheIResourceto transform.outputStream- TheOutputStreamobject to write to.- Throws:
IOException
-
resourceToXML
void resourceToXML(IResource resource, OutputStream outputStream, boolean includeAttachmentsContent, boolean includeWorkflowInstanceBody) throws IOException Allows to transform aIResourceobject to an XML document.- Parameters:
resource- TheIResourceto transform.outputStream- TheOutputStreamobject to write to.includeAttachmentsContent- If true, includes the attachments into the XML stream.- Throws:
IOException
-
resourceToXML
@Deprecated void resourceToXML(IResource resource, OutputStream outputStream, boolean includeAttachmentsContent) throws IOException Deprecated.: use resourceToXML( IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent ) method instead.Allows to transform aIResourceobject to an XML document.- Parameters:
resource- TheIResourceto transform.outputStream- TheOutputStreamobject to write to.includeAttachmentsContent- If true, includes the attachments into the XML stream.- Throws:
IOException
-
resourceToXML
@Deprecated void resourceToXML(IResource resource, OutputStream outputStream, File attachmentsFolder) throws IOException Deprecated.: use resourceToXML( IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent ) method instead.Allows to transform aIResourceobject to an XML document.- Parameters:
resource- TheIResourceto transform.outputStream- TheOutputStreamobject to write to.attachmentsFolder- The directory where to export the attachments.- Throws:
IOException
-
resourceToXML
Deprecated.: use resourceToXML( IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent ) method instead.Allows to transform aIResourceobject to an XML document.- Parameters:
resource- TheIResourceto transform.resourceFolder- The directory where to export the XML stream and its attachments.- Throws:
IOException
-
resourceToXML
void resourceToXML(IResource resource, Collection columns, OutputStream outputStream) throws IOException Allows to get values of a resource by specifying the columns to retrieve.- Parameters:
resource- TheIResourceobject to request property values from.columns- ACollectionof property names.outputStream- TheOutputStreamobject to write to.- Throws:
IOException
-
resourceToXML
void resourceToXML(IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent) throws IOException Allows to transform aIResourceobject to an XML document.- Parameters:
resource- TheIResourceto transform.outputStream- TheOutputStreamobject to write to.attachmentsFolder- The directory where to export the attachments.includeAttachmentsContent- If true, includes the attachments into the XML stream.- Throws:
IOException
-
xmlToResource
Import a resource from an XML stream.- Parameters:
inputStream- TheInputStreamobject to read from.- Returns:
- A
IResourceobject. - Throws:
IOException
-
xmlToResource
Import a resource from an XML stream.- Parameters:
inputStream- TheInputStreamobject to read from.resourceFolder- The directory from where to import the attachments.- Returns:
- A
IResourceobject. - Throws:
IOException
-
xmlToResource
Updates a resource.- Parameters:
resource- TheIResourceto update.inputStream- TheInputStreamobject to read from.- Returns:
- A
IResourceobject. - Throws:
IOException
-
setIncludeAttachmentsContent
void setIncludeAttachmentsContent(boolean includeAttachmentsContent) Allows to include or not the files content. By default, the value is set to true.- Parameters:
includeAttachmentsContent- Set to false to avoid file content inclusion.
-
setIncludeLabels
void setIncludeLabels(boolean includeLabels) Allows to include or not the labels. By default, the value is set to true.- Parameters:
includeLabels- Set to false to avoid labels inclusion.
-
setIncludeLinkedResources
void setIncludeLinkedResources(boolean includeLinkedResources) Allows to include or notILinkedResourceobjects. By default, the value is set to true.- Parameters:
includeLinkedResources- Set to false to avoid linked resources inclusion.
-
setIncludeLinkedWorkflowInstances
void setIncludeLinkedWorkflowInstances(boolean includeLinkedWorkflowInstances) Allows to include or not linkedIWorkflowInstanceobjects. By default, the value is set to true.- Parameters:
includeLinkedWorkflowInstances- Set to false to avoid linked workflow instances inclusion.
-
useGuid
void useGuid(boolean generateGuid) Allows to specify whether to use generate a Guid or not.- Parameters:
generateGuid-
-
setIncludeStorageResources
void setIncludeStorageResources(boolean includeStorageResources) Allows to include or notIStorageResourceobjects. By default, the value is set to false.- Parameters:
includeStorageResources- Set to true to allow storage resources inclusion.
-
setStopExecutionOnCriticalError
void setStopExecutionOnCriticalError(boolean stopExecutionOnCriticalError) Allows to stop the execution of the treatment if an exception occur. By default, the value is set to false.- Parameters:
stopExecutionOnCriticalError- Set to true to stop the execution of the treatment if an exception occure.
-