Class SessionRepositoryWrapper<S extends org.springframework.session.Session>

java.lang.Object
io.jmix.sessions.SessionRepositoryWrapper<S>
All Implemented Interfaces:
org.springframework.session.FindByIndexNameSessionRepository<SessionRepositoryWrapper<S>.SessionWrapper>, org.springframework.session.SessionRepository<SessionRepositoryWrapper<S>.SessionWrapper>

public class SessionRepositoryWrapper<S extends org.springframework.session.Session> extends Object implements org.springframework.session.FindByIndexNameSessionRepository<SessionRepositoryWrapper<S>.SessionWrapper>
  • Field Details

    • nonPersistentSessionAttributesMap

      protected Map<String,Map<String,Object>> nonPersistentSessionAttributesMap
    • delegate

      protected org.springframework.session.SessionRepository<S extends org.springframework.session.Session> delegate
    • sessionRegistry

      protected org.springframework.security.core.session.SessionRegistry sessionRegistry
    • applicationEventPublisher

      protected org.springframework.context.ApplicationEventPublisher applicationEventPublisher
  • Constructor Details

    • SessionRepositoryWrapper

      public SessionRepositoryWrapper(org.springframework.security.core.session.SessionRegistry sessionRegistry, org.springframework.context.ApplicationEventPublisher applicationEventPublisher, org.springframework.session.SessionRepository<S> delegate)
  • Method Details

    • getAttributePersistenceValidators

      public List<SessionAttributePersistenceValidator> getAttributePersistenceValidators()
    • addAttributePersistenceValidators

      public void addAttributePersistenceValidators(SessionAttributePersistenceValidator... validators)
    • setAttributePersistenceValidators

      public void setAttributePersistenceValidators(List<SessionAttributePersistenceValidator> attributePersistenceValidators)
    • createSession

      public SessionRepositoryWrapper<S>.SessionWrapper createSession()
      Specified by:
      createSession in interface org.springframework.session.SessionRepository<S extends org.springframework.session.Session>
    • save

      public void save(SessionRepositoryWrapper<S>.SessionWrapper session)
      Specified by:
      save in interface org.springframework.session.SessionRepository<S extends org.springframework.session.Session>
    • findById

      Specified by:
      findById in interface org.springframework.session.SessionRepository<S extends org.springframework.session.Session>
    • deleteById

      public void deleteById(String id)
      Specified by:
      deleteById in interface org.springframework.session.SessionRepository<S extends org.springframework.session.Session>
    • findByIndexNameAndIndexValue

      public Map<String,SessionRepositoryWrapper<S>.SessionWrapper> findByIndexNameAndIndexValue(String indexName, String indexValue)
      Specified by:
      findByIndexNameAndIndexValue in interface org.springframework.session.FindByIndexNameSessionRepository<S extends org.springframework.session.Session>