Class HibernateTenantDAO

  • All Implemented Interfaces:
    com.logicaldoc.core.PersistentObjectDAO<com.logicaldoc.core.security.Tenant>, com.logicaldoc.core.security.dao.TenantDAO

    public class HibernateTenantDAO
    extends com.logicaldoc.core.HibernatePersistentObjectDAO<com.logicaldoc.core.security.Tenant>
    implements com.logicaldoc.core.security.dao.TenantDAO
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int count()  
      boolean delete​(long tenantId, int code)  
      Set<String> findAllNames()  
      com.logicaldoc.core.security.Tenant findByName​(String name)  
      String getTenantName​(long tenantId)  
      void setAttributeSetDao​(com.logicaldoc.core.metadata.AttributeSetDAO attributeSetDao)  
      void setConf​(com.logicaldoc.util.config.ContextProperties conf)  
      void setDashletDao​(com.logicaldoc.core.dashlet.DashletDAO dashletDao)  
      void setFolderDao​(com.logicaldoc.core.folder.FolderDAO folderDao)  
      void setGenericDao​(com.logicaldoc.core.generic.GenericDAO genericDao)  
      void setGroupDao​(com.logicaldoc.core.security.dao.GroupDAO groupDao)  
      void setMessageTemplateDao​(com.logicaldoc.core.communication.MessageTemplateDAO messageTemplateDao)  
      void setTemplateDao​(com.logicaldoc.core.metadata.TemplateDAO templateDao)  
      void setUserDao​(com.logicaldoc.core.security.dao.UserDAO userDao)  
      boolean store​(com.logicaldoc.core.security.Tenant tenant)  
      • Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO

        bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, getSessionFactory, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString, setSessionFactory
      • Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO

        bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString
    • Method Detail

      • delete

        public boolean delete​(long tenantId,
                              int code)
        Specified by:
        delete in interface com.logicaldoc.core.PersistentObjectDAO<com.logicaldoc.core.security.Tenant>
        Overrides:
        delete in class com.logicaldoc.core.HibernatePersistentObjectDAO<com.logicaldoc.core.security.Tenant>
      • findByName

        public com.logicaldoc.core.security.Tenant findByName​(String name)
        Specified by:
        findByName in interface com.logicaldoc.core.security.dao.TenantDAO
      • count

        public int count()
        Specified by:
        count in interface com.logicaldoc.core.security.dao.TenantDAO
      • setFolderDao

        public void setFolderDao​(com.logicaldoc.core.folder.FolderDAO folderDao)
      • store

        public boolean store​(com.logicaldoc.core.security.Tenant tenant)
                      throws com.logicaldoc.core.PersistenceException
        Specified by:
        store in interface com.logicaldoc.core.PersistentObjectDAO<com.logicaldoc.core.security.Tenant>
        Overrides:
        store in class com.logicaldoc.core.HibernatePersistentObjectDAO<com.logicaldoc.core.security.Tenant>
        Throws:
        com.logicaldoc.core.PersistenceException
      • setGroupDao

        public void setGroupDao​(com.logicaldoc.core.security.dao.GroupDAO groupDao)
      • setUserDao

        public void setUserDao​(com.logicaldoc.core.security.dao.UserDAO userDao)
      • setConf

        public void setConf​(com.logicaldoc.util.config.ContextProperties conf)
      • setGenericDao

        public void setGenericDao​(com.logicaldoc.core.generic.GenericDAO genericDao)
      • setTemplateDao

        public void setTemplateDao​(com.logicaldoc.core.metadata.TemplateDAO templateDao)
      • findAllNames

        public Set<String> findAllNames()
        Specified by:
        findAllNames in interface com.logicaldoc.core.security.dao.TenantDAO
      • setMessageTemplateDao

        public void setMessageTemplateDao​(com.logicaldoc.core.communication.MessageTemplateDAO messageTemplateDao)
      • setAttributeSetDao

        public void setAttributeSetDao​(com.logicaldoc.core.metadata.AttributeSetDAO attributeSetDao)
      • getTenantName

        public String getTenantName​(long tenantId)
        Specified by:
        getTenantName in interface com.logicaldoc.core.security.dao.TenantDAO
      • setDashletDao

        public void setDashletDao​(com.logicaldoc.core.dashlet.DashletDAO dashletDao)