com.cloudtran.api
Interface IEntityConfigManager


public interface IEntityConfigManager

With this interface the entity related configuration can be managed.


Method Summary
 void addTenantConfig(Properties properties)
          Adds a new tenant to the system.
 void removeTenantConfig(String tenantId)
          Removes the entity mapping configuration form the database which belongs to the given tenant.
 

Method Detail

addTenantConfig

void addTenantConfig(Properties properties)
Adds a new tenant to the system. The properties should contain the new tenant properties in a (name, value) format like: storer.Tenant_1.Warehouse.username, username storer.Tenant_1.Warehouse.password, password storer.Tenant_1.Warehouse.datasourceUrl, jdbc:mysql://xxx.xx.xx.xx:3306/transactionpayment storer.Tenant_1.Warehouse.multiTenant, true --> this is optional, and not used if the application is not in SaaS mode

Parameters:
properties -

removeTenantConfig

void removeTenantConfig(String tenantId)
Removes the entity mapping configuration form the database which belongs to the given tenant.

Parameters:
tenantId -