Class HvlSessionDataRedisDocument
java.lang.Object
tr.com.havelsan.javarch.oauth.session.data.provider.redis.model.HvlSessionDataRedisDocument
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HvlSessionDataRedisSystemDocument
,HvlSessionDataRedisUserDocument
A data transfer object is used for Redis session document.
- See Also:
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Instantiates a new HvlSessionDataRedisDocument.protected
HvlSessionDataRedisDocument
(String username) Instantiates a new HvlSessionDataRedisDocument.protected
HvlSessionDataRedisDocument
(String identifier, String username) Instantiates a new HvlSessionDataRedisDocument.protected
HvlSessionDataRedisDocument
(String identifier, String tenantIdentifier, String username) Instantiates a new HvlSessionDataRedisDocument.protected
HvlSessionDataRedisDocument
(String identifier, String tenantIdentifier, String username, Map<String, Object> attributeMap) Instantiates a new HvlSessionDataRedisDocument.protected
Instantiates a new HvlSessionDataRedisDocument. -
Method Summary
Modifier and TypeMethodDescriptionGets attribute map.Gets created date.Gets identifier.Gets tenant identifier.Gets username.void
setAttributeMap
(Map<String, Object> attributeMap) Sets attribute map.void
setCreatedDate
(ZonedDateTime createdDate) Sets created date.void
setIdentifier
(String identifier) Sets identifier.void
setTenantIdentifier
(String tenantIdentifier) Sets tenant identifier.void
setUsername
(String username) Sets username.
-
Field Details
-
USERNAME_FIELD_NAME
- See Also:
-
-
Constructor Details
-
HvlSessionDataRedisDocument
protected HvlSessionDataRedisDocument()Instantiates a new HvlSessionDataRedisDocument. -
HvlSessionDataRedisDocument
Instantiates a new HvlSessionDataRedisDocument.- Parameters:
username
- the username
-
HvlSessionDataRedisDocument
Instantiates a new HvlSessionDataRedisDocument.- Parameters:
identifier
- the identifierusername
- the username
-
HvlSessionDataRedisDocument
Instantiates a new HvlSessionDataRedisDocument.- Parameters:
identifier
- the identifiertenantIdentifier
- the tenant identifierusername
- the username
-
HvlSessionDataRedisDocument
protected HvlSessionDataRedisDocument(String identifier, String username, Map<String, Object> attributeMap) Instantiates a new HvlSessionDataRedisDocument.- Parameters:
identifier
- the identifierusername
- the usernameattributeMap
- the attribute map
-
HvlSessionDataRedisDocument
protected HvlSessionDataRedisDocument(String identifier, String tenantIdentifier, String username, Map<String, Object> attributeMap) Instantiates a new HvlSessionDataRedisDocument.- Parameters:
identifier
- the identifiertenantIdentifier
- the tenant identifierusername
- the usernameattributeMap
- the attribute map
-
-
Method Details
-
getIdentifier
Gets identifier.- Returns:
- the identifier
-
setIdentifier
Sets identifier.- Parameters:
identifier
- the identifier
-
getTenantIdentifier
Gets tenant identifier.- Returns:
- the tenant identifier
-
setTenantIdentifier
Sets tenant identifier.- Parameters:
tenantIdentifier
- the tenant identifier
-
getUsername
Gets username.- Returns:
- the username
-
setUsername
Sets username.- Parameters:
username
- the username
-
getAttributeMap
Gets attribute map.- Returns:
- the attribute map
-
setAttributeMap
Sets attribute map.- Parameters:
attributeMap
- the attribute map
-
getCreatedDate
Gets created date.- Returns:
- the created date
-
setCreatedDate
Sets created date.- Parameters:
createdDate
- the created date
-