Class AbstractTenantAdminDAOImpl

  • All Implemented Interfaces:
    TenantAdminDAO
    Direct Known Subclasses:
    TenantAdminDAOImpl

    public abstract class AbstractTenantAdminDAOImpl
    extends java.lang.Object
    implements TenantAdminDAO
    Abstract implementation for TenantAdmin DAO.

    This provides basic services such as caching, but defers to the underlying implementation for CRUD operations for: alf_tenant

    Since:
    4.0 (thor)
    Author:
    janv
    • Constructor Detail

      • AbstractTenantAdminDAOImpl

        public AbstractTenantAdminDAOImpl()
        Default constructor.

        This sets up the DAO accessor to bypass any caching to handle the case where the caches are not supplied in the setters.

    • Method Detail

      • setTenantEntityCache

        public void setTenantEntityCache​(org.alfresco.repo.cache.SimpleCache<java.io.Serializable,​java.lang.Object> tenantEntityCache)
        Set the cache to use for alf_tenant lookups (optional).
        Parameters:
        tenantEntityCache - the cache of tenantDomains to TenantEntities
      • getTenantEntity

        protected abstract TenantEntity getTenantEntity​(java.lang.String tenantDomain)
      • getTenantEntities

        protected abstract java.util.List<TenantEntity> getTenantEntities​(java.lang.Boolean enabled)
        Parameters:
        enabled - Enabled or disabled tenants or null for no filter
      • updateTenantEntity

        protected abstract int updateTenantEntity​(TenantEntity tenantEntity)
      • deleteTenantEntity

        protected abstract int deleteTenantEntity​(java.lang.String tenantDomain)