public interface IModuleConfigRepository
Interface for the module configuration repository.
Modifier and Type | Method and Description |
---|---|
void |
add(ModuleConfig... configList)
Adds a module configuration to the repository
An exception will be thrown if a module with the same id already exist
|
void |
close()
Closes the database and release all resources associated to it
|
boolean |
contains(String moduleID)
Checks if A module with the given ID exists
|
ModuleConfig |
get(String moduleID)
Retrieves the configuration of the module with the given id
|
List<ModuleConfig> |
getAllModulesConfigurations() |
void |
remove(String... moduleIDs)
Removes the module configuration with the given id from the repository
|
void |
update(ModuleConfig... configList)
Updates the module configuration with the given id in the repository
If the id does not exist, the configuration entry is added with the add method
|
List<ModuleConfig> getAllModulesConfigurations()
boolean contains(String moduleID)
moduleID
- ModuleConfig get(String moduleID)
moduleID
- id of modulevoid add(ModuleConfig... configList)
configList
- void update(ModuleConfig... configList)
configList
- void remove(String... moduleIDs)
moduleIDs
- void close()
Copyright © 2015 Sensia Software LLC. All rights reserved.