Class HibernateLDAPServerDAO

java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<LDAPServer>
com.logicaldoc.ldap.HibernateLDAPServerDAO
All Implemented Interfaces:
com.logicaldoc.core.PersistentObjectDAO<LDAPServer>, LDAPServerDAO

public class HibernateLDAPServerDAO extends com.logicaldoc.core.HibernatePersistentObjectDAO<LDAPServer> implements LDAPServerDAO
Hibernate implementation of LDAPServerrDAO
Since:
8.2.2
Author:
Marco Meschieri - LogicalDOC
  • Field Summary

    Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO

    ENTITY
  • Method Summary

    Modifier and Type
    Method
    Description
     
    findAll(long tenantId)
     
    findEnabled(Long tenantId)
    Finds all active servers
    int
    getMaxPosition(long tenantId)
     

    Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO

    bulkUpdate, delete, delete, deleteAll, deleteAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, getSessionFactory, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForRowSet, queryForString, setSessionFactory, store

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO

    bulkUpdate, delete, delete, deleteAll, deleteAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForRowSet, queryForString, store
  • Method Details

    • findEnabled

      public List<LDAPServer> findEnabled(Long tenantId) throws com.logicaldoc.core.PersistenceException
      Description copied from interface: LDAPServerDAO
      Finds all active servers
      Specified by:
      findEnabled in interface LDAPServerDAO
      Parameters:
      tenantId - identifier of the tenant
      Returns:
      list of the enabled servers \
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the database
    • getMaxPosition

      public int getMaxPosition(long tenantId)
      Specified by:
      getMaxPosition in interface LDAPServerDAO
    • findAll

      public List<LDAPServer> findAll()
      Specified by:
      findAll in interface com.logicaldoc.core.PersistentObjectDAO<LDAPServer>
      Overrides:
      findAll in class com.logicaldoc.core.HibernatePersistentObjectDAO<LDAPServer>
    • findAll

      public List<LDAPServer> findAll(long tenantId)
      Specified by:
      findAll in interface com.logicaldoc.core.PersistentObjectDAO<LDAPServer>
      Overrides:
      findAll in class com.logicaldoc.core.HibernatePersistentObjectDAO<LDAPServer>