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 -
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
(ExportConfiguration exportConfiguration, boolean updateRunningRoute) Saves the specified import/export configuration in the context server.void
setPersistenceService
(PersistenceService persistenceService)
-
Constructor Details
-
ExportConfigurationServiceImpl
public ExportConfigurationServiceImpl()
-
-
Method Details
-
setPersistenceService
-
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
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
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
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
-