Class SessiondataDao
java.lang.Object
org.apache.openmeetings.db.dao.server.SessiondataDao
- Author:
- swagner This Class handles all session management
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearSessionTable
(long timeout) creates a new session-object in the databasecreates a new session-object in the databaseSerchesSessiondata
object by sessionIdupdate
(Sessiondata sd)
-
Constructor Details
-
SessiondataDao
public SessiondataDao()
-
-
Method Details
-
create
creates a new session-object in the database- Parameters:
userId
- the id of the user to be set on this sessionlanguageId
- language id to be set on this session- Returns:
- newly create
Sessiondata
-
create
creates a new session-object in the database- Parameters:
userId
- the id of the user to be set on this sessionroomId
- the id of the room to be set on this sessionlanguageId
- language id to be set on this session- Returns:
- newly create
Sessiondata
-
find
SerchesSessiondata
object by sessionId- Parameters:
sid
- - sessionId- Returns:
Sessiondata
with sessionId == SID, or null if not found
-
check
- Parameters:
sid
- - sid ofSessiondata
to check- Returns:
- -
Sessiondata
for given sid or newSessiondata
-
clearSessionTable
public void clearSessionTable(long timeout) - Parameters:
timeout
- - timeout in millis to check expired sessions
-
update
-