Package net.datenwerke.eximport.ex
Interface Exporter
- All Known Implementing Classes:
DashboardManagerExporter,DatasinkManagerExporter,DatasourceManagerExporter,EnclosedEntityExporter,EnclosedObjectExporter,ExporterImpl,FileServerExporter,GenericEntityExporter,GenericRightsExporter,GlobalConstantExporter,ParameterInstanceExporter,RemoteServerManagerExporter,ReportManagerExporter,TeamSpaceExporter,TransportManagerExporter,TreeNodeExporter,TsDiskExporter,UserManagerExporter,UserVariableExporter
public interface Exporter
-
Method Summary
Modifier and TypeMethodDescriptionaddEnclosed(ExportSupervisor exportSupervisor, Collection<ExportItemConfig<?>> configItems) addEnclosed(ExportSupervisor exportSupervisor, EnclosedObjectConfig enclosedCon) addReferences(ExportSupervisor exportSupervisor, Collection<ExportItemConfig<?>> configItems) 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)
-
Method Details
-
getExporterId
String getExporterId() -
consumes
Tells the exportservice whether this exporter can handle the given config item.- Parameters:
config-
-
consumesEnclosedObject
Tells 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
-
export
Starts the export of the given configuration.- Parameters:
exportSupervisor-- Throws:
XMLStreamException
-
exportEnclosed
void exportEnclosed(ExportSupervisor exportSupervisor, EnclosedObjectConfig config) throws XMLStreamException Exports an enclosed entity.- Throws:
XMLStreamException
-
configure
void configure(Collection<ExporterSpecificExportConfig> specificConfigs, Collection<ExportItemConfig<?>> configItems) Configures the exporter and tells it what items it should export.Exporter should throw Exception in case the configuration is invalid.
-
addReferences
Collection<ExportItemConfig<?>> addReferences(ExportSupervisor exportSupervisor, Collection<ExportItemConfig<?>> configItems) -
addEnclosed
Collection<EnclosedObjectConfig> addEnclosed(ExportSupervisor exportSupervisor, Collection<ExportItemConfig<?>> configItems) -
generateExportConfig
Asks the exporter to generate an export config for the given object.If the exporter does not know the item, it should return null
- Parameters:
object-
-
hasConfigFor
-
getConfigFor
-
addReferences
Collection<ExportItemConfig<?>> addReferences(ExportSupervisor exportSupervisor, EnclosedObjectConfig enclosedCon) -
addEnclosed
Collection<EnclosedObjectConfig> addEnclosed(ExportSupervisor exportSupervisor, EnclosedObjectConfig enclosedCon) -
getDisplayNameFor
Generates a name for the ExportedItem to display to the user- Parameters:
exportedItem-
-
consumes
-