public class UserAccount
extends java.lang.Object
Represents the user account in DataGate server.
Constructor and Description |
---|
UserAccount() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
boolean |
getAccountNonExpired()
Gets a boolean value indicating if account has been expired
or not.
|
boolean |
getAccountNonLocked()
Gets a boolean value indicating if account has been locked
or not.
|
java.lang.String[] |
getAuthorities()
The list of authorities associated with the user.
|
java.util.List<java.lang.String> |
getCollections()
The list of collection permitted to be accessed by the user.
|
boolean |
getEnabled()
Gets a boolean value indicating if account is enabled
or not.
|
java.lang.String |
getPassword()
The user password.
|
java.lang.String |
getUserName()
The user name.
|
int |
hashCode() |
void |
setAccountNonExpired(boolean accountNonExpired)
A boolean value indicating whether account has
been expired or not.
|
void |
setAccountNonLocked(boolean accountNonLocked)
A boolean value indicating whether account has
been locked or not.
|
void |
setAuthorities(java.lang.String[] authorities)
The list of authorities associated with the user.
|
void |
setCollections(java.util.List<java.lang.String> collections)
The list of collection permitted to be accessed by the user.
|
void |
setEnabled(boolean enabled)
A boolean value indicating whether account has
been enabled or not.
|
void |
setPassword(java.lang.String password)
The user password.
|
void |
setUserName(java.lang.String userName)
The user name.
|
java.lang.String |
toString() |
public boolean getAccountNonExpired()
Gets a boolean value indicating if account has been expired or not.
false
if expired; true
otherwise.public boolean getAccountNonLocked()
Gets a boolean value indicating if account has been locked or not.
false
if locked; true
otherwise.public boolean getEnabled()
Gets a boolean value indicating if account is enabled or not.
true
if enabled; false
otherwise.@Generated(value="lombok") public java.lang.String getUserName()
The user name.
@Generated(value="lombok") public java.lang.String getPassword()
The user password.
@Generated(value="lombok") public java.lang.String[] getAuthorities()
The list of authorities associated with the user.
@Generated(value="lombok") public java.util.List<java.lang.String> getCollections()
The list of collection permitted to be accessed by the user.
@Generated(value="lombok") public void setUserName(java.lang.String userName)
The user name.
userName
- the user name@Generated(value="lombok") public void setPassword(java.lang.String password)
The user password.
password
- the user password@Generated(value="lombok") public void setAccountNonExpired(boolean accountNonExpired)
A boolean value indicating whether account has been expired or not.
accountNonExpired
- false
if expired; true
otherwise.@Generated(value="lombok") public void setAccountNonLocked(boolean accountNonLocked)
A boolean value indicating whether account has been locked or not.
accountNonLocked
- false
if locked; true
otherwise.@Generated(value="lombok") public void setEnabled(boolean enabled)
A boolean value indicating whether account has been enabled or not.
enabled
- true
if enabled; false
otherwise.@Generated(value="lombok") public void setAuthorities(java.lang.String[] authorities)
The list of authorities associated with the user.
authorities
- the list of authorities@Generated(value="lombok") public void setCollections(java.util.List<java.lang.String> collections)
The list of collection permitted to be accessed by the user.
collections
- the list of collections@Generated(value="lombok") public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
@Generated(value="lombok") protected boolean canEqual(java.lang.Object other)
@Generated(value="lombok") public int hashCode()
hashCode
in class java.lang.Object
@Generated(value="lombok") public java.lang.String toString()
toString
in class java.lang.Object