public interface HandlerCtx
Modifier and Type | Interface and Description |
---|---|
static interface |
HandlerCtx.PackageDependency
Represents a dependency, which the generated package is dependent upon.
|
static interface |
HandlerCtx.PackageEntry
Represents an entry in the generated package.
|
static interface |
HandlerCtx.TableExportEntry
This is an extended package entry, which represents a table export.
|
static interface |
HandlerCtx.XMLWriterEntry |
Modifier and Type | Method and Description |
---|---|
HandlerCtx.PackageEntry |
add(java.io.InputStream in)
Adds an arbitrary
InputStream to the package. |
HandlerCtx.PackageEntry |
add(java.io.Reader reader)
Adds an arbitrary
Reader to the package. |
HandlerCtx.PackageEntry |
add(java.lang.String data)
Adds an arbitrary string to the package.
|
HandlerCtx.PackageEntry |
addDataProvider(DataProvider dataProvider)
Adds an arbitrary
data provider to the package |
HandlerCtx.TableExportEntry |
addExpandedData(java.lang.String[] rootObjectIds,
java.lang.String roleName,
java.lang.String[] filterNames,
int expandLevels,
java.lang.String tableName)
Adds the output from a structure expansion
|
HandlerCtx.TableExportEntry |
addExpandedData(java.lang.String rootObjectId,
java.lang.String roleName,
java.lang.String[] filterNames,
int expandLevels,
java.lang.String tableName)
Adds the output from a structure expansion
|
HandlerCtx.PackageEntry |
addExportBus(java.lang.String typePattern,
java.lang.String namePattern,
java.lang.String revPattern)
Adds the result of a export businessobject output
|
HandlerCtx.PackageEntry |
addExportBus(java.lang.String typePattern,
java.lang.String namePattern,
java.lang.String revPattern,
boolean files,
boolean captured,
boolean icons,
boolean history,
boolean fromRelationships,
boolean toRelationships,
boolean states,
boolean archive,
javax.xml.transform.Source xslt,
java.util.Map<java.lang.String,java.lang.String> parameters)
Adds the result of a export business object output transformed via the
provided XSLT stylesheet.
|
HandlerCtx.PackageEntry |
addExportBus(java.lang.String typePattern,
java.lang.String namePattern,
java.lang.String revPattern,
javax.xml.transform.Source xslt,
java.util.Map<java.lang.String,java.lang.String> parameters)
Adds the result of a export businessobject output transformed via the
provided XSLT stylesheet.
|
HandlerCtx.PackageEntry |
addFile(java.lang.String objectId,
java.lang.String format,
java.lang.String fileName)
Adds a file from a businessobject to the package.
|
HandlerCtx.PackageEntry |
addFile(java.lang.String type,
java.lang.String name,
java.lang.String revision,
java.lang.String format,
java.lang.String fileName)
Adds a file from a businessobject to the package.
|
HandlerCtx.PackageEntry |
addFile(java.lang.String type,
java.lang.String name,
java.lang.String revision,
java.lang.String vault,
java.lang.String format,
java.lang.String fileName)
Adds a file from a businessobject to the package.
|
HandlerCtx.PackageDependency |
addFileDependency(java.lang.String objectId,
java.lang.String format,
java.lang.String fileName)
Adds a
file dependency |
HandlerCtx.PackageDependency |
addFileDependency(java.lang.String type,
java.lang.String name,
java.lang.String revision,
java.lang.String format,
java.lang.String fileName)
Adds a
file dependency |
HandlerCtx.PackageDependency |
addFileDependency(java.lang.String type,
java.lang.String name,
java.lang.String revision,
java.lang.String vault,
java.lang.String format,
java.lang.String fileName)
Adds a
file dependency |
HandlerCtx.PackageEntry |
addJPO(java.lang.String jpo,
java.lang.String function)
Adds the output from a JPO execution.
|
HandlerCtx.PackageEntry |
addJPO(java.lang.String jpo,
java.lang.String function,
java.io.Serializable argument)
Adds the output from a JPO execution.
|
HandlerCtx.PackageEntry |
addMQL(java.lang.String mqlCommand)
Adds the output from a MQL command execution.
|
HandlerCtx.PackageEntry |
addMQL(java.lang.String mqlCommand,
boolean parseMacros)
Adds mql code, and parses the mql code and resolves any macros before the
command is executed.
|
HandlerCtx.PackageEntry |
addMQL(java.lang.String mqlCommand,
java.util.Map<java.lang.String,java.lang.String> macros)
Adds mql code, and parses the mql code and resolves the macros within the
provided map (if available), before the command is executed.
|
HandlerCtx.PackageEntry |
addPageContent(java.lang.String pageName)
Adds the content of a page object as resource
|
void |
addReleasableResource(com.technia.tvc.office.server.fpd.ReleasableResource rr)
Adds something needed to be released at the same time as the package is
released.
|
HandlerCtx.TableExportEntry |
addTable(TableBean<? extends TableData> table)
Adds a custom table bean to the package.
|
HandlerCtx.TableExportEntry |
addTableData(java.lang.String inquiryName,
java.util.Map<java.lang.String,java.lang.String> args,
java.lang.String tableName)
Adds the objects returned by the specified inquiry, evaluated with the
specified table.
|
HandlerCtx.TableExportEntry |
addTableData(java.lang.String dataSet,
java.lang.String tableName) |
HandlerCtx.TableExportEntry |
addTableData(java.lang.String jpoName,
java.lang.String function,
java.util.Map<java.lang.String,java.lang.String> args,
java.lang.String tableName)
Adds the objects returned by the specified JPO, evaluated with the
specified table.
|
HandlerCtx.TableExportEntry |
addTableData(java.lang.String typePattern,
java.lang.String namePattern,
java.lang.String revPattern,
java.lang.String ownerPattern,
java.lang.String vaultPattern,
java.lang.String whereClause,
int limit,
boolean expandType,
java.lang.String tableName)
Adds the objects returned by the query arguments, evaluated with the
specified table.
|
HandlerCtx.PackageEntry |
addTransformXML(javax.xml.transform.Source in,
javax.xml.transform.Source xslt)
Adds an arbitrary
Source representing XML data, which is
converted via the provided xslt source to the package. |
HandlerCtx.PackageEntry |
addTransformXML(javax.xml.transform.Source document,
javax.xml.transform.Source xslt,
java.util.Map<java.lang.String,java.lang.String> parameters)
Adds an arbitrary
Source representing XML data, which is
converted via the provided xslt source to the package
using the XSLT parameters from the Map. |
HandlerCtx.PackageDependency |
addURL(java.lang.String url)
Adds a custom url to be included within the package.
|
HandlerCtx.XMLWriterEntry |
addXML() |
HandlerCtx.PackageEntry |
addXML(org.w3c.dom.Document doc)
Adds a DOM document
|
HandlerCtx.PackageEntry |
addXML(org.xml.sax.InputSource in)
Adds an arbitrary
InputSource to the package. |
UserData |
getUserData()
Returns the
UserData containing relevant information about how
this handler were instantiated. |
boolean |
removeDependency(HandlerCtx.PackageDependency dep)
Removes a previously added dependency.
|
UserData getUserData()
UserData
containing relevant information about how
this handler were instantiated.HandlerCtx.PackageEntry add(java.io.InputStream in)
InputStream
to the package.in
- The input stream, which the data is read fromentry
used for defining properties on the
entry.HandlerCtx.PackageEntry add(java.io.Reader reader)
Reader
to the package.reader
- The reader, which the data is read fromentry
used for defining properties on the
entry.HandlerCtx.PackageEntry add(java.lang.String data)
data
- The data to be addedentry
used for defining properties on the
entry.HandlerCtx.XMLWriterEntry addXML()
HandlerCtx.XMLWriterEntry
, to which you can write XML data.HandlerCtx.PackageEntry addXML(org.w3c.dom.Document doc)
doc
- entry
used for defining properties on the
entry.HandlerCtx.PackageEntry addXML(org.xml.sax.InputSource in)
InputSource
to the package.in
- The input source, which the XML data is read fromentry
used for defining properties on the
entry.HandlerCtx.PackageDependency addURL(java.lang.String url)
url
- The url to add. If the url doesnt start with HTTP or HTTPS,
the url is considered to be relative to the application context
path.dependency
HandlerCtx.PackageEntry addTransformXML(javax.xml.transform.Source in, javax.xml.transform.Source xslt)
Source
representing XML data, which is
converted via the provided xslt source
to the package.in
- The XML sourcexslt
- The XSLT source.entry
used for defining properties on the
entry.HandlerCtx.PackageEntry addTransformXML(javax.xml.transform.Source document, javax.xml.transform.Source xslt, java.util.Map<java.lang.String,java.lang.String> parameters)
Source
representing XML data, which is
converted via the provided xslt source
to the package
using the XSLT parameters from the Map.document
- The XML sourcexslt
- The XSLT source.parameters
- The parameter mapentry
used for defining properties on the
entry.HandlerCtx.PackageEntry addPageContent(java.lang.String pageName)
pageName
- The name of the page object to include in the package.entry
used for defining properties on the
entry.HandlerCtx.PackageEntry addExportBus(java.lang.String typePattern, java.lang.String namePattern, java.lang.String revPattern)
typePattern
- The type patternnamePattern
- The name patternrevPattern
- The revision patternentry
used for defining properties on the
entry.HandlerCtx.PackageEntry addExportBus(java.lang.String typePattern, java.lang.String namePattern, java.lang.String revPattern, javax.xml.transform.Source xslt, java.util.Map<java.lang.String,java.lang.String> parameters)
typePattern
- The type patternnamePattern
- The name patternrevPattern
- The revision patternxslt
- The stylesheetparameters
- A map containing parameters (optional)entry
used for defining properties on the
entry.HandlerCtx.PackageEntry addExportBus(java.lang.String typePattern, java.lang.String namePattern, java.lang.String revPattern, boolean files, boolean captured, boolean icons, boolean history, boolean fromRelationships, boolean toRelationships, boolean states, boolean archive, javax.xml.transform.Source xslt, java.util.Map<java.lang.String,java.lang.String> parameters)
typePattern
- namePattern
- revPattern
- files
- captured
- icons
- history
- fromRelationships
- toRelationships
- states
- archive
- xslt
- parameters
- entry
used for defining properties on the
entry.HandlerCtx.PackageEntry addJPO(java.lang.String jpo, java.lang.String function)
jpo
- function
- entry
used for defining properties on the
entry.HandlerCtx.PackageEntry addJPO(java.lang.String jpo, java.lang.String function, java.io.Serializable argument)
jpo
- The name of the JPO to invokefunction
- The name of the method to invoke.argument
- An argument.entry
used for defining properties on the
entry.HandlerCtx.PackageEntry addMQL(java.lang.String mqlCommand)
addMQL(String, boolean)
with second arg set to true.mqlCommand
- The command to executeentry
used for defining properties on the
entry.HandlerCtx.PackageEntry addMQL(java.lang.String mqlCommand, boolean parseMacros)
mqlCommand
- The command to execute.parseMacros
- True of false if to parse macrosentry
used for defining properties on the
entry.HandlerCtx.PackageEntry addMQL(java.lang.String mqlCommand, java.util.Map<java.lang.String,java.lang.String> macros)
mqlCommand
- The command to be executedmacros
- The map containing the macros to be substituted.entry
used for defining properties on the
entry.HandlerCtx.PackageEntry addFile(java.lang.String type, java.lang.String name, java.lang.String revision, java.lang.String format, java.lang.String fileName)
type
- The typename
- The namerevision
- The revisionformat
- The formatfileName
- The name of the fileentry
used for defining properties on the
entry.HandlerCtx.PackageEntry addFile(java.lang.String type, java.lang.String name, java.lang.String revision, java.lang.String vault, java.lang.String format, java.lang.String fileName)
type
- The object typename
- The object namerevision
- The object revisionvault
- The vault, which the object is stored informat
- The format of the filefileName
- The name of the fileentry
used for defining properties on the
entry.HandlerCtx.PackageEntry addFile(java.lang.String objectId, java.lang.String format, java.lang.String fileName)
objectId
- The id of the objectformat
- The formatfileName
- The name of the fileentry
used for defining properties on the
entry.HandlerCtx.PackageEntry addDataProvider(DataProvider dataProvider)
data provider
to the packagedataProvider
- entry
used for defining properties on the
entry.HandlerCtx.TableExportEntry addExpandedData(java.lang.String rootObjectId, java.lang.String roleName, java.lang.String[] filterNames, int expandLevels, java.lang.String tableName)
rootObjectId
- The id of the object to expandroleName
- The name of the role, which the filters are stored on.filterNames
- The names of the filters to use.expandLevels
- The number of levels to expandtableName
- The name of the table to apply on the resultHandlerCtx.TableExportEntry
HandlerCtx.TableExportEntry addExpandedData(java.lang.String[] rootObjectIds, java.lang.String roleName, java.lang.String[] filterNames, int expandLevels, java.lang.String tableName)
rootObjectIds
- The id's of the object's to expandroleName
- The name of the role, which the filters are stored on.filterNames
- The names of the filters to use.expandLevels
- The number of levels to expandtableName
- The name of the table to apply on the resultHandlerCtx.TableExportEntry
HandlerCtx.TableExportEntry addTableData(java.lang.String inquiryName, java.util.Map<java.lang.String,java.lang.String> args, java.lang.String tableName)
inquiryName
- The name of the inquiry to invokeargs
- The inquiry argumentstableName
- The name of the table to apply on the resultHandlerCtx.TableExportEntry
HandlerCtx.TableExportEntry addTableData(java.lang.String jpoName, java.lang.String function, java.util.Map<java.lang.String,java.lang.String> args, java.lang.String tableName)
jpoName
- The name of the JPO to invokefunction
- The name of the function to invoke.args
- The JPO argumentstableName
- The name of the table to apply on the resultHandlerCtx.TableExportEntry
HandlerCtx.TableExportEntry addTableData(java.lang.String typePattern, java.lang.String namePattern, java.lang.String revPattern, java.lang.String ownerPattern, java.lang.String vaultPattern, java.lang.String whereClause, int limit, boolean expandType, java.lang.String tableName)
typePattern
- The type patternnamePattern
- The name patternrevPattern
- The revision patternownerPattern
- The owner patternvaultPattern
- The vault patternwhereClause
- The where clauselimit
- The query limitexpandType
- True if to include sub types to the specified type
patterntableName
- The name of the table to apply on the resultHandlerCtx.TableExportEntry
HandlerCtx.TableExportEntry addTableData(java.lang.String dataSet, java.lang.String tableName)
dataSet
- tableName
- HandlerCtx.TableExportEntry
HandlerCtx.TableExportEntry addTable(TableBean<? extends TableData> table)
table
- The tablebean to add.HandlerCtx.TableExportEntry
HandlerCtx.PackageDependency addFileDependency(java.lang.String type, java.lang.String name, java.lang.String revision, java.lang.String format, java.lang.String fileName)
file dependency
type
- The object typename
- The object namerevision
- The object revisionformat
- The format of the filefileName
- The name of the filedependency
used for defining
properties on the entry.HandlerCtx.PackageDependency addFileDependency(java.lang.String type, java.lang.String name, java.lang.String revision, java.lang.String vault, java.lang.String format, java.lang.String fileName)
file dependency
type
- The object typename
- The object namerevision
- The object revisionvault
- The vault, which the object is stored informat
- The format of the filefileName
- The name of the filedependency
used for defining
properties on the entry.HandlerCtx.PackageDependency addFileDependency(java.lang.String objectId, java.lang.String format, java.lang.String fileName)
file dependency
objectId
- The id of the objectformat
- The format of the filfileName
- The name of the filedependency
used for defining
properties on the entry.boolean removeDependency(HandlerCtx.PackageDependency dep)
dep
- The depenency to be removedvoid addReleasableResource(com.technia.tvc.office.server.fpd.ReleasableResource rr)
rr
- The resource to be released afterwardCopyright © Technia AB. All Rights Reserved.