Package com.logicaldoc.core.security
Class HibernateSessionDAO
java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<Session>
com.logicaldoc.core.security.HibernateSessionDAO
- All Implemented Interfaces:
- PersistentObjectDAO<Session>,- SessionDAO
@Repository("sessionDAO")
public class HibernateSessionDAO
extends HibernatePersistentObjectDAO<Session>
implements SessionDAO
- 
Field SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Method SummaryModifier and TypeMethodDescriptionvoidcleanOldSessions(int ttl) This method deletes all the session entries oldest than the given days since now.intcountSessions(Long tenantId, Integer status) Counts the number of sessions.voidRemoves all the sessions that refers to the current nodefindByNode(String node) Retrieves the session of the given nodeRetrieves the session of the given SIDMethods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAObulkUpdate, delete, delete, deleteAll, deleteAll, evict, evict, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, queryForString, setSessionFactory, storeMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.logicaldoc.core.PersistentObjectDAObulkUpdate, delete, delete, deleteAll, deleteAll, evict, evict, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, queryForString, store
- 
Method Details- 
deleteCurrentNodeSessionspublic void deleteCurrentNodeSessions()Description copied from interface:SessionDAORemoves all the sessions that refers to the current node- Specified by:
- deleteCurrentNodeSessionsin interface- SessionDAO
 
- 
countSessionsDescription copied from interface:SessionDAOCounts the number of sessions.- Specified by:
- countSessionsin interface- SessionDAO
- Parameters:
- tenantId- The tenant (optional)
- status- The current status (optional)
- Returns:
- the number of sessions
 
- 
findBySidDescription copied from interface:SessionDAORetrieves the session of the given SID- Specified by:
- findBySidin interface- SessionDAO
- Parameters:
- sid- identifier of the session
- Returns:
- the session
 
- 
findByNodeDescription copied from interface:SessionDAORetrieves the session of the given node- Specified by:
- findByNodein interface- SessionDAO
- Parameters:
- node- the node
- Returns:
- the list of sessions
 
- 
cleanOldSessionspublic void cleanOldSessions(int ttl) Description copied from interface:SessionDAOThis method deletes all the session entries oldest than the given days since now. Ifttlis 0 or -1, the deletion is not made.- Specified by:
- cleanOldSessionsin interface- SessionDAO
- Parameters:
- ttl- The maximum number of days over which the session is considered old
 
 
-