com.silverpeas.kmelia.export
Class KmeliaPublicationExporter

java.lang.Object
  extended by com.silverpeas.kmelia.export.KmeliaPublicationExporter
All Implemented Interfaces:
com.silverpeas.export.Exporter<KmeliaPublication>

public class KmeliaPublicationExporter
extends Object
implements com.silverpeas.export.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:


Field Summary
static String EXPORT_FOR_USER
          Expected export parameter giving the detail about the user that calls the export of a publication.
static String EXPORT_LANGUAGE
          Expected export parameter giving the language with which the export of a publication has to be performed.
static String EXPORT_TOPIC
          Optional export parameter giving the topic within which the export of a publication has to be performed.
 
Constructor Summary
KmeliaPublicationExporter()
           
 
Method Summary
static KmeliaPublicationExporter aKmeliaPublicationExporter()
          Gets a new exporter of Kmelia publications.
 void export(com.silverpeas.export.ExportDescriptor descriptor, KmeliaPublication publication)
          Only the first publication is taken in charge by this exporter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXPORT_FOR_USER

public static final String EXPORT_FOR_USER
Expected export parameter giving the detail about the user that calls the export of a publication.

See Also:
Constant Field Values

EXPORT_LANGUAGE

public static final String EXPORT_LANGUAGE
Expected export parameter giving the language with which the export of a publication has to be performed.

See Also:
Constant Field Values

EXPORT_TOPIC

public static final String EXPORT_TOPIC
Optional export parameter giving the topic within which the export of a publication has to be performed.

See Also:
Constant Field Values
Constructor Detail

KmeliaPublicationExporter

public KmeliaPublicationExporter()
Method Detail

aKmeliaPublicationExporter

public static KmeliaPublicationExporter aKmeliaPublicationExporter()
Gets a new exporter of Kmelia publications.

Returns:
a KmeliaPublicationExporter instance.

export

public void export(com.silverpeas.export.ExportDescriptor descriptor,
                   KmeliaPublication publication)
            throws com.silverpeas.export.ExportException
Only the first publication is taken in charge by this exporter.

Specified by:
export in interface com.silverpeas.export.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, ...)
publication - the publication to export. If several publications are passed as parameter, only the first one is taken.
Throws:
com.silverpeas.export.ExportException - if an error occurs while exporting the publication.


Copyright © 2016 Silverpeas. All Rights Reserved.