public abstract class AbstractTenantAdminDAOImpl extends Object implements TenantAdminDAO
This provides basic services such as caching, but defers to the underlying implementation for CRUD operations for: alf_tenant
Constructor and Description |
---|
AbstractTenantAdminDAOImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
TenantEntity |
createTenant(TenantEntity entity)
Create tenant - note: tenant domain must be unique
|
protected abstract TenantEntity |
createTenantEntity(TenantEntity tenantEntity) |
void |
deleteTenant(String tenantDomain)
Delete tenant
|
protected abstract int |
deleteTenantEntity(String tenantDomain) |
TenantEntity |
getTenant(String tenantDomain)
Get tenant
|
protected abstract List<TenantEntity> |
getTenantEntities(Boolean enabled) |
protected abstract TenantEntity |
getTenantEntity(String tenantDomain) |
TenantUpdateEntity |
getTenantForUpdate(String tenantDomain)
Get tenant for update
|
List<TenantEntity> |
listTenants(boolean enabledOnly)
List tenants
|
void |
setTenantEntityCache(org.alfresco.repo.cache.SimpleCache<Serializable,Object> tenantEntityCache)
Set the cache to use for alf_tenant lookups (optional).
|
void |
updateTenant(TenantUpdateEntity entity)
Update tenant
Note: tenant domain cannot be changed
|
protected abstract int |
updateTenantEntity(TenantEntity tenantEntity) |
public AbstractTenantAdminDAOImpl()
This sets up the DAO accessor to bypass any caching to handle the case where the caches are not supplied in the setters.
public void setTenantEntityCache(org.alfresco.repo.cache.SimpleCache<Serializable,Object> tenantEntityCache)
tenantEntityCache
- the cache of tenantDomains to TenantEntitiespublic TenantEntity createTenant(TenantEntity entity)
TenantAdminDAO
createTenant
in interface TenantAdminDAO
public TenantEntity getTenant(String tenantDomain)
TenantAdminDAO
getTenant
in interface TenantAdminDAO
public List<TenantEntity> listTenants(boolean enabledOnly)
TenantAdminDAO
listTenants
in interface TenantAdminDAO
public TenantUpdateEntity getTenantForUpdate(String tenantDomain)
TenantAdminDAO
getTenantForUpdate
in interface TenantAdminDAO
public void updateTenant(TenantUpdateEntity entity)
TenantAdminDAO
updateTenant
in interface TenantAdminDAO
public void deleteTenant(String tenantDomain)
TenantAdminDAO
deleteTenant
in interface TenantAdminDAO
protected abstract TenantEntity createTenantEntity(TenantEntity tenantEntity)
protected abstract TenantEntity getTenantEntity(String tenantDomain)
protected abstract List<TenantEntity> getTenantEntities(Boolean enabled)
enabled
- Enabled or disabled tenants or null for no filterprotected abstract int updateTenantEntity(TenantEntity tenantEntity)
protected abstract int deleteTenantEntity(String tenantDomain)
Copyright © 2005–2017 Alfresco Software. All rights reserved.