Class HvlSessionDataRedisSystemSupportServiceImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.session.data.provider.redis.system.service.HvlSessionDataRedisSystemSupportServiceImpl
- All Implemented Interfaces:
HvlSessionDataRedisSupportService<HvlSessionDataRedisSystemDocument>
,tr.com.havelsan.javarch.session.data.support.HvlSessionSupportService<HvlSessionDataRedisSystemDocument>
@Service("sessionDataRedisSystemSupportService")
public class HvlSessionDataRedisSystemSupportServiceImpl
extends Object
implements HvlSessionDataRedisSupportService<HvlSessionDataRedisSystemDocument>
A service that provides single session support
-
Field Summary
Modifier and TypeFieldDescriptionprotected final HvlSessionDataRedisSystemDocumentRepository
The Session data redis system document repository. -
Method Summary
Modifier and TypeMethodDescriptionbegin
(@NotNull @Valid HvlSessionDataRedisSystemDocument sessionDataRedisSystemDocument) void
void
closeAll()
void
void
closeAll
(@NotNull HvlSessionDataRedisSystemDocument sessionDataRedisSystemDocument) countByUser
(@NotNull HvlSessionDataRedisSystemDocument sessionDocument) Count by user long.Exist session.findAll
(@NotNull HvlSessionDataRedisSystemDocument sessionDataRedisSystemDocument) getWithRenewTtl
(@NotBlank String identifier) Gets with renew ttl.tr.com.havelsan.javarch.data.commons.pageable.HvlPage
<HvlSessionDataRedisSystemDocument> queryPage
(@NotNull HvlSessionDataRedisSystemDocument sessionDataRedisSystemDocument, @NotNull tr.com.havelsan.javarch.data.commons.pageable.HvlPageable pageable) Returns a page of session matching the query criteria.Renew ttl.
-
Field Details
-
sessionDataRedisSystemDocumentRepository
protected final HvlSessionDataRedisSystemDocumentRepository sessionDataRedisSystemDocumentRepositoryThe Session data redis system document repository.
-
-
Method Details
-
begin
public HvlSessionDataRedisSystemDocument begin(@NotNull @Valid @NotNull @Valid HvlSessionDataRedisSystemDocument sessionDataRedisSystemDocument) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException - Specified by:
begin
in interfacetr.com.havelsan.javarch.session.data.support.HvlSessionSupportService<HvlSessionDataRedisSystemDocument>
- 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<HvlSessionDataRedisSystemDocument>
- 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<HvlSessionDataRedisSystemDocument>
- 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<HvlSessionDataRedisSystemDocument>
- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
-
closeAll
public void closeAll(@NotNull @NotNull HvlSessionDataRedisSystemDocument sessionDataRedisSystemDocument) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException - Specified by:
closeAll
in interfacetr.com.havelsan.javarch.session.data.support.HvlSessionSupportService<HvlSessionDataRedisSystemDocument>
- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
-
findOne
public HvlSessionDataRedisSystemDocument 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<HvlSessionDataRedisSystemDocument>
- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
-
findAll
public List<HvlSessionDataRedisSystemDocument> findAll(@NotNull @NotNull HvlSessionDataRedisSystemDocument sessionDataRedisSystemDocument) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException - Specified by:
findAll
in interfacetr.com.havelsan.javarch.session.data.support.HvlSessionSupportService<HvlSessionDataRedisSystemDocument>
- Throws:
tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
-
exist
Exist session.- Specified by:
exist
in interfaceHvlSessionDataRedisSupportService<HvlSessionDataRedisSystemDocument>
- Parameters:
identifier
- the identifier- Returns:
- the boolean
-
renewTtl
Renew ttl.- Specified by:
renewTtl
in interfaceHvlSessionDataRedisSupportService<HvlSessionDataRedisSystemDocument>
- Parameters:
identifier
- the identifier- Returns:
- the hvl session data redis user document
-
getWithRenewTtl
Gets with renew ttl.- Specified by:
getWithRenewTtl
in interfaceHvlSessionDataRedisSupportService<HvlSessionDataRedisSystemDocument>
- Parameters:
identifier
- the identifier- Returns:
- the with renew ttl
-
queryPage
public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlSessionDataRedisSystemDocument> queryPage(@NotNull @NotNull HvlSessionDataRedisSystemDocument sessionDataRedisSystemDocument, @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<HvlSessionDataRedisSystemDocument>
- Parameters:
sessionDataRedisSystemDocument
- the session documentpageable
- the pageable- Returns:
- the hvl page
-
countByUser
Count by user long.- Specified by:
countByUser
in interfaceHvlSessionDataRedisSupportService<HvlSessionDataRedisSystemDocument>
- Parameters:
sessionDocument
- the session document- Returns:
- the long
-