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 Sessiondata
check(String sid)
void
clearSessionTable(long timeout)
Sessiondata
create(Long userId, long languageId)
creates a new session-object in the databaseSessiondata
create(Long userId, Long roomId, long languageId)
creates a new session-object in the databaseSessiondata
find(String sid)
SerchesSessiondata
object by sessionIdSessiondata
update(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)
SerchesSessiondata
object by sessionId- Parameters:
sid
- - sessionId- Returns:
Sessiondata
with sessionId == SID, or null if not found
-
check
public Sessiondata check(String sid)
- 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
public Sessiondata update(Sessiondata sd)
-
-