Class HvlSystemSessionRedisServiceImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.session.server.redis.service.HvlSystemSessionRedisServiceImpl
- All Implemented Interfaces:
HvlSystemSessionService
@Service
@Transactional(rollbackFor=tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException.class)
public class HvlSystemSessionRedisServiceImpl
extends Object
implements HvlSystemSessionService
The class which implements
HvlSystemSessionService
-
Constructor Summary
ConstructorDescriptionHvlSystemSessionRedisServiceImpl
(HvlSystemSessionDataProvider systemSessionDataProvider) Instantiates a new HvlSessionService. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clean user (via identifier) system session data on key-value data store (redis etc.)void
closeAll()
Clean all system session datavoid
Clean all system session data associated with username parametervoid
Clean all system session data by uservoid
closeAllSessions
(@NotNull List<@NotNull tr.com.havelsan.javarch.session.common.model.HvlSession> sessionList) Clean all system session data associated with list of sessionvoid
closeAllSessionsByUser
(@NotNull List<@NotNull tr.com.havelsan.javarch.session.common.model.HvlSession> sessionList) Clean all session data associated with list of session with current user controlvoid
closeAllUsers
(@NotNull List<@NotBlank String> usernameList) Clean all system session data associated with list of username parametertr.com.havelsan.javarch.security.session.provider.model.HvlSecuritySession
Get user system system session datatr.com.havelsan.javarch.data.commons.pageable.HvlPage
<tr.com.havelsan.javarch.session.common.model.HvlSession> queryPage
(@NotNull HvlSessionQueryModel sessionQueryModel) Query page hvl page.
-
Constructor Details
-
HvlSystemSessionRedisServiceImpl
Instantiates a new HvlSessionService.- Parameters:
systemSessionDataProvider
- the system session data provider
-
-
Method Details
-
close
public void close(@NotBlank @NotBlank String identifier) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException Clean user (via identifier) system session data on key-value data store (redis etc.)- Specified by:
close
in interfaceHvlSystemSessionService
- Parameters:
identifier
- the identifier- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
- the hvl session support exception
-
closeAll
public void closeAll() throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportExceptionClean all system session data- Specified by:
closeAll
in interfaceHvlSystemSessionService
- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
- the hvl session support exception
-
closeAllByUser
public void closeAllByUser() throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportExceptionClean all system session data by user- Specified by:
closeAllByUser
in interfaceHvlSystemSessionService
- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
- the hvl session support exception
-
closeAll
public void closeAll(@NotBlank @NotBlank String username) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException Clean all system session data associated with username parameter- Specified by:
closeAll
in interfaceHvlSystemSessionService
- Parameters:
username
- the username- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
- the hvl session support exception
-
closeAllUsers
public void closeAllUsers(@NotNull @NotNull List<@NotBlank String> usernameList) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException Clean all system session data associated with list of username parameter- Specified by:
closeAllUsers
in interfaceHvlSystemSessionService
- Parameters:
usernameList
- the username list- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
- the hvl session support exception
-
closeAllSessions
public void closeAllSessions(@NotNull @NotNull List<@NotNull tr.com.havelsan.javarch.session.common.model.HvlSession> sessionList) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException Clean all system session data associated with list of session- Specified by:
closeAllSessions
in interfaceHvlSystemSessionService
- Parameters:
sessionList
- the session list- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
- the hvl session support exception
-
closeAllSessionsByUser
public void closeAllSessionsByUser(@NotNull @NotNull List<@NotNull tr.com.havelsan.javarch.session.common.model.HvlSession> sessionList) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException Clean all session data associated with list of session with current user control- Specified by:
closeAllSessionsByUser
in interfaceHvlSystemSessionService
- Parameters:
sessionList
- the session list- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
- the hvl session support exception
-
get
public tr.com.havelsan.javarch.security.session.provider.model.HvlSecuritySession get(@NotBlank @NotBlank String identifier, boolean system) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException Get user system system session data- Specified by:
get
in interfaceHvlSystemSessionService
- Parameters:
identifier
- the identifiersystem
- the system- Returns:
- the session
- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
- the hvl session support exception
-
queryPage
public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<tr.com.havelsan.javarch.session.common.model.HvlSession> queryPage(@NotNull @NotNull HvlSessionQueryModel sessionQueryModel) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException Query page hvl page.- Specified by:
queryPage
in interfaceHvlSystemSessionService
- Parameters:
sessionQueryModel
- the session query model- Returns:
- the page
- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
- the hvl session support exception
-