Class ImpersonationSessionService
- java.lang.Object
-
- com.netgrif.application.engine.impersonation.service.ImpersonationSessionService
-
- All Implemented Interfaces:
IImpersonationSessionService
@Service public class ImpersonationSessionService extends java.lang.Object implements IImpersonationSessionService
-
-
Field Summary
Fields Modifier and Type Field Description protected ImpersonatorRepository
impersonatorRepository
protected org.springframework.session.security.SpringSessionBackedSessionRegistry<? extends org.springframework.session.Session>
registry
protected org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session>
sessions
-
Constructor Summary
Constructors Constructor Description ImpersonationSessionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
existsSession(java.lang.String username)
boolean
isImpersonated(java.lang.String userId)
void
setImpersonatorRepository(ImpersonatorRepository impersonatorRepository)
void
setRegistry(org.springframework.session.security.SpringSessionBackedSessionRegistry<? extends org.springframework.session.Session> registry)
void
setSessions(org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> sessions)
-
-
-
Field Detail
-
sessions
protected org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> sessions
-
registry
protected org.springframework.session.security.SpringSessionBackedSessionRegistry<? extends org.springframework.session.Session> registry
-
impersonatorRepository
protected ImpersonatorRepository impersonatorRepository
-
-
Method Detail
-
existsSession
public boolean existsSession(java.lang.String username)
- Specified by:
existsSession
in interfaceIImpersonationSessionService
-
isImpersonated
public boolean isImpersonated(java.lang.String userId)
- Specified by:
isImpersonated
in interfaceIImpersonationSessionService
-
setSessions
@Autowired @Lazy public void setSessions(org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> sessions)
-
setRegistry
@Autowired @Lazy public void setRegistry(org.springframework.session.security.SpringSessionBackedSessionRegistry<? extends org.springframework.session.Session> registry)
-
setImpersonatorRepository
@Autowired @Lazy public void setImpersonatorRepository(ImpersonatorRepository impersonatorRepository)
-
-