Interface HvlSystemSessionDataProvider

All Known Implementing Classes:
HvlSystemSessionDataRedisProviderImpl

@Validated public interface HvlSystemSessionDataProvider
A data provider in which includes custom methods system session.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close(@NotBlank String identifier)
    close is a service method which is used to clean user (via identifier) system session data on key-value data store.
    void
    close(@NotNull @Valid tr.com.havelsan.javarch.security.session.provider.model.HvlSecuritySession securitySession)
    close is a service method which is used to clean user (via identifier) system session data on key-value data store.
    void
    closeAll is a service method which is used to clean all system session data.
    void
    closeAll(@NotBlank String username)
    closeAll is a service method which is used to clean all session data associated with username parameter.
    void
    closeAll(@NotNull @Valid tr.com.havelsan.javarch.security.session.provider.model.HvlSecuritySession securitySession)
    closeAll is a service method which is used to clean all system session data associated with system session parameter.
    List<tr.com.havelsan.javarch.session.common.model.HvlSession>
    findAllByUsername(@NotBlank String username)
    findAll is a service method which is used to get all user system session data associated with username parameter.
    tr.com.havelsan.javarch.security.session.provider.model.HvlSecuritySession
    get(@NotBlank String identifier, boolean system)
    get is a service method which is used to get user system session data.
    tr.com.havelsan.javarch.data.commons.pageable.HvlPage<tr.com.havelsan.javarch.session.common.model.HvlSession>
    queryPage(@NotNull HvlSessionQueryModel sessionQueryModel)
    Returns a page of system session matching the query criteria.
  • Method Details

    • close

      void close(@NotBlank @NotBlank String identifier) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      close is a service method which is used to 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
    • close

      void close(@NotNull @Valid @NotNull @Valid tr.com.havelsan.javarch.security.session.provider.model.HvlSecuritySession securitySession) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      close is a service method which is used to clean user (via identifier) system session data on key-value data store. (redis etc.)
      Parameters:
      securitySession - the security session
      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.HvlSessionSupportException
      closeAll is a service method which is used to clean all system session data.
      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
      closeAll is a service method which is used to clean all 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
    • closeAll

      void closeAll(@NotNull @Valid @NotNull @Valid tr.com.havelsan.javarch.security.session.provider.model.HvlSecuritySession securitySession) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      closeAll is a service method which is used to clean all system session data associated with system session parameter.
      Parameters:
      securitySession - the security session
      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 is a service method which is used to get user system session data.
      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
    • findAllByUsername

      List<tr.com.havelsan.javarch.session.common.model.HvlSession> findAllByUsername(@NotBlank @NotBlank String username) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      findAll is a service method which is used to get all user system session data associated with username parameter.
      Parameters:
      username - the username
      Returns:
      the list of 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
      Returns a page of system session matching the query criteria.
      Parameters:
      sessionQueryModel - the session query model
      Returns:
      the page of session
      Throws:
      tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException - the hvl session support exception