Package com.logicaldoc.core.security.dao
Interface SessionDAO
-
- All Superinterfaces:
PersistentObjectDAO<Session>
- All Known Implementing Classes:
HibernateSessionDAO
public interface SessionDAO extends PersistentObjectDAO<Session>
DAO forUserSessionhandling.- Since:
- 7.7
- Author:
- Marco Meschieri - LogicalDOC
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcountSessions(Long tenantId, Integer status)Counts the number of sessions.voiddeleteCurrentNodeSessions()Removes all the sessions that refers to the current nodeList<Session>findByNode(String node)Retrieves the session of the given nodeSessionfindBySid(String sid)Retrieves the session of the given SID-
Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, delete, 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, store
-
-
-
-
Method Detail
-
deleteCurrentNodeSessions
void deleteCurrentNodeSessions()
Removes all the sessions that refers to the current node
-
countSessions
int countSessions(Long tenantId, Integer status)
Counts the number of sessions.- Parameters:
tenantId- The tenant (optional)status- The current status (optional)- Returns:
- the number of sessions
-
findBySid
Session findBySid(String sid)
Retrieves the session of the given SID- Parameters:
sid- identifier of the session- Returns:
- the session
-
-