public interface Exporter
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<?>> configItems) |
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) |
java.lang.String getExporterId()
boolean consumes(ExportItemConfig<?> config)
config
- boolean consumesEnclosedObject(EnclosedObjectConfig config)
This case occurs if an enclosed entity is encountered and the exporter asks the supervisor for help
void export(ExportSupervisor exportSupervisor) throws javax.xml.stream.XMLStreamException
exportSupervisor
- javax.xml.stream.XMLStreamException
void exportEnclosed(ExportSupervisor exportSupervisor, EnclosedObjectConfig config) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
void configure(java.util.Collection<ExporterSpecificExportConfig> specificConfigs, java.util.Collection<ExportItemConfig<?>> configItems)
Exporter should throw Exception in case the configuration is invalid.
java.util.Collection<ExportItemConfig<?>> addReferences(ExportSupervisor exportSupervisor, java.util.Collection<ExportItemConfig<?>> configItems)
java.util.Collection<EnclosedObjectConfig> addEnclosed(ExportSupervisor exportSupervisor, java.util.Collection<ExportItemConfig<?>> configItems)
ExportItemConfig<?> generateExportConfig(java.lang.Object object)
If the exporter does not know the item, it should return null
object
- boolean hasConfigFor(java.lang.Object value)
ExportItemConfig<?> getConfigFor(java.lang.Object value)
java.util.Collection<ExportItemConfig<?>> addReferences(ExportSupervisor exportSupervisor, EnclosedObjectConfig enclosedCon)
java.util.Collection<EnclosedObjectConfig> addEnclosed(ExportSupervisor exportSupervisor, EnclosedObjectConfig enclosedCon)
java.lang.String getDisplayNameFor(ExportedItem exportedItem)
exportedItem
- boolean consumes(java.lang.Object object)