Package com.hp.ucmdb.api.multitenancy
Interface MultiTenancyService
public interface MultiTenancyService
User: Ifat Afek
Date: Apr 11, 2011
Time: 6:31:32 PM
-
Method Summary
Modifier and TypeMethodDescriptionAdd a new tenantaddTenants
(Collection<Tenant> tenants, boolean ignoreAlreadyExistTenant) Add new tenantsdeleteTenant
(TenantId tenantId) Delete a tenant by its iddeleteTenants
(Collection<TenantId> tenantIds) Delete tenants by their idGet a list of all tenantsGet a tenant by its idupdateTenant
(Tenant tenant) Update parameters of an existing tenant
-
Method Details
-
getFactory
MultiTenancyFactory getFactory()- Returns:
- a factory for creating multi tenancy objects
-
addTenant
Add a new tenant- Parameters:
tenant
- - the tenant to add- Returns:
- the added tenant
-
addTenants
Add new tenants- Parameters:
tenants
- - the tenants to add- Returns:
- the added tenants
-
getTenant
Get a tenant by its id- Parameters:
tenantId
- - the id of the tenant to retrieve- Returns:
- the tenant, or null if it doesn't exist
-
updateTenant
Update parameters of an existing tenant- Parameters:
tenant
- - the tenant to update- Returns:
- the updated tenant
-
deleteTenant
Delete a tenant by its id- Parameters:
tenantId
- - the tenant to delete- Returns:
- the deleted tenant
-
deleteTenants
Delete tenants by their id- Parameters:
tenantIds
- - the tenants to delete- Returns:
- the deleted tenants
-
getAllTenants
Collection<Tenant> getAllTenants()Get a list of all tenants- Returns:
- a list of all tenants
-