Interface ImportExportConfigurationService<T>
-
- All Known Implementing Classes:
ExportConfigurationServiceImpl
,ImportConfigurationServiceImpl
public interface ImportExportConfigurationService<T>
A service to access and operate onImportConfiguration
s /ExportConfiguration
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,RouterConstants.CONFIG_CAMEL_REFRESH>
consumeConfigsToBeRefresh()
Used by camel route system to get the latest changes on configs and reflect changes on camel routes if necessaryvoid
delete(String configId)
Deletes the import/export configuration identified by the specified identifier.List<T>
getAll()
Retrieves all the import/export configurations.T
load(String configId)
Retrieves the import/export configuration identified by the specified identifier.T
save(T configuration, boolean updateRunningRoute)
Saves the specified import/export configuration in the context server.
-
-
-
Method Detail
-
getAll
List<T> getAll()
Retrieves all the import/export configurations.- Returns:
- the list of import/export configurations
-
load
T load(String configId)
Retrieves the import/export configuration identified by the specified identifier.- Parameters:
configId
- the identifier of the profile to retrieve- Returns:
- the import/export configuration identified by the specified identifier or
null
if no such import/export configuration exists
-
save
T save(T configuration, boolean updateRunningRoute)
Saves the specified import/export configuration in the context server.- Parameters:
configuration
- the import/export configuration to be savedupdateRunningRoute
- set to true if running routes should be updated too- Returns:
- the newly saved import/export configuration
-
delete
void delete(String configId)
Deletes the import/export configuration identified by the specified identifier.- Parameters:
configId
- the identifier of the import/export configuration to delete
-
consumeConfigsToBeRefresh
Map<String,RouterConstants.CONFIG_CAMEL_REFRESH> consumeConfigsToBeRefresh()
Used by camel route system to get the latest changes on configs and reflect changes on camel routes if necessary- Returns:
- map of configId per operation to be done in camel
-
-