Class HibernateRetentionPolicyDAO

java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<RetentionPolicy>
com.logicaldoc.retention.HibernateRetentionPolicyDAO
All Implemented Interfaces:
com.logicaldoc.core.PersistentObjectDAO<RetentionPolicy>, RetentionPolicyDAO

public class HibernateRetentionPolicyDAO extends com.logicaldoc.core.HibernatePersistentObjectDAO<RetentionPolicy> implements RetentionPolicyDAO
  • Field Summary

    Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO

    ENTITY
  • Method Summary

    Modifier and Type
    Method
    Description
    findAll(long tenantId)
     
    Finds all active policies
    findAllEnabled(long tenantId)
    Finds all active policies in the given tenant

    Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO

    bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, 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, findAll, 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

    • findAll

      public List<RetentionPolicy> findAll(long tenantId) throws com.logicaldoc.core.PersistenceException
      Specified by:
      findAll in interface com.logicaldoc.core.PersistentObjectDAO<RetentionPolicy>
      Overrides:
      findAll in class com.logicaldoc.core.HibernatePersistentObjectDAO<RetentionPolicy>
      Throws:
      com.logicaldoc.core.PersistenceException
    • findAllEnabled

      public List<RetentionPolicy> findAllEnabled(long tenantId) throws com.logicaldoc.core.PersistenceException
      Description copied from interface: RetentionPolicyDAO
      Finds all active policies in the given tenant
      Specified by:
      findAllEnabled in interface RetentionPolicyDAO
      Parameters:
      tenantId - identifier of the tenant
      Returns:
      list of policies
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the database
    • findAllEnabled

      public List<RetentionPolicy> findAllEnabled() throws com.logicaldoc.core.PersistenceException
      Description copied from interface: RetentionPolicyDAO
      Finds all active policies
      Specified by:
      findAllEnabled in interface RetentionPolicyDAO
      Returns:
      list of policies
      Throws:
      com.logicaldoc.core.PersistenceException - User existingUser;