Package io.jmix.sessions
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>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationEventPublisher
protected org.springframework.session.SessionRepository<S>
protected org.springframework.security.core.session.SessionRegistry
Fields inherited from interface org.springframework.session.FindByIndexNameSessionRepository
PRINCIPAL_NAME_INDEX_NAME
-
Constructor Summary
ConstructorDescriptionSessionRepositoryWrapper
(org.springframework.security.core.session.SessionRegistry sessionRegistry, org.springframework.context.ApplicationEventPublisher applicationEventPublisher, org.springframework.session.SessionRepository<S> delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
deleteById
(String id) findByIndexNameAndIndexValue
(String indexName, String indexValue) void
save
(SessionRepositoryWrapper<S>.SessionWrapper session) void
setAttributePersistenceValidators
(List<SessionAttributePersistenceValidator> attributePersistenceValidators) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.session.FindByIndexNameSessionRepository
findByPrincipalName
-
Field Details
-
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
-
addAttributePersistenceValidators
-
setAttributePersistenceValidators
public void setAttributePersistenceValidators(List<SessionAttributePersistenceValidator> attributePersistenceValidators) -
createSession
- Specified by:
createSession
in interfaceorg.springframework.session.SessionRepository<S extends org.springframework.session.Session>
-
save
- Specified by:
save
in interfaceorg.springframework.session.SessionRepository<S extends org.springframework.session.Session>
-
findById
- Specified by:
findById
in interfaceorg.springframework.session.SessionRepository<S extends org.springframework.session.Session>
-
deleteById
- Specified by:
deleteById
in interfaceorg.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 interfaceorg.springframework.session.FindByIndexNameSessionRepository<S extends org.springframework.session.Session>
-