public class EnclosedObjectExporter extends java.lang.Object implements Exporter
Constructor and Description |
---|
EnclosedObjectExporter(BasicObjectExporterFactory exporterFactory,
ExImportHelperService eiHelper) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<EnclosedObjectConfig> |
addEnclosed(ExportSupervisor exportSupervisor,
java.util.Collection<ExportItemConfig<?>> configItems) |
java.util.Collection<EnclosedObjectConfig> |
addEnclosed(ExportSupervisor exportSupervisor,
EnclosedObjectConfig enclosedCon) |
java.util.Collection<ExportItemConfig<?>> |
addReferences(ExportSupervisor exportSupervisor,
java.util.Collection<ExportItemConfig<?>> queue) |
java.util.Collection<ExportItemConfig<?>> |
addReferences(ExportSupervisor exportSupervisor,
EnclosedObjectConfig enclosedCon) |
void |
configure(java.util.Collection<ExporterSpecificExportConfig> specificConfigs,
java.util.Collection<ExportItemConfig<?>> configItems)
Configures the exporter and tells it what items it should export.
|
boolean |
consumes(ExportItemConfig<?> config)
Tells the exportservice whether this exporter can handle the given config
item.
|
boolean |
consumes(java.lang.Object object) |
boolean |
consumesEnclosedObject(EnclosedObjectConfig config)
Tells the exportservice if this exporter can export the given object.
|
void |
export(ExportSupervisor exportSupervisor)
Starts the export of the given configuration.
|
void |
exportEnclosed(ExportSupervisor exportSupervisor,
EnclosedObjectConfig config)
Exports an enclosed entity.
|
ExportItemConfig<?> |
generateExportConfig(java.lang.Object object)
Asks the exporter to generate an export config for the given object.
|
ExportItemConfig<?> |
getConfigFor(java.lang.Object value) |
java.lang.String |
getDisplayNameFor(ExportedItem exportedItem)
Generates a name for the ExportedItem to display to the user
|
java.lang.String |
getExporterId() |
boolean |
hasConfigFor(java.lang.Object value) |
public EnclosedObjectExporter(BasicObjectExporterFactory exporterFactory, ExImportHelperService eiHelper)
public java.lang.String getExporterId()
getExporterId
in interface Exporter
public java.util.Collection<ExportItemConfig<?>> addReferences(ExportSupervisor exportSupervisor, java.util.Collection<ExportItemConfig<?>> queue)
addReferences
in interface Exporter
public void configure(java.util.Collection<ExporterSpecificExportConfig> specificConfigs, java.util.Collection<ExportItemConfig<?>> configItems)
Exporter
Exporter should throw Exception in case the configuration is invalid.
public boolean consumes(ExportItemConfig<?> config)
Exporter
public boolean consumes(java.lang.Object object)
public boolean consumesEnclosedObject(EnclosedObjectConfig config)
Exporter
This case occurs if an enclosed entity is encountered and the exporter asks the supervisor for help
consumesEnclosedObject
in interface Exporter
public void export(ExportSupervisor exportSupervisor)
Exporter
public void exportEnclosed(ExportSupervisor exportSupervisor, EnclosedObjectConfig config) throws javax.xml.stream.XMLStreamException
Exporter
exportEnclosed
in interface Exporter
javax.xml.stream.XMLStreamException
public ExportItemConfig<?> generateExportConfig(java.lang.Object object)
Exporter
If the exporter does not know the item, it should return null
generateExportConfig
in interface Exporter
public ExportItemConfig<?> getConfigFor(java.lang.Object value)
getConfigFor
in interface Exporter
public boolean hasConfigFor(java.lang.Object value)
hasConfigFor
in interface Exporter
public java.util.Collection<EnclosedObjectConfig> addEnclosed(ExportSupervisor exportSupervisor, java.util.Collection<ExportItemConfig<?>> configItems)
addEnclosed
in interface Exporter
public java.util.Collection<EnclosedObjectConfig> addEnclosed(ExportSupervisor exportSupervisor, EnclosedObjectConfig enclosedCon)
addEnclosed
in interface Exporter
public java.util.Collection<ExportItemConfig<?>> addReferences(ExportSupervisor exportSupervisor, EnclosedObjectConfig enclosedCon)
addReferences
in interface Exporter
public java.lang.String getDisplayNameFor(ExportedItem exportedItem)
Exporter
getDisplayNameFor
in interface Exporter