Class EnclosedObjectExporter
java.lang.Object
net.datenwerke.eximport.ex.enclosed.EnclosedObjectExporter
- All Implemented Interfaces:
Exporter
- Direct Known Subclasses:
EnclosedEntityExporter
-
Constructor Summary
ConstructorsConstructorDescriptionEnclosedObjectExporter(BasicObjectExporterFactory exporterFactory, ExImportHelperService eiHelper) -
Method Summary
Modifier and TypeMethodDescriptionaddEnclosed(ExportSupervisor exportSupervisor, Collection<ExportItemConfig<?>> configItems) addEnclosed(ExportSupervisor exportSupervisor, EnclosedObjectConfig enclosedCon) addReferences(ExportSupervisor exportSupervisor, Collection<ExportItemConfig<?>> queue) addReferences(ExportSupervisor exportSupervisor, EnclosedObjectConfig enclosedCon) voidconfigure(Collection<ExporterSpecificExportConfig> specificConfigs, Collection<ExportItemConfig<?>> configItems) Configures the exporter and tells it what items it should export.booleanbooleanconsumes(ExportItemConfig<?> config) Tells the exportservice whether this exporter can handle the given config item.booleanTells the exportservice if this exporter can export the given object.voidexport(ExportSupervisor exportSupervisor) Starts the export of the given configuration.voidexportEnclosed(ExportSupervisor exportSupervisor, EnclosedObjectConfig config) Exports an enclosed entity.generateExportConfig(Object object) Asks the exporter to generate an export config for the given object.getConfigFor(Object value) getDisplayNameFor(ExportedItem exportedItem) Generates a name for the ExportedItem to display to the userbooleanhasConfigFor(Object value)
-
Constructor Details
-
EnclosedObjectExporter
public EnclosedObjectExporter(BasicObjectExporterFactory exporterFactory, ExImportHelperService eiHelper)
-
-
Method Details
-
getExporterId
- Specified by:
getExporterIdin interfaceExporter
-
addReferences
public Collection<ExportItemConfig<?>> addReferences(ExportSupervisor exportSupervisor, Collection<ExportItemConfig<?>> queue) - Specified by:
addReferencesin interfaceExporter
-
configure
public void configure(Collection<ExporterSpecificExportConfig> specificConfigs, Collection<ExportItemConfig<?>> configItems) Description copied from interface:ExporterConfigures the exporter and tells it what items it should export.Exporter should throw Exception in case the configuration is invalid.
-
consumes
Description copied from interface:ExporterTells the exportservice whether this exporter can handle the given config item. -
consumes
-
consumesEnclosedObject
Description copied from interface:ExporterTells the exportservice if this exporter can export the given object.This case occurs if an enclosed entity is encountered and the exporter asks the supervisor for help
- Specified by:
consumesEnclosedObjectin interfaceExporter
-
export
Description copied from interface:ExporterStarts the export of the given configuration. -
exportEnclosed
public void exportEnclosed(ExportSupervisor exportSupervisor, EnclosedObjectConfig config) throws XMLStreamException Description copied from interface:ExporterExports an enclosed entity.- Specified by:
exportEnclosedin interfaceExporter- Throws:
XMLStreamException
-
generateExportConfig
Description copied from interface:ExporterAsks the exporter to generate an export config for the given object.If the exporter does not know the item, it should return null
- Specified by:
generateExportConfigin interfaceExporter- Parameters:
object-
-
getConfigFor
- Specified by:
getConfigForin interfaceExporter
-
hasConfigFor
- Specified by:
hasConfigForin interfaceExporter
-
addEnclosed
public Collection<EnclosedObjectConfig> addEnclosed(ExportSupervisor exportSupervisor, Collection<ExportItemConfig<?>> configItems) - Specified by:
addEnclosedin interfaceExporter
-
addEnclosed
public Collection<EnclosedObjectConfig> addEnclosed(ExportSupervisor exportSupervisor, EnclosedObjectConfig enclosedCon) - Specified by:
addEnclosedin interfaceExporter
-
addReferences
public Collection<ExportItemConfig<?>> addReferences(ExportSupervisor exportSupervisor, EnclosedObjectConfig enclosedCon) - Specified by:
addReferencesin interfaceExporter
-
getDisplayNameFor
Description copied from interface:ExporterGenerates a name for the ExportedItem to display to the user- Specified by:
getDisplayNameForin interfaceExporter- Parameters:
exportedItem-
-