Interface IExportManager
public interface IExportManager
Manages exporters and export templates, and executes exports.
Exporters are contributable using plug-ins.
- Author:
- Jiri Banszel, POLARION SOFTWARE
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The Exporter Id that outputs a tree or table of Work Items to CSV.static final String
The Exporter ID that outputs a matrix of Work Items and/or Revisions to an Excel table.static final String
The exporter ID that outputs a module to an Excel round-trip document.static final String
The Exporter ID that outputs a traceability report of Work Items and/or Revisions to an Excel table.static final String
The Exporter ID that output Work Items to an MS Project.static final String
The Exporter ID that outputs a module to a Word round-trip document.static final String
The Exporter ID that outputs a table of Work Items to HTML.static final String
The Exporter ID that outputs a table of Work Items to PDF.static final String
The Exporter ID that outputs a table of Work Items to RTF.static final String
The Exporter ID that outputs a table of Work Items to TXT.static final String
The Exporter ID that outputs a table of Work Items to XML. -
Method Summary
Modifier and TypeMethodDescriptioncreateTemplate
(IExporterDescriptor exporterDescriptor, String templateName, InputStream content) Deprecated.void
deleteTemplate
(IExporterDescriptor exporterDescriptor, String templateName) Deprecated.void
deleteTemplate
(IExporterDescriptor exporterDescriptor, String templateName, IContextId contextId) Returns an export with a given ID ornull
if it is not found.Returns the descriptor with a given ID.Deprecated.getExporterDescriptors
(String exportType) Returns descriptors of all registered exporters (sorted lexicographically by label) that support the export type (seeEXPORT_TYPE
constants in subinterfaces ofIExportConfiguration
.getExports
(IUser user) Returns all exports started by a user (newer exports first), that have yet to be removed.getTemplate
(IExporterDescriptor exporterDescriptor, String templateName) Deprecated.getTemplate
(IExporterDescriptor exporterDescriptor, String templateName, IContextId contextId) Returns a template with given name ornull
if such a template does not exist.getTemplateFactory
(String exporterId) Returns a factory for exporter templates.getTemplates
(IExporterDescriptor exporterDescriptor) Deprecated.getTemplates
(IExporterDescriptor exporterDescriptor, IContextId contextId) Returns templates available for export with a given exporter (sorted lexicographically by name) in given a context.void
removeExport
(IExport export) Removes a completed export.setTemplateContent
(IExporterDescriptor exporterDescriptor, String templateName, IContextId contextId, InputStream content, boolean overwrite) Creates or updates a template.startExport
(IExporterDescriptor exporterDescriptor, IExportConfiguration config) Starts the export.
-
Field Details
-
EXP_MSPROJECT
The Exporter ID that output Work Items to an MS Project.- See Also:
-
EXP_CSV
The Exporter Id that outputs a tree or table of Work Items to CSV.- See Also:
-
EXP_EXCEL_MATRIX
The Exporter ID that outputs a matrix of Work Items and/or Revisions to an Excel table.- See Also:
-
EXP_EXCEL_TRACEABILITY_REPORT
The Exporter ID that outputs a traceability report of Work Items and/or Revisions to an Excel table.- See Also:
-
EXP_XML_XML
The Exporter ID that outputs a table of Work Items to XML.- Since:
- 3.3
- See Also:
-
EXP_XML_HTML
The Exporter ID that outputs a table of Work Items to HTML.- Since:
- 3.3
- See Also:
-
EXP_XML_TXT
The Exporter ID that outputs a table of Work Items to TXT.- Since:
- 3.3
- See Also:
-
EXP_XML_PDF
The Exporter ID that outputs a table of Work Items to PDF.- Since:
- 3.3
- See Also:
-
EXP_XML_RTF
The Exporter ID that outputs a table of Work Items to RTF.- Since:
- 3.3
- See Also:
-
EXP_WORD_ROUND_TRIP
The Exporter ID that outputs a module to a Word round-trip document.- Since:
- 3.5
- See Also:
-
EXP_EXCEL_ROUND_TRIP
The exporter ID that outputs a module to an Excel round-trip document.- Since:
- 3.5.1
- See Also:
-
-
Method Details
-
getExporterDescriptors
Returns descriptors of all registered exporters (sorted lexicographically by label) that support the export type (seeEXPORT_TYPE
constants in subinterfaces ofIExportConfiguration
.- Returns:
- the
IExporterDescriptor
collection.
-
getExporterDescriptor
Returns the descriptor with a given ID.- Returns:
IExportDescriptor
with the givenid
ornull
if it does not exist.
-
startExport
Starts the export.- Parameters:
exporterDescriptor
-config
-- See Also:
-
removeExport
Removes a completed export.- Parameters:
export
-- Throws:
IllegalArgumentException
- if the export has not completed.
-
getExports
Returns all exports started by a user (newer exports first), that have yet to be removed. Ifuser
isnull
, all exports are returned.- Returns:
- a list of
IExport
.
-
getExport
Returns an export with a given ID ornull
if it is not found.- Parameters:
exportId
-
-
getTemplates
Returns templates available for export with a given exporter (sorted lexicographically by name) in given a context. (Templates inherited from other contexts are included.)- Parameters:
exporterDescriptor
-contextId
-- Returns:
- a list of templates.
- Throws:
IllegalArgumentException
- if the exporter does not support templates.- Since:
- 3.5.1
- See Also:
-
getTemplate
IExportTemplate getTemplate(IExporterDescriptor exporterDescriptor, String templateName, IContextId contextId) Returns a template with given name ornull
if such a template does not exist.- Parameters:
exporterDescriptor
-templateName
-contextId
-- Returns:
IExportTemplate
- Throws:
IllegalArgumentException
- if the exporter does not support templates.- Since:
- 3.5.1
- See Also:
-
setTemplateContent
IExportTemplate setTemplateContent(IExporterDescriptor exporterDescriptor, String templateName, IContextId contextId, InputStream content, boolean overwrite) Creates or updates a template.- Parameters:
exporterDescriptor
-templateName
-contextId
-content
-overwrite
-- Returns:
- the
IExportTemplate
for the specified parameters. - Throws:
IllegalArgumentException
- if the exporter does not support templates.- Since:
- 3.5.1
- See Also:
-
deleteTemplate
void deleteTemplate(IExporterDescriptor exporterDescriptor, String templateName, IContextId contextId) - Parameters:
exporterDescriptor
-templateName
-contextId
-- Throws:
IllegalArgumentException
- if the exporter does not support templates.- Since:
- 3.5.1
- See Also:
-
getTemplateFactory
Returns a factory for exporter templates.- Throws:
IllegalArgumentException
- if the exporter does not exist or does not support templates.- Since:
- 3.17.1
-
getTemplates
Deprecated.- Parameters:
exporterDescriptor
-- Returns:
- a collection of templates.
-
getTemplate
@Deprecated IExportTemplate getTemplate(IExporterDescriptor exporterDescriptor, String templateName) Deprecated.- Parameters:
exporterDescriptor
-templateName
-- Returns:
- an export template.
-
createTemplate
@Deprecated IExportTemplate createTemplate(IExporterDescriptor exporterDescriptor, String templateName, InputStream content) - Parameters:
exporterDescriptor
-templateName
-content
-- Returns:
- the template.
-
deleteTemplate
Deprecated.- Parameters:
exporterDescriptor
-templateName
-
-
getExporterDescriptors
Deprecated.Returns descriptors of all registered exporters (sorted lexicographically by label) that support the tree or table export types.- Returns:
- a collection of
IExporterDescriptor
-
setTemplateContent(IExporterDescriptor, String, IContextId, InputStream, boolean)