Class BaseTemplateFactory
java.lang.Object
com.polarion.alm.tracker.spi.exporter.BaseTemplateFactory
- All Implemented Interfaces:
IExportTemplateFactory
The base implementation of the template factory that returns the default implementation
of the export template and no default template.
- Since:
- 3.17.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCustomTemplate
(Supplier<InputStream> contentSupplier, String label) Creates custom templates.createRepositoryTemplate
(ILocation location) Creates a template from a location in the repository.getDefaultTemplate
(IExportConfiguration configuration) The default implementation always returnsnull
.void
setContextService
(IContextService contextService) void
setRepositoryService
(IRepositoryService repositoryService)
-
Constructor Details
-
BaseTemplateFactory
public BaseTemplateFactory()
-
-
Method Details
-
setRepositoryService
-
setContextService
-
createRepositoryTemplate
Description copied from interface:IExportTemplateFactory
Creates a template from a location in the repository. (It is used by the export manager to create templates).- Specified by:
createRepositoryTemplate
in interfaceIExportTemplateFactory
-
createCustomTemplate
@NotNull public IExportTemplate createCustomTemplate(@NotNull Supplier<InputStream> contentSupplier, @Nullable String label) Description copied from interface:IExportTemplateFactory
Creates custom templates. Custom template are not stored in the repository and are managed by the export manager with the given content and label.- Specified by:
createCustomTemplate
in interfaceIExportTemplateFactory
-
getDefaultTemplate
The default implementation always returnsnull
.- Specified by:
getDefaultTemplate
in interfaceIExportTemplateFactory
-