Package com.logicaldoc.retention
Interface RetentionPolicyDAO
- All Superinterfaces:
com.logicaldoc.core.PersistentObjectDAO<RetentionPolicy>
- All Known Implementing Classes:
HibernateRetentionPolicyDAO
public interface RetentionPolicyDAO
extends com.logicaldoc.core.PersistentObjectDAO<RetentionPolicy>
Specialized DAO for working with retention policies
- Since:
- 7.2
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY -
Method Summary
Modifier and TypeMethodDescriptionFinds all active policiesfindAllEnabled(long tenantId) Finds all active policies in the given tenantstatic RetentionPolicyDAOget()Gets the object available in the application contextMethods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, delete, delete, deleteAll, deleteAll, evict, evict, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, initialize, isMariaDB, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, queryForString, store
-
Method Details
-
get
Gets the object available in the application context- Returns:
- the instance of this object in the application context
-
findAllEnabled
Finds all active policies in the given tenant- Parameters:
tenantId- identifier of the tenant- Returns:
- list of policies
- Throws:
com.logicaldoc.core.PersistenceException- Error in the database
-
findAllEnabled
Finds all active policies- Returns:
- list of policies
- Throws:
com.logicaldoc.core.PersistenceException- User existingUser;
-