org.directdemocracyportal.democracy.service.dao
Interface UserSessionDAO

Package class diagram package UserSessionDAO
All Superinterfaces:
GenericDAO<UserSession,java.lang.Long>
All Known Implementing Classes:
HibernateUserSessionDAO

public interface UserSessionDAO
extends GenericDAO<UserSession,java.lang.Long>

The Interface UserSessionDAO.


Method Summary
Modifier and Type Method and Description
 void endActiveSessions()
          End active sessions.
 UserSession findBySessionId(java.lang.String sessionId)
          Find by session id.
 UserSession findByUserId(java.lang.Long userId)
          Find by user id.
 java.util.List<UserSession> getActiveSessions()
          Gets the active sessions.
 
Methods inherited from interface org.directdemocracyportal.democracy.service.dao.GenericDAO
delete, getAll, load, save
 

Method Detail

findBySessionId

UserSession findBySessionId(java.lang.String sessionId)
                            throws org.springframework.dao.DataAccessException
Find by session id.

Parameters:
sessionId - the session id
Returns:
the user session
Throws:
org.springframework.dao.DataAccessException - the data access exception

findByUserId

UserSession findByUserId(java.lang.Long userId)
                         throws org.springframework.dao.DataAccessException
Find by user id.

Parameters:
userId - the user id
Returns:
the user session
Throws:
org.springframework.dao.DataAccessException - the data access exception

getActiveSessions

java.util.List<UserSession> getActiveSessions()
Gets the active sessions.

Returns:
the active sessions

endActiveSessions

void endActiveSessions()
End active sessions.



Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.