public class ExportServiceImpl extends java.lang.Object implements ExportService
Constructor and Description |
---|
ExportServiceImpl(ExImportHelperService eiHelper,
ExportSupervisorFactory exportSupervisorFactory,
HookHandlerService hookHandler) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
export(ExportConfig config)
Exports the given
ExportConfig as XML and returns its content as a
String |
void |
exportAsStream(ExportConfig config,
java.io.OutputStream os)
Exports the given
ExportConfig as XML and writes the result to the
supplied output stream. |
java.lang.String |
exportIndent(ExportConfig config)
Exports the given
ExportConfig as XML and returns its content as a
String properly indendent. |
Exporter |
getExporterFor(java.lang.Class<?> exporterType)
Returns the
Exporter for the given exporter type |
Exporter |
getExporterFor(java.lang.Object object)
Returns the correct exporter for the given object or null if none was found.
|
java.util.Collection<java.lang.String> |
getExporterIds(java.util.Collection<java.lang.Class<?>> exporterTypes)
Returns a
Collection of String s holding the IDs of the given
exporters |
public ExportServiceImpl(ExImportHelperService eiHelper, ExportSupervisorFactory exportSupervisorFactory, HookHandlerService hookHandler)
public java.lang.String export(ExportConfig config)
ExportService
ExportConfig
as XML and returns its content as a
String
export
in interface ExportService
config
- The ExportConfig
String
containing the XML data of the exported
ExportConfig
public java.lang.String exportIndent(ExportConfig config)
ExportService
ExportConfig
as XML and returns its content as a
String
properly indendent.exportIndent
in interface ExportService
config
- The ExportConfig
String
containing the XML data of the exported
ExportConfig
OutputKeys.INDENT
public void exportAsStream(ExportConfig config, java.io.OutputStream os) throws javax.xml.stream.XMLStreamException
ExportService
ExportConfig
as XML and writes the result to the
supplied output stream.exportAsStream
in interface ExportService
config
- The configurationos
- The output streamjavax.xml.stream.XMLStreamException
public java.util.Collection<java.lang.String> getExporterIds(java.util.Collection<java.lang.Class<?>> exporterTypes)
ExportService
Collection
of String
s holding the IDs of the given
exportersgetExporterIds
in interface ExportService
exporterTypes
- A Collection
of Class
es holding the
exportersCollection
containing the exporters IDspublic Exporter getExporterFor(java.lang.Class<?> exporterType)
ExportService
Exporter
for the given exporter typegetExporterFor
in interface ExportService
exporterType
- The Class
of the exporter typeExporter
for the given typepublic Exporter getExporterFor(java.lang.Object object)
ExportService
getExporterFor
in interface ExportService
object
- The object to be exported