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 -
Method Summary
Modifier and TypeMethodDescriptionUsed by camel route system to get the latest changes on configs and reflect changes on camel routes if necessaryvoid
Deletes the import/export configuration identified by the specified identifier.getAll()
Retrieves all the import/export configurations.Retrieves the import/export configuration identified by the specified identifier.save
(ImportConfiguration importConfiguration, boolean updateRunningRoute) Saves the specified import/export configuration in the context server.void
setPersistenceService
(PersistenceService persistenceService)
-
Constructor Details
-
ImportConfigurationServiceImpl
public ImportConfigurationServiceImpl()
-
-
Method Details
-
setPersistenceService
-
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
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
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
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
-