java.lang.Object
com.genologics.ri.researcher.Credentials
- All Implemented Interfaces:
Serializable
The credentials element contains information about a researcher's access to
the client software interface. It is used only when a researcher is given
access to the system. It is not used when a researcher's information is being
stored for contact purposes only.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a role to the researcher's credentials.Adds a role to the researcher's credentials.Gets the password.getRoles()Gets the list of roles assigned to the researcher.Gets the username.Checks whether the account is locked.voidsetAccountLocked(Boolean value) Sets whether the account is locked.voidsetPassword(String value) Sets the password.voidsetUsername(String value) Sets the username.
-
Field Details
-
username
The researcher's username. -
password
The researcher's password. -
accountLocked
Whether the researcher's account is locked. -
roles
The roles assigned to the researcher.
-
-
Constructor Details
-
Credentials
public Credentials()
-
-
Method Details
-
getUsername
Gets the username.- Returns:
- The username.
-
setUsername
Sets the username.- Parameters:
value- The username.
-
getPassword
Gets the password.- Returns:
- The password.
-
setPassword
Sets the password.- Parameters:
value- The password.
-
isAccountLocked
Checks whether the account is locked.- Returns:
- True if the account is locked, false otherwise.
-
setAccountLocked
Sets whether the account is locked.- Parameters:
value- True to lock the account, false otherwise.
-
getRoles
Gets the list of roles assigned to the researcher.- Returns:
- The list of roles.
-
addRole
Adds a role to the researcher's credentials.- Parameters:
role- The role to add.- Returns:
- The added role.
-
addRole
Adds a role to the researcher's credentials.- Parameters:
name- The name of the role to add.- Returns:
- The newly created role.
-