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 Summary
Modifier and TypeMethodDescriptionbegin
(@NotNull @Valid HvlSessionDataRedisUserDocument sessionDataRedisUserDocument) void
void
closeAll()
void
void
closeAll
(@NotNull HvlSessionDataRedisUserDocument sessionDataRedisUserDocument) countByUser
(@NotNull HvlSessionDataRedisUserDocument sessionDataRedisUserDocument) Count by user long.Exist session.findAll
(@NotNull HvlSessionDataRedisUserDocument sessionDataRedisUserDocument) getWithRenewTtl
(@NotBlank String identifier) Gets with renew ttl.tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlSessionDataRedisUserDocument>
queryPage
(@NotNull HvlSessionDataRedisUserDocument sessionDataRedisUserDocument, @NotNull tr.com.havelsan.javarch.data.commons.pageable.HvlPageable pageable) Returns a page of session matching the query criteria.Renew ttl.
-
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 interfacetr.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 interfacetr.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 interfacetr.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 interfacetr.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 interfacetr.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 interfacetr.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 interfacetr.com.havelsan.javarch.session.data.support.HvlSessionSupportService<HvlSessionDataRedisUserDocument>
- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
-
exist
Exist session.- Specified by:
exist
in interfaceHvlSessionDataRedisSupportService<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 interfaceHvlSessionDataRedisSupportService<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 interfaceHvlSessionDataRedisSupportService<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 interfaceHvlSessionDataRedisSupportService<HvlSessionDataRedisUserDocument>
- Parameters:
sessionDataRedisUserDocument
- the session documentpageable
- the pageable- Returns:
- the hvl page
-
countByUser
public Long countByUser(@NotNull @NotNull HvlSessionDataRedisUserDocument sessionDataRedisUserDocument) Count by user long.- Specified by:
countByUser
in interfaceHvlSessionDataRedisSupportService<HvlSessionDataRedisUserDocument>
- Parameters:
sessionDataRedisUserDocument
- the session document- Returns:
- the long
-