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 SummaryModifier 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- 
resourceToXMLDeprecated.: use resourceToXML( IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent ) method instead.Allows to transform aIResourceobject to an XML document.- Parameters:
- resource- The- IResourceto transform.
- outputStream- The- OutputStreamobject to write to.
- Throws:
- IOException
 
- 
resourceToXMLvoid resourceToXML(IResource resource, OutputStream outputStream, boolean includeAttachmentsContent, boolean includeWorkflowInstanceBody) throws IOException Allows to transform aIResourceobject to an XML document.- Parameters:
- resource- The- IResourceto transform.
- outputStream- The- OutputStreamobject 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- The- IResourceto transform.
- outputStream- The- OutputStreamobject 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- The- IResourceto transform.
- outputStream- The- OutputStreamobject to write to.
- attachmentsFolder- The directory where to export the attachments.
- Throws:
- IOException
 
- 
resourceToXMLDeprecated.: use resourceToXML( IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent ) method instead.Allows to transform aIResourceobject to an XML document.- Parameters:
- resource- The- IResourceto transform.
- resourceFolder- The directory where to export the XML stream and its attachments.
- Throws:
- IOException
 
- 
resourceToXMLvoid resourceToXML(IResource resource, Collection columns, OutputStream outputStream) throws IOException Allows to get values of a resource by specifying the columns to retrieve.- Parameters:
- resource- The- IResourceobject to request property values from.
- columns- A- Collectionof property names.
- outputStream- The- OutputStreamobject to write to.
- Throws:
- IOException
 
- 
resourceToXMLvoid resourceToXML(IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent) throws IOException Allows to transform aIResourceobject to an XML document.- Parameters:
- resource- The- IResourceto transform.
- outputStream- The- OutputStreamobject to write to.
- attachmentsFolder- The directory where to export the attachments.
- includeAttachmentsContent- If true, includes the attachments into the XML stream.
- Throws:
- IOException
 
- 
xmlToResourceImport a resource from an XML stream.- Parameters:
- inputStream- The- InputStreamobject to read from.
- Returns:
- A IResourceobject.
- Throws:
- IOException
 
- 
xmlToResourceImport a resource from an XML stream.- Parameters:
- inputStream- The- InputStreamobject to read from.
- resourceFolder- The directory from where to import the attachments.
- Returns:
- A IResourceobject.
- Throws:
- IOException
 
- 
xmlToResourceUpdates a resource.- Parameters:
- resource- The- IResourceto update.
- inputStream- The- InputStreamobject to read from.
- Returns:
- A IResourceobject.
- Throws:
- IOException
 
- 
setIncludeAttachmentsContentvoid 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.
 
- 
setIncludeLabelsvoid 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.
 
- 
setIncludeLinkedResourcesvoid 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.
 
- 
setIncludeLinkedWorkflowInstancesvoid 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.
 
- 
useGuidvoid useGuid(boolean generateGuid) Allows to specify whether to use generate a Guid or not.- Parameters:
- generateGuid-
 
- 
setIncludeStorageResourcesvoid 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.
 
- 
setStopExecutionOnCriticalErrorvoid 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.
 
 
-