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 necessaryvoiddelete(String configId)Deletes the import/export configuration identified by the specified identifier.List<ExportConfiguration>getAll()Retrieves all the import/export configurations.ExportConfigurationload(String configId)Retrieves the import/export configuration identified by the specified identifier.ExportConfigurationsave(ExportConfiguration exportConfiguration, boolean updateRunningRoute)Saves the specified import/export configuration in the context server.voidsetPersistenceService(PersistenceService persistenceService)
-
-
-
Method Detail
-
setPersistenceService
public void setPersistenceService(PersistenceService persistenceService)
-
getAll
public List<ExportConfiguration> getAll()
Description copied from interface:ImportExportConfigurationServiceRetrieves all the import/export configurations.- Specified by:
getAllin interfaceImportExportConfigurationService<ExportConfiguration>- Returns:
- the list of import/export configurations
-
load
public ExportConfiguration load(String configId)
Description copied from interface:ImportExportConfigurationServiceRetrieves the import/export configuration identified by the specified identifier.- Specified by:
loadin interfaceImportExportConfigurationService<ExportConfiguration>- Parameters:
configId- the identifier of the profile to retrieve- Returns:
- the import/export configuration identified by the specified identifier or
nullif no such import/export configuration exists
-
save
public ExportConfiguration save(ExportConfiguration exportConfiguration, boolean updateRunningRoute)
Description copied from interface:ImportExportConfigurationServiceSaves the specified import/export configuration in the context server.- Specified by:
savein 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:ImportExportConfigurationServiceDeletes the import/export configuration identified by the specified identifier.- Specified by:
deletein 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:ImportExportConfigurationServiceUsed by camel route system to get the latest changes on configs and reflect changes on camel routes if necessary- Specified by:
consumeConfigsToBeRefreshin interfaceImportExportConfigurationService<ExportConfiguration>- Returns:
- map of configId per operation to be done in camel
-
-