Class SessiondataDao
- java.lang.Object
-
- org.apache.openmeetings.db.dao.server.SessiondataDao
-
@Repository @Transactional public class SessiondataDao extends Object
- Author:
- swagner This Class handles all session management
-
-
Constructor Summary
Constructors Constructor Description SessiondataDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Sessiondatacheck(String sid)voidclearSessionTable(long timeout)Sessiondatacreate(Long userId, long languageId)creates a new session-object in the databaseSessiondatacreate(Long userId, Long roomId, long languageId)creates a new session-object in the databaseSessiondatafind(String sid)SerchesSessiondataobject by sessionIdSessiondataupdate(Sessiondata sd)
-
-
-
Method Detail
-
create
public Sessiondata create(Long userId, long languageId)
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
public Sessiondata create(Long userId, Long roomId, long languageId)
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
public Sessiondata find(String sid)
SerchesSessiondataobject by sessionId- Parameters:
sid- - sessionId- Returns:
Sessiondatawith sessionId == SID, or null if not found
-
check
public Sessiondata check(String sid)
- Parameters:
sid- - sid ofSessiondatato check- Returns:
- -
Sessiondatafor given sid or newSessiondata
-
clearSessionTable
public void clearSessionTable(long timeout)
- Parameters:
timeout- - timeout in millis to check expired sessions
-
update
public Sessiondata update(Sessiondata sd)
-
-