Package org.tailormap.api.persistence
Class User
java.lang.Object
org.tailormap.api.persistence.AuditMetadata
org.tailormap.api.persistence.User
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrUpdateAdminProperty(String key, Object value, boolean isPublic) getEmail()getName()getNotes()booleanbooleanCheck if the user is enabled and the validUntil date has not passed yet (or null).setAdditionalProperties(List<AdminAdditionalProperty> additionalProperties) setEnabled(boolean enabled) setOrganisation(String organisation) setPassword(String passwordHash) setUsername(String username) setValidUntil(ZonedDateTime validUntil) setVersion(Long version) Methods inherited from class org.tailormap.api.persistence.AuditMetadata
getCreatedBy, getCreatedDate, getLastModifiedBy, getLastModifiedDate, setCreatedBy, setCreatedDate, setLastModifiedBy, setLastModifiedDate
-
Constructor Details
-
User
public User()
-
-
Method Details
-
getUsername
-
setUsername
-
getVersion
-
setVersion
-
getPassword
-
setPassword
-
getEmail
-
setEmail
-
getName
-
setName
-
getOrganisation
-
setOrganisation
-
getNotes
-
setNotes
-
getAdditionalProperties
-
setAdditionalProperties
-
getGroups
-
setGroups
-
getGroupNames
-
getValidUntil
-
setValidUntil
-
isEnabled
public boolean isEnabled() -
setEnabled
-
addOrUpdateAdminProperty
-
isEnabledAndValidUntil
public boolean isEnabledAndValidUntil()Check if the user is enabled and the validUntil date has not passed yet (or null).- Returns:
- true if the user is enabled and valid, false otherwise.
-