public interface ITransformer extends Serializable
IWorkflowInstance,
ILinkedResource,
IFile,
IVersion| Modifier and Type | Method and Description |
|---|---|
void |
resourceToXML(IResource resource,
Collection columns,
OutputStream outputStream)
Allows to get values of a resource by specifying the columns to retrieve.
|
void |
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 a
IResource 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 a
IResource object to an XML document. |
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 not
ILinkedResource objects. |
void |
setIncludeLinkedWorkflowInstances(boolean includeLinkedWorkflowInstances)
Allows to include or not linked
IWorkflowInstance objects. |
void |
setIncludeStorageResources(boolean includeStorageResources)
Allows to include or not
IStorageResource 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.
|
IResource |
xmlToResource(InputStream inputStream)
Import a resource from an XML stream.
|
IResource |
xmlToResource(InputStream inputStream,
File resourceFolder)
Import a resource from an XML stream.
|
IResource |
xmlToResource(IResource resource,
InputStream inputStream)
Updates a resource.
|
@Deprecated void resourceToXML(IResource resource, OutputStream outputStream) throws IOException
IResource object to an XML document.resource - The IResource to transform.outputStream - The OutputStream object to write to.IOExceptionvoid resourceToXML(IResource resource, OutputStream outputStream, boolean includeAttachmentsContent, boolean includeWorkflowInstanceBody) throws IOException
IResource object to an XML document.resource - The IResource to transform.outputStream - The OutputStream object to write to.includeAttachmentsContent - If true, includes the attachments into the XML stream.IOException@Deprecated void resourceToXML(IResource resource, OutputStream outputStream, boolean includeAttachmentsContent) throws IOException
IResource object to an XML document.resource - The IResource to transform.outputStream - The OutputStream object to write to.includeAttachmentsContent - If true, includes the attachments into the XML stream.IOException@Deprecated void resourceToXML(IResource resource, OutputStream outputStream, File attachmentsFolder) throws IOException
IResource object to an XML document.resource - The IResource to transform.outputStream - The OutputStream object to write to.attachmentsFolder - The directory where to export the attachments.IOException@Deprecated void resourceToXML(IResource resource, File resourceFolder) throws IOException
IResource object to an XML document.resource - The IResource to transform.resourceFolder - The directory where to export the XML stream and its attachments.IOExceptionvoid resourceToXML(IResource resource, Collection columns, OutputStream outputStream) throws IOException
resource - The IResource object to request property values from.columns - A Collection of property names.outputStream - The OutputStream object to write to.IOExceptionvoid resourceToXML(IResource resource, OutputStream outputStream, File attachmentsFolder, boolean includeAttachmentsContent) throws IOException
IResource object to an XML document.resource - The IResource to transform.outputStream - The OutputStream object to write to.attachmentsFolder - The directory where to export the attachments.includeAttachmentsContent - If true, includes the attachments into the XML stream.IOExceptionIResource xmlToResource(InputStream inputStream) throws IOException
inputStream - The InputStream object to read from.IResource object.IOExceptionIResource xmlToResource(InputStream inputStream, File resourceFolder) throws IOException
inputStream - The InputStream object to read from.resourceFolder - The directory from where to import the attachments.IResource object.IOExceptionIResource xmlToResource(IResource resource, InputStream inputStream) throws IOException
resource - The IResource to update.inputStream - The InputStream object to read from.IResource object.IOExceptionvoid setIncludeAttachmentsContent(boolean includeAttachmentsContent)
includeAttachmentsContent - Set to false to avoid file content inclusion.void setIncludeLabels(boolean includeLabels)
includeLabels - Set to false to avoid labels inclusion.void setIncludeLinkedResources(boolean includeLinkedResources)
ILinkedResource objects. By default, the value is set to true.includeLinkedResources - Set to false to avoid linked resources inclusion.void setIncludeLinkedWorkflowInstances(boolean includeLinkedWorkflowInstances)
IWorkflowInstance objects. By default, the value is set to true.includeLinkedWorkflowInstances - Set to false to avoid linked workflow instances inclusion.void useGuid(boolean generateGuid)
generateGuid - void setIncludeStorageResources(boolean includeStorageResources)
IStorageResource objects. By default, the value is set to false.includeStorageResources - Set to true to allow storage resources inclusion.void setStopExecutionOnCriticalError(boolean stopExecutionOnCriticalError)
stopExecutionOnCriticalError - Set to true to stop the execution of the treatment if an exception occure.Copyright © 2022 Visiativ. All rights reserved.