Class MongoDbSessionDAO

java.lang.Object
org.apache.shiro.session.mgt.eis.AbstractSessionDAO
org.apache.shiro.session.mgt.eis.CachingSessionDAO
org.graylog2.security.MongoDbSessionDAO
All Implemented Interfaces:
org.apache.shiro.cache.CacheManagerAware, org.apache.shiro.session.mgt.eis.SessionDAO

public class MongoDbSessionDAO extends org.apache.shiro.session.mgt.eis.CachingSessionDAO
  • Field Summary

    Fields inherited from class org.apache.shiro.session.mgt.eis.CachingSessionDAO

    ACTIVE_SESSION_CACHE_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Serializable
    doCreate(org.apache.shiro.session.Session session)
     
    protected void
    doDelete(org.apache.shiro.session.Session session)
     
    protected org.apache.shiro.session.Session
     
    protected void
    doUpdate(org.apache.shiro.session.Session session)
     
    Collection<org.apache.shiro.session.Session>
     

    Methods inherited from class org.apache.shiro.session.mgt.eis.CachingSessionDAO

    cache, cache, create, createActiveSessionsCache, delete, getActiveSessionsCache, getActiveSessionsCacheName, getCachedSession, getCachedSession, getCacheManager, readSession, setActiveSessionsCache, setActiveSessionsCacheName, setCacheManager, uncache, update

    Methods inherited from class org.apache.shiro.session.mgt.eis.AbstractSessionDAO

    assignSessionId, generateSessionId, getSessionIdGenerator, setSessionIdGenerator

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • doCreate

      protected Serializable doCreate(org.apache.shiro.session.Session session)
      Specified by:
      doCreate in class org.apache.shiro.session.mgt.eis.AbstractSessionDAO
    • doReadSession

      protected org.apache.shiro.session.Session doReadSession(Serializable sessionId)
      Specified by:
      doReadSession in class org.apache.shiro.session.mgt.eis.AbstractSessionDAO
    • doUpdate

      protected void doUpdate(org.apache.shiro.session.Session session)
      Specified by:
      doUpdate in class org.apache.shiro.session.mgt.eis.CachingSessionDAO
    • doDelete

      protected void doDelete(org.apache.shiro.session.Session session)
      Specified by:
      doDelete in class org.apache.shiro.session.mgt.eis.CachingSessionDAO
    • getActiveSessions

      public Collection<org.apache.shiro.session.Session> getActiveSessions()
      Specified by:
      getActiveSessions in interface org.apache.shiro.session.mgt.eis.SessionDAO
      Overrides:
      getActiveSessions in class org.apache.shiro.session.mgt.eis.CachingSessionDAO