Class SessionManagerService
- java.lang.Object
-
- com.netgrif.application.engine.manager.service.SessionManagerService
-
- All Implemented Interfaces:
ISessionManagerService
@Service public class SessionManagerService extends java.lang.Object implements ISessionManagerService
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
redisUsernameKey
protected org.springframework.session.data.redis.RedisIndexedSessionRepository
repository
protected org.springframework.security.core.session.SessionRegistry
sessionRegistry
-
Constructor Summary
Constructors Constructor Description SessionManagerService(org.springframework.session.data.redis.RedisIndexedSessionRepository repository, org.springframework.security.core.session.SessionRegistry sessionRegistry, java.lang.String redisNamespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<LoggedUser>
getAllLoggedUsers()
void
logoutAllSession()
void
logoutSessionByUsername(java.lang.String username)
-
-
-
Constructor Detail
-
SessionManagerService
public SessionManagerService(org.springframework.session.data.redis.RedisIndexedSessionRepository repository, org.springframework.security.core.session.SessionRegistry sessionRegistry, @Value("${spring.session.redis.namespace}") java.lang.String redisNamespace)
-
-
Method Detail
-
getAllLoggedUsers
public java.util.List<LoggedUser> getAllLoggedUsers()
- Specified by:
getAllLoggedUsers
in interfaceISessionManagerService
-
logoutSessionByUsername
public void logoutSessionByUsername(java.lang.String username)
- Specified by:
logoutSessionByUsername
in interfaceISessionManagerService
-
logoutAllSession
public void logoutAllSession()
- Specified by:
logoutAllSession
in interfaceISessionManagerService
-
-