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 Details

    • SessiondataDao

      public SessiondataDao()
  • Method Details

    • 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 session
      languageId - 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 session
      roomId - the id of the room to be set on this session
      languageId - language id to be set on this session
      Returns:
      newly create Sessiondata
    • find

      public Sessiondata find(String sid)
      Serches Sessiondata 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 of Sessiondata to check
      Returns:
      - Sessiondata for given sid or new Sessiondata
    • clearSessionTable

      public void clearSessionTable(long timeout)
      Parameters:
      timeout - - timeout in millis to check expired sessions
    • update

      public Sessiondata update(Sessiondata sd)