Class UserModel
java.lang.Object
com.persequor.saga.modules.authmanager.models.UserModel
- All Implemented Interfaces:
IUser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeAsList
(String key) boolean
checkPassword
(String password) static IUser
fromSagaUser
(com.persequor.extension.user.User sagaUser) Returns a copy of the attributes map.getId()
getSpace()
void
hashPassword
(String password) isActive()
void
putAttribute
(String key, String value) void
putAttribute
(String key, Collection<String> value) void
removeAttribute
(String key) void
void
setAttributes
(Map<String, String> attributes) void
setCreatedAt
(Instant createdAt) void
setDeleted
(Boolean deleted) void
setFailedLoginAttempts
(Integer failedLoginAttempts) void
void
setPasswordHash
(String passwordHash) void
void
setUpdatedAt
(Instant updatedAt) void
setUsername
(String username) com.persequor.extension.user.User
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.persequor.saga.modules.authmanager.sdk.IUser
bizLocations, bizSteps, hasBizLocation, hasBizStep, isAdmin, roles
-
Constructor Details
-
UserModel
public UserModel()
-
-
Method Details
-
getId
-
setId
-
getUsername
- Specified by:
getUsername
in interfaceIUser
-
setUsername
-
getPasswordHash
-
hashPassword
-
setPasswordHash
-
checkPassword
-
getSpace
-
setSpace
-
isActive
-
setActive
-
isDeleted
-
setDeleted
-
getFailedLoginAttempts
-
setFailedLoginAttempts
-
getCreatedAt
-
setCreatedAt
-
getUpdatedAt
-
setUpdatedAt
-
getAttributes
Returns a copy of the attributes map. UseputAttribute(String, String)
orremoveAttribute(String)
to modify the attributes. -
setAttributes
-
putAttribute
-
putAttribute
-
removeAttribute
-
attribute
-
attributeAsList
- Specified by:
attributeAsList
in interfaceIUser
-
toSagaUser
public com.persequor.extension.user.User toSagaUser() -
fromSagaUser
-