Interface IExportTemplate
public interface IExportTemplate
A template for export.
Export templates can either be managed by the export manager and stored as file in the repository,
or custom templates created using the export template factory for a particular export.
-
Method Summary
Modifier and TypeMethodDescriptionThe content of the template.Returns the context where the template is defined.getExportFields
(IContextId contextId) Fields that are prescribed in the template for export.getLabel()
The template's label.The location of the template within the repository.getName()
The name of the template that serves as the ID.
-
Method Details
-
getContent
The content of the template. The content's type depends on the exporter used. The caller is responsible for closing the returned stream. -
getExportFields
Fields that are prescribed in the template for export. If the corresponding exporter does not support the export of the selected fields, (seeIExporterDescriptor.getFieldExportCapability()
), an empty list is returned.- Parameters:
contextId
- The context where the template is used.- Returns:
- The export fields prescribed in the template.
- Since:
- 3.5.2
-
getLabel
The template's label. Can be null if this template is a custom template. (One that is not stored in a repository.)- Returns:
- label
- Since:
- 3.5.1
-
getName
The name of the template that serves as the ID. The name must be unique with the context of where it is used). Can be null if this template is a custom template. (One that is not stored in a repository.) -
getLocation
The location of the template within the repository. Returns null if this template is a custom template. (One that is not stored in a repository.)- Returns:
- the location of the template.
- Since:
- 3.3
-
getContextId
Returns the context where the template is defined. Returns null if this template is a custom template. (One that is not stored in a repository.).- Since:
- 3.5.1
-