Package de.dlr.proseo.usermgr.rest.model
Class RestUser
java.lang.Object
de.dlr.proseo.usermgr.rest.model.RestUser
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe authorities granted to this user (filtered by mission)protected BooleanFlag indicating whether the user account is enabled.protected DateThe expiration date for the user account (default never)protected StringThe user password (BCrypt-encrypted string; not required for updates)protected DateThe expiration date for the password (default never)protected RestQuotaData download quota for this user (if not set, no quota applies)(package private) static final longprotected StringThe (unique) user name, consisting of the mission code, a hyphen ("-") and the actual cross-mission user name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the authorities.@NotNull BooleanReturns the enabled.Returns the expirationDate.Returns the password.Returns the passwordExpirationDate.@Valid RestQuotagetQuota()Returns the quota.@NotNull StringReturns the username.inthashCode()voidsetAuthorities(List<String> authorities) Set the authorities.voidsetEnabled(Boolean enabled) Set the enabled.voidsetExpirationDate(Date expirationDate) Set the expirationDate.voidsetPassword(String password) Set the password.voidsetPasswordExpirationDate(Date passwordExpirationDate) Set the passwordExpirationDate.voidSet the quota.voidsetUsername(String username) Set the username.toString()
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
username
The (unique) user name, consisting of the mission code, a hyphen ("-") and the actual cross-mission user name -
password
The user password (BCrypt-encrypted string; not required for updates) -
enabled
Flag indicating whether the user account is enabled. -
authorities
The authorities granted to this user (filtered by mission) -
expirationDate
The expiration date for the user account (default never) -
passwordExpirationDate
The expiration date for the password (default never) -
quota
Data download quota for this user (if not set, no quota applies)
-
-
Constructor Details
-
Method Details
-
getUsername
Returns the username.- Returns:
- username
-
setUsername
Set the username.- Parameters:
username- the new username
-
getPassword
Returns the password.- Returns:
- password
-
setPassword
Set the password.- Parameters:
password- the new password
-
getEnabled
Returns the enabled.- Returns:
- enabled
-
setEnabled
Set the enabled.- Parameters:
enabled- the new enabled
-
getAuthorities
Returns the authorities.- Returns:
- authorities
-
setAuthorities
Set the authorities.- Parameters:
authorities- the new authorities
-
getExpirationDate
Returns the expirationDate.- Returns:
- expirationDate
-
setExpirationDate
Set the expirationDate.- Parameters:
expirationDate- the new expirationDate
-
getPasswordExpirationDate
Returns the passwordExpirationDate.- Returns:
- passwordExpirationDate
-
setPasswordExpirationDate
Set the passwordExpirationDate.- Parameters:
passwordExpirationDate- the new passwordExpirationDate
-
getQuota
Returns the quota.- Returns:
- quota
-
setQuota
Set the quota.- Parameters:
quota- the new quota
-
hashCode
public int hashCode() -
equals
-
toString
-