Interface MultiTenancyService


public interface MultiTenancyService
User: Ifat Afek Date: Apr 11, 2011 Time: 6:31:32 PM
  • Method Details

    • getFactory

      MultiTenancyFactory getFactory()
      Returns:
      a factory for creating multi tenancy objects
    • addTenant

      Tenant addTenant(Tenant tenant)
      Add a new tenant
      Parameters:
      tenant - - the tenant to add
      Returns:
      the added tenant
    • addTenants

      Collection<Tenant> addTenants(Collection<Tenant> tenants, boolean ignoreAlreadyExistTenant)
      Add new tenants
      Parameters:
      tenants - - the tenants to add
      Returns:
      the added tenants
    • getTenant

      Tenant getTenant(TenantId tenantId)
      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

      Tenant updateTenant(Tenant tenant)
      Update parameters of an existing tenant
      Parameters:
      tenant - - the tenant to update
      Returns:
      the updated tenant
    • deleteTenant

      Tenant deleteTenant(TenantId tenantId)
      Delete a tenant by its id
      Parameters:
      tenantId - - the tenant to delete
      Returns:
      the deleted tenant
    • deleteTenants

      Collection<Tenant> deleteTenants(Collection<TenantId> tenantIds)
      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