Class KmeliaPublicationExporter
java.lang.Object
org.silverpeas.components.kmelia.export.KmeliaPublicationExporter
- All Implemented Interfaces:
org.silverpeas.core.importexport.Exporter<KmeliaPublication>
@Bean
@Singleton
public class KmeliaPublicationExporter
extends Object
implements org.silverpeas.core.importexport.Exporter<KmeliaPublication>
An exporter of Kmelia publications into a document in a given format.
This exporter waits for the following parameters in the export descriptor:
- the name of the document into which the export should be done,
- the detail of the user for which the export should be done,
- the language with which the export of the publication has to be done.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringExpected export parameter giving the detail about the user that calls the export of a publication.static final StringExpected export parameter giving the language with which the export of a publication has to be performed.static final StringOptional export parameter giving the topic within which the export of a publication has to be performed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexports(org.silverpeas.core.importexport.ExportDescriptor descriptor, Supplier<KmeliaPublication> supplier) Only the first publication is taken in charge by this exporter.
-
Field Details
-
EXPORT_FOR_USER
Expected export parameter giving the detail about the user that calls the export of a publication.- See Also:
-
EXPORT_LANGUAGE
Expected export parameter giving the language with which the export of a publication has to be performed.- See Also:
-
EXPORT_TOPIC
Optional export parameter giving the topic within which the export of a publication has to be performed.- See Also:
-
-
Constructor Details
-
KmeliaPublicationExporter
public KmeliaPublicationExporter()
-
-
Method Details
-
exports
public void exports(org.silverpeas.core.importexport.ExportDescriptor descriptor, Supplier<KmeliaPublication> supplier) throws org.silverpeas.core.importexport.ExportException Only the first publication is taken in charge by this exporter.- Specified by:
exportsin interfaceorg.silverpeas.core.importexport.Exporter<KmeliaPublication>- Parameters:
descriptor- the descriptor providing enough information about the export to perform (document name, user for which the export is, the language in which the export has to be done, ...)supplier- a supplier of the publication to export. If several publications are passed as parameter, only the first one is taken.- Throws:
org.silverpeas.core.importexport.ExportException- if an error occurs while exporting the publication.
-