public interface ConfigurationService
Modifier and Type | Method and Description |
---|---|
ShopConfig |
getShopConfiguration(java.lang.String shopId)
get the configuration for this shop.
|
void |
initializeShopConfiguration(java.lang.String shopId)
Create a new configuration for this shop.
|
void |
updateShopConfiguration(ShopConfig shopConfig)
update a configuration for this shop.
|
void initializeShopConfiguration(java.lang.String shopId) throws javax.persistence.PersistenceException, ConfigurationException
shopId
- unique shop idjavax.persistence.PersistenceException
- if something went wrong when persisting.
Also if there is no entry in the SAGEONE_SHOPS table (foreign key)ConfigurationException
- if a field in the shopConfig could not be initializedvoid updateShopConfiguration(ShopConfig shopConfig) throws javax.persistence.EntityNotFoundException, javax.persistence.PersistenceException, ConfigurationException
shopId
- unique shop idjavax.persistence.EntityNotFoundException
- if there was no config for this shop in
the databasejavax.persistence.PersistenceException
- if something went wrong when persisting.ConfigurationException
- if a field in the shopConfig could not be validatedShopConfig getShopConfiguration(java.lang.String shopId) throws javax.persistence.EntityNotFoundException, javax.persistence.PersistenceException
shopId
- unique shop idjavax.persistence.EntityNotFoundException
- if there was no config for this shop in
the databasejavax.persistence.PersistenceException
- if something went wrong when persisting.