Interface HvlSystemSessionService
- All Known Implementing Classes:
HvlSystemSessionRedisServiceImpl
@Validated
public interface HvlSystemSessionService
This service provides operational and retrieve methods.
-
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.
-
Method Details
-
close
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.)- Parameters:
identifier
- the identifier- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
- the hvl session support exception
-
closeAll
void closeAll() throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportExceptionClean all system session data- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
- the hvl session support exception
-
closeAllByUser
void closeAllByUser() throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportExceptionClean all system session data by user- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
- the hvl session support exception
-
closeAll
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- Parameters:
username
- the username- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
- the hvl session support exception
-
closeAllUsers
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- Parameters:
usernameList
- the username list- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
- the hvl session support exception
-
closeAllSessions
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- Parameters:
sessionList
- the session list- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
- the hvl session support exception
-
closeAllSessionsByUser
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- Parameters:
sessionList
- the session list- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
- the hvl session support exception
-
get
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- 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
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.- Parameters:
sessionQueryModel
- the session query model- Returns:
- the page
- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
- the hvl session support exception
-