Class HibernateTenantDAO

java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<Tenant>
com.logicaldoc.core.security.dao.HibernateTenantDAO
All Implemented Interfaces:
PersistentObjectDAO<Tenant>, TenantDAO

public class HibernateTenantDAO extends HibernatePersistentObjectDAO<Tenant> implements TenantDAO
  • Method Details

    • findByName

      public Tenant findByName(String name)
      Description copied from interface: TenantDAO
      Finds a tenant by name
      Specified by:
      findByName in interface TenantDAO
      Parameters:
      name - name of wanted tenant
      Returns:
      Wanted tenant or null
    • count

      public int count()
      Description copied from interface: TenantDAO
      Counts the total number of tenants
      Specified by:
      count in interface TenantDAO
      Returns:
      number of tenants
    • setFolderDao

      public void setFolderDao(FolderDAO folderDao)
    • setGroupDao

      public void setGroupDao(GroupDAO groupDao)
    • setUserDao

      public void setUserDao(UserDAO userDao)
    • setConfig

      public void setConfig(ContextProperties config)
    • setGenericDao

      public void setGenericDao(GenericDAO genericDao)
    • setTemplateDao

      public void setTemplateDao(TemplateDAO templateDao)
    • setDashletDao

      public void setDashletDao(DashletDAO dashletDao)
    • findAllNames

      public Set<String> findAllNames()
      Description copied from interface: TenantDAO
      Retrieves all the tenant names
      Specified by:
      findAllNames in interface TenantDAO
      Returns:
      the collection of all the tenant names
    • setMessageTemplateDao

      public void setMessageTemplateDao(MessageTemplateDAO messageTemplateDao)
    • store

      public void store(Tenant entity)
      Description copied from interface: PersistentObjectDAO
      This method persists the entity object
      Specified by:
      store in interface PersistentObjectDAO<Tenant>
      Overrides:
      store in class HibernatePersistentObjectDAO<Tenant>
      Parameters:
      entity - entity to be stored
    • setAttributeSetDao

      public void setAttributeSetDao(AttributeSetDAO attributeSetDao)
    • getTenantName

      public String getTenantName(long tenantId)
      Description copied from interface: TenantDAO
      Retrieves the tenant's name
      Specified by:
      getTenantName in interface TenantDAO
      Parameters:
      tenantId - identifier of the tenant
      Returns:
      name of the tenant