Class Credentials

java.lang.Object
com.genologics.ri.researcher.Credentials
All Implemented Interfaces:
Serializable

public class Credentials extends Object implements 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 Details

    • username

      protected String username
      The researcher's username.
    • password

      protected String password
      The researcher's password.
    • accountLocked

      protected Boolean accountLocked
      Whether the researcher's account is locked.
    • roles

      protected List<Role> roles
      The roles assigned to the researcher.
  • Constructor Details

    • Credentials

      public Credentials()
  • Method Details

    • getUsername

      public String getUsername()
      Gets the username.
      Returns:
      The username.
    • setUsername

      public void setUsername(String value)
      Sets the username.
      Parameters:
      value - The username.
    • getPassword

      public String getPassword()
      Gets the password.
      Returns:
      The password.
    • setPassword

      public void setPassword(String value)
      Sets the password.
      Parameters:
      value - The password.
    • isAccountLocked

      public Boolean isAccountLocked()
      Checks whether the account is locked.
      Returns:
      True if the account is locked, false otherwise.
    • setAccountLocked

      public void setAccountLocked(Boolean value)
      Sets whether the account is locked.
      Parameters:
      value - True to lock the account, false otherwise.
    • getRoles

      public List<Role> getRoles()
      Gets the list of roles assigned to the researcher.
      Returns:
      The list of roles.
    • addRole

      public Role addRole(Role role)
      Adds a role to the researcher's credentials.
      Parameters:
      role - The role to add.
      Returns:
      The added role.
    • addRole

      public Role addRole(String name)
      Adds a role to the researcher's credentials.
      Parameters:
      name - The name of the role to add.
      Returns:
      The newly created role.