public class DOIUser extends Object
Modifier and Type | Field and Description |
---|---|
private Boolean |
admin
Indicates if the user is admin.
|
private String |
email
Email of the user name.
|
private String |
username
User name.
|
Constructor and Description |
---|
DOIUser() |
Modifier and Type | Method and Description |
---|---|
String |
getEmail()
Returns the email.
|
String |
getUsername()
Returns the user name.
|
Boolean |
isAdmin()
Returns True when the user is administrator otherwise False.
|
Boolean |
isEqualTo(DOIUser testuser)
Tests if this object is equal to testuser.
|
void |
setAdmin(Boolean isAdmin)
Sets an administrator as admin.
|
void |
setEmail(String email)
Sets the email of the user.
|
void |
setUsername(String username)
Sets the user name.
|
String |
toString() |
private String username
private Boolean admin
private String email
public String getUsername()
public void setUsername(String username)
username
- user name.public Boolean isAdmin()
public void setAdmin(Boolean isAdmin)
isAdmin
- True when the user is administrator otherwise Falsepublic void setEmail(String email)
email
- emailpublic String getEmail()
public Boolean isEqualTo(DOIUser testuser)
testuser
- DOIUser to testCopyright © 2017–2020 CNES. All rights reserved.