public final class DocumentManager extends Object implements Public
WfEngine.getContext()
)ThreadContext.getThreadPrincipal()
Constructor and Description |
---|
DocumentManager() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
convert(DMSDocForm document,
String targetExtension)
converts a document between different formats
|
static byte[] |
convert(InputStream document,
String sourceExtension,
String targetExtension)
converts a document between different formats
|
static byte[] |
mixin(DMSDocForm template,
ActivityInstance pi)
fill in the given template
|
static byte[] |
mixin(DMSDocForm template,
DMSForm form)
fill in the given template
|
static byte[] |
mixin(DMSDocForm template,
Map<String,?> context)
fill in the given template
|
static byte[] |
mixin(InputStream template,
ActivityInstance ai)
fill in the given template
|
static byte[] |
mixin(InputStream template,
DMSForm form)
fill in the given template
|
static byte[] |
mixin(InputStream template,
Map<String,?> context)
fill in the given template
|
static byte[] |
mixin(InputStream template,
org.jaxen.VariableContext ctx)
performs the substitutions using the given
VariableContext |
public static byte[] convert(DMSDocForm document, String targetExtension)
document
- the document to converttargetExtension
- the target-extensionpublic static byte[] convert(InputStream document, String sourceExtension, String targetExtension)
document
- the document to convertsourceExtension
- the input-document's extension (e.g.: odt, doc)targetExtension
- the target document'ts extension (e.g.: pdf, doc)public static byte[] mixin(DMSDocForm template, ActivityInstance pi)
template
- the template. has to be an odt filepi
- the process-context for the xpath evaluationspublic static byte[] mixin(DMSDocForm template, DMSForm form)
template
- the template. has to be an odt fileform
- the form context for the xpath evaluations. the form may be accessed using the $form
variable in xpathpublic static byte[] mixin(DMSDocForm template, Map<String,?> context)
template
- the template. has to be an odt filecontext
- see: mixin(InputStream, Map)
public static byte[] mixin(InputStream template, ActivityInstance ai)
template
- the template. has to be an odt fileai
- the workflow-context used for xpath evaluation. see WfVariableContext
for a list of available xpath-variablespublic static byte[] mixin(InputStream template, DMSForm form)
template
- the template. has to be an odt fileform
- the form-context for xpath evaluation. the form may be accessed using the $form
variable in xpathpublic static byte[] mixin(InputStream template, Map<String,?> context)
template
- the templatecontext
- the context for the xpath evaluations.
public static byte[] mixin(InputStream template, org.jaxen.VariableContext ctx)
VariableContext
template
- ctx
- @enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.