Class HvlSessionDataRedisUserSupportServiceImpl

java.lang.Object
tr.com.havelsan.javarch.oauth.session.data.provider.redis.user.service.HvlSessionDataRedisUserSupportServiceImpl
All Implemented Interfaces:
HvlSessionDataRedisSupportService<HvlSessionDataRedisUserDocument>, tr.com.havelsan.javarch.session.data.support.HvlSessionSupportService<HvlSessionDataRedisUserDocument>

@Service("sessionDataRedisUserSupportService") public class HvlSessionDataRedisUserSupportServiceImpl extends Object implements HvlSessionDataRedisSupportService<HvlSessionDataRedisUserDocument>
The class which implements HvlSessionDataRedisSupportService.
  • Method Details

    • begin

      public HvlSessionDataRedisUserDocument begin(@NotNull @Valid @NotNull @Valid HvlSessionDataRedisUserDocument sessionDataRedisUserDocument) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      Specified by:
      begin in interface tr.com.havelsan.javarch.session.data.support.HvlSessionSupportService<HvlSessionDataRedisUserDocument>
      Throws:
      tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
    • close

      public void close(@NotBlank @NotBlank String identifier) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      Specified by:
      close in interface tr.com.havelsan.javarch.session.data.support.HvlSessionSupportService<HvlSessionDataRedisUserDocument>
      Throws:
      tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
    • closeAll

      public void closeAll() throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      Specified by:
      closeAll in interface tr.com.havelsan.javarch.session.data.support.HvlSessionSupportService<HvlSessionDataRedisUserDocument>
      Throws:
      tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
    • closeAll

      public void closeAll(@NotBlank @NotBlank String username) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      Specified by:
      closeAll in interface tr.com.havelsan.javarch.session.data.support.HvlSessionSupportService<HvlSessionDataRedisUserDocument>
      Throws:
      tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
    • closeAll

      public void closeAll(@NotNull @NotNull HvlSessionDataRedisUserDocument sessionDataRedisUserDocument) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      Specified by:
      closeAll in interface tr.com.havelsan.javarch.session.data.support.HvlSessionSupportService<HvlSessionDataRedisUserDocument>
      Throws:
      tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
    • findOne

      public HvlSessionDataRedisUserDocument findOne(@NotBlank @NotBlank String identifier) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      Specified by:
      findOne in interface tr.com.havelsan.javarch.session.data.support.HvlSessionSupportService<HvlSessionDataRedisUserDocument>
      Throws:
      tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
    • findAll

      public List<HvlSessionDataRedisUserDocument> findAll(@NotNull @NotNull HvlSessionDataRedisUserDocument sessionDataRedisUserDocument) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      Specified by:
      findAll in interface tr.com.havelsan.javarch.session.data.support.HvlSessionSupportService<HvlSessionDataRedisUserDocument>
      Throws:
      tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
    • exist

      public Boolean exist(@NotBlank @NotBlank String identifier)
      Exist session.
      Specified by:
      exist in interface HvlSessionDataRedisSupportService<HvlSessionDataRedisUserDocument>
      Parameters:
      identifier - the identifier
      Returns:
      the boolean
    • renewTtl

      public HvlSessionDataRedisUserDocument renewTtl(@NotBlank @NotBlank String identifier) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      Renew ttl.
      Specified by:
      renewTtl in interface HvlSessionDataRedisSupportService<HvlSessionDataRedisUserDocument>
      Parameters:
      identifier - the identifier
      Returns:
      the hvl session data redis user document
      Throws:
      tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException - the hvl session support exception
    • getWithRenewTtl

      public HvlSessionDataRedisUserDocument getWithRenewTtl(@NotBlank @NotBlank String identifier) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      Gets with renew ttl.
      Specified by:
      getWithRenewTtl in interface HvlSessionDataRedisSupportService<HvlSessionDataRedisUserDocument>
      Parameters:
      identifier - the identifier
      Returns:
      the with renew ttl
      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<HvlSessionDataRedisUserDocument> queryPage(@NotNull @NotNull HvlSessionDataRedisUserDocument sessionDataRedisUserDocument, @NotNull @NotNull tr.com.havelsan.javarch.data.commons.pageable.HvlPageable pageable)
      Returns a page of session matching the query criteria.
      Specified by:
      queryPage in interface HvlSessionDataRedisSupportService<HvlSessionDataRedisUserDocument>
      Parameters:
      sessionDataRedisUserDocument - the session document
      pageable - the pageable
      Returns:
      the hvl page
    • countByUser

      public Long countByUser(@NotNull @NotNull HvlSessionDataRedisUserDocument sessionDataRedisUserDocument)
      Count by user long.
      Specified by:
      countByUser in interface HvlSessionDataRedisSupportService<HvlSessionDataRedisUserDocument>
      Parameters:
      sessionDataRedisUserDocument - the session document
      Returns:
      the long