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

    Constructors
    Constructor
    Description
    Instantiates a new HvlSessionService.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close(@NotBlank String identifier)
    Clean user (via identifier) system session data on key-value data store (redis etc.)
    void
    Clean all system session data
    void
    closeAll(@NotBlank String username)
    Clean all system session data associated with username parameter
    void
    Clean all system session data by user
    void
    closeAllSessions(@NotNull List<@NotNull tr.com.havelsan.javarch.session.common.model.HvlSession> sessionList)
    Clean all system session data associated with list of session
    void
    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 control
    void
    closeAllUsers(@NotNull List<@NotBlank String> usernameList)
    Clean all system session data associated with list of username parameter
    tr.com.havelsan.javarch.security.session.provider.model.HvlSecuritySession
    get(@NotBlank String identifier, boolean system)
    Get user system system session data
    tr.com.havelsan.javarch.data.commons.pageable.HvlPage<tr.com.havelsan.javarch.session.common.model.HvlSession>
    queryPage(@NotNull HvlSessionQueryModel sessionQueryModel)
    Query page hvl page.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HvlSystemSessionRedisServiceImpl

      public HvlSystemSessionRedisServiceImpl(HvlSystemSessionDataProvider systemSessionDataProvider)
      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 interface HvlSystemSessionService
      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.HvlSessionSupportException
      Clean all system session data
      Specified by:
      closeAll in interface HvlSystemSessionService
      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.HvlSessionSupportException
      Clean all system session data by user
      Specified by:
      closeAllByUser in interface HvlSystemSessionService
      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 interface HvlSystemSessionService
      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 interface HvlSystemSessionService
      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 interface HvlSystemSessionService
      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 interface HvlSystemSessionService
      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 interface HvlSystemSessionService
      Parameters:
      identifier - the identifier
      system - 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 interface HvlSystemSessionService
      Parameters:
      sessionQueryModel - the session query model
      Returns:
      the page
      Throws:
      tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException - the hvl session support exception