Package org.apache.unomi.router.services
Class ExportConfigurationServiceImpl
- java.lang.Object
-
- org.apache.unomi.router.services.ExportConfigurationServiceImpl
-
- All Implemented Interfaces:
ImportExportConfigurationService<ExportConfiguration>
public class ExportConfigurationServiceImpl extends Object implements ImportExportConfigurationService<ExportConfiguration>
Service to manage Configuration of Item to export Created by amidani on 28/04/2017.
-
-
Constructor Summary
Constructors Constructor Description ExportConfigurationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete 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<ExportConfiguration>
getAll()
Retrieves all the import/export configurations.ExportConfiguration
load(String configId)
Retrieves the import/export configuration identified by the specified identifier.ExportConfiguration
save(ExportConfiguration exportConfiguration, boolean updateRunningRoute)
Saves the specified import/export configuration in the context server.void
setPersistenceService(PersistenceService persistenceService)
-
-
-
Method Detail
-
setPersistenceService
public void setPersistenceService(PersistenceService persistenceService)
-
getAll
public List<ExportConfiguration> getAll()
Description copied from interface:ImportExportConfigurationService
Retrieves all the import/export configurations.- Specified by:
getAll
in interfaceImportExportConfigurationService<ExportConfiguration>
- Returns:
- the list of import/export configurations
-
load
public ExportConfiguration load(String configId)
Description copied from interface:ImportExportConfigurationService
Retrieves the import/export configuration identified by the specified identifier.- Specified by:
load
in interfaceImportExportConfigurationService<ExportConfiguration>
- 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
public ExportConfiguration save(ExportConfiguration exportConfiguration, boolean updateRunningRoute)
Description copied from interface:ImportExportConfigurationService
Saves the specified import/export configuration in the context server.- Specified by:
save
in interfaceImportExportConfigurationService<ExportConfiguration>
- Parameters:
exportConfiguration
- 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
public void delete(String configId)
Description copied from interface:ImportExportConfigurationService
Deletes the import/export configuration identified by the specified identifier.- Specified by:
delete
in interfaceImportExportConfigurationService<ExportConfiguration>
- Parameters:
configId
- the identifier of the import/export configuration to delete
-
consumeConfigsToBeRefresh
public Map<String,RouterConstants.CONFIG_CAMEL_REFRESH> consumeConfigsToBeRefresh()
Description copied from interface:ImportExportConfigurationService
Used by camel route system to get the latest changes on configs and reflect changes on camel routes if necessary- Specified by:
consumeConfigsToBeRefresh
in interfaceImportExportConfigurationService<ExportConfiguration>
- Returns:
- map of configId per operation to be done in camel
-
-