java.lang.Object
com.persequor.saga.modules.authmanager.models.UserModel
All Implemented Interfaces:
IUser

public class UserModel extends Object implements IUser
  • Constructor Details

    • UserModel

      public UserModel()
  • Method Details

    • getId

      public UUID getId()
    • setId

      public void setId(UUID id)
    • getUsername

      public String getUsername()
      Specified by:
      getUsername in interface IUser
    • setUsername

      public void setUsername(String username)
    • getPasswordHash

      public String getPasswordHash()
    • hashPassword

      public void hashPassword(String password)
    • setPasswordHash

      public void setPasswordHash(String passwordHash)
    • checkPassword

      public boolean checkPassword(String password)
    • getSpace

      public String getSpace()
    • setSpace

      public void setSpace(String space)
    • isActive

      public Boolean isActive()
    • setActive

      public void setActive(Boolean active)
    • isDeleted

      public Boolean isDeleted()
    • setDeleted

      public void setDeleted(Boolean deleted)
    • getFailedLoginAttempts

      public Integer getFailedLoginAttempts()
    • setFailedLoginAttempts

      public void setFailedLoginAttempts(Integer failedLoginAttempts)
    • getCreatedAt

      public Instant getCreatedAt()
    • setCreatedAt

      public void setCreatedAt(Instant createdAt)
    • getUpdatedAt

      public Instant getUpdatedAt()
    • setUpdatedAt

      public void setUpdatedAt(Instant updatedAt)
    • getAttributes

      public Map<String,String> getAttributes()
      Returns a copy of the attributes map. Use putAttribute(String, String) or removeAttribute(String) to modify the attributes.
    • setAttributes

      public void setAttributes(Map<String,String> attributes)
    • putAttribute

      public void putAttribute(String key, String value)
    • putAttribute

      public void putAttribute(String key, Collection<String> value)
    • removeAttribute

      public void removeAttribute(String key)
    • attribute

      public Optional<String> attribute(String key)
      Specified by:
      attribute in interface IUser
    • attributeAsList

      public List<String> attributeAsList(String key)
      Specified by:
      attributeAsList in interface IUser
    • toSagaUser

      public com.persequor.extension.user.User toSagaUser()
    • fromSagaUser

      public static IUser fromSagaUser(com.persequor.extension.user.User sagaUser)