Package org.apache.unomi.router.services
Class ImportConfigurationServiceImpl
- java.lang.Object
-
- org.apache.unomi.router.services.ImportConfigurationServiceImpl
-
- All Implemented Interfaces:
ImportExportConfigurationService<ImportConfiguration>
public class ImportConfigurationServiceImpl extends Object implements ImportExportConfigurationService<ImportConfiguration>
Service to manage Configuration of object to import Created by amidani on 28/04/2017.
-
-
Constructor Summary
Constructors Constructor Description ImportConfigurationServiceImpl()
-
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<ImportConfiguration>
getAll()
Retrieves all the import/export configurations.ImportConfiguration
load(String configId)
Retrieves the import/export configuration identified by the specified identifier.ImportConfiguration
save(ImportConfiguration importConfiguration, 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<ImportConfiguration> getAll()
Description copied from interface:ImportExportConfigurationService
Retrieves all the import/export configurations.- Specified by:
getAll
in interfaceImportExportConfigurationService<ImportConfiguration>
- Returns:
- the list of import/export configurations
-
load
public ImportConfiguration load(String configId)
Description copied from interface:ImportExportConfigurationService
Retrieves the import/export configuration identified by the specified identifier.- Specified by:
load
in interfaceImportExportConfigurationService<ImportConfiguration>
- 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 ImportConfiguration save(ImportConfiguration importConfiguration, boolean updateRunningRoute)
Description copied from interface:ImportExportConfigurationService
Saves the specified import/export configuration in the context server.- Specified by:
save
in interfaceImportExportConfigurationService<ImportConfiguration>
- Parameters:
importConfiguration
- 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<ImportConfiguration>
- 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<ImportConfiguration>
- Returns:
- map of configId per operation to be done in camel
-
-