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 TypeMethodDescriptionvoid
resourceToXML
(IResource resource, File resourceFolder) Deprecated.: use resourceToXML( IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent ) method instead.void
resourceToXML
(IResource resource, OutputStream outputStream) Deprecated.: use resourceToXML( IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent ) method instead.void
resourceToXML
(IResource resource, OutputStream outputStream, boolean includeAttachmentsContent) Deprecated.: use resourceToXML( IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent ) method instead.void
resourceToXML
(IResource resource, OutputStream outputStream, boolean includeAttachmentsContent, boolean includeWorkflowInstanceBody) Allows to transform aIResource
object to an XML document.void
resourceToXML
(IResource resource, OutputStream outputStream, File attachmentsFolder) Deprecated.: use resourceToXML( IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent ) method instead.void
resourceToXML
(IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent) Allows to transform aIResource
object to an XML document.void
resourceToXML
(IResource resource, Collection columns, OutputStream outputStream) Allows to get values of a resource by specifying the columns to retrieve.void
setIncludeAttachmentsContent
(boolean includeAttachmentsContent) Allows to include or not the files content.void
setIncludeLabels
(boolean includeLabels) Allows to include or not the labels.void
setIncludeLinkedResources
(boolean includeLinkedResources) Allows to include or notILinkedResource
objects.void
setIncludeLinkedWorkflowInstances
(boolean includeLinkedWorkflowInstances) Allows to include or not linkedIWorkflowInstance
objects.void
setIncludeStorageResources
(boolean includeStorageResources) Allows to include or notIStorageResource
objects.void
setStopExecutionOnCriticalError
(boolean stopExecutionOnCriticalError) Allows to stop the execution of the treatment if an exception occur.void
useGuid
(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 aIResource
object to an XML document.- Parameters:
resource
- TheIResource
to transform.outputStream
- TheOutputStream
object to write to.- Throws:
IOException
-
resourceToXML
void resourceToXML(IResource resource, OutputStream outputStream, boolean includeAttachmentsContent, boolean includeWorkflowInstanceBody) throws IOException Allows to transform aIResource
object to an XML document.- Parameters:
resource
- TheIResource
to transform.outputStream
- TheOutputStream
object 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 aIResource
object to an XML document.- Parameters:
resource
- TheIResource
to transform.outputStream
- TheOutputStream
object 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 aIResource
object to an XML document.- Parameters:
resource
- TheIResource
to transform.outputStream
- TheOutputStream
object 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 aIResource
object to an XML document.- Parameters:
resource
- TheIResource
to 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
- TheIResource
object to request property values from.columns
- ACollection
of property names.outputStream
- TheOutputStream
object to write to.- Throws:
IOException
-
resourceToXML
void resourceToXML(IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent) throws IOException Allows to transform aIResource
object to an XML document.- Parameters:
resource
- TheIResource
to transform.outputStream
- TheOutputStream
object 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
- TheInputStream
object to read from.- Returns:
- A
IResource
object. - Throws:
IOException
-
xmlToResource
Import a resource from an XML stream.- Parameters:
inputStream
- TheInputStream
object to read from.resourceFolder
- The directory from where to import the attachments.- Returns:
- A
IResource
object. - Throws:
IOException
-
xmlToResource
Updates a resource.- Parameters:
resource
- TheIResource
to update.inputStream
- TheInputStream
object to read from.- Returns:
- A
IResource
object. - 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 notILinkedResource
objects. 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 linkedIWorkflowInstance
objects. 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 notIStorageResource
objects. 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.
-