Class DefaultExportFileNameProducer
- java.lang.Object
-
- org.silverpeas.components.kmelia.export.DefaultExportFileNameProducer
-
- All Implemented Interfaces:
ExportFileNameProducer
public class DefaultExportFileNameProducer extends Object implements ExportFileNameProducer
A default export file name producer. It computes the name of export file according to the name of the publication and of the space and component instance the publication belongs to.
-
-
Constructor Summary
Constructors Constructor Description DefaultExportFileNameProducer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultExportFileNameProducer
aDefaultExportFileNameProducer()
String
getPublicationExportFileName(KmeliaPublication publication, String language)
Gets the name of the file into which the specified publication can be exported, whatever the format of the export file.
-
-
-
Method Detail
-
aDefaultExportFileNameProducer
public static DefaultExportFileNameProducer aDefaultExportFileNameProducer()
-
getPublicationExportFileName
public String getPublicationExportFileName(KmeliaPublication publication, String language)
Description copied from interface:ExportFileNameProducer
Gets the name of the file into which the specified publication can be exported, whatever the format of the export file.- Specified by:
getPublicationExportFileName
in interfaceExportFileNameProducer
- Parameters:
publication
- the Kmelia publication to export.language
- the language in which the file should be named. This parameter can be not taken into account in the file name computation by the implementation (depends on the strategy used in the name production).- Returns:
- the name of the file into which the publication can be exported.
-
-