Class UserCredentials

java.lang.Object
no.idata1002.group19.domain.entity.UserCredentials

public class UserCredentials extends Object
Represents user credentials, including the username, password, role, and budget ID.
Since:
16.04.2023
Version:
23.04.2023
Author:
Group19
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the budget ID of this UserCredentials object.
    Returns the password of this UserCredentials object.
    Returns the role of this UserCredentials object.
    Returns the username of this UserCredentials object.
    void
    setBid(long bid)
    Sets the budget ID of this UserCredentials object to the specified value.
    void
    setPassword(String password)
    Sets the password of this UserCredentials object to the specified value.
    void
    Sets the role of this UserCredentials object to the specified value.
    void
    setUsername(String username)
    Sets the username of this UserCredentials object to the specified value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UserCredentials

      public UserCredentials()
  • Method Details

    • getUsername

      public String getUsername()
      Returns the username of this UserCredentials object.
      Returns:
      the username of this UserCredentials object.
    • setUsername

      public void setUsername(String username)
      Sets the username of this UserCredentials object to the specified value.
      Parameters:
      username - the new username to be set for this UserCredentials object.
    • getPassword

      public String getPassword()
      Returns the password of this UserCredentials object.
      Returns:
      the password of this UserCredentials object.
    • setPassword

      public void setPassword(String password)
      Sets the password of this UserCredentials object to the specified value.
      Parameters:
      password - the new password to be set for this UserCredentials object.
    • getRole

      public String getRole()
      Returns the role of this UserCredentials object.
      Returns:
      the role of this UserCredentials object.
    • setRole

      public void setRole(String role)
      Sets the role of this UserCredentials object to the specified value.
      Parameters:
      role - the new role to be set for this UserCredentials object.
    • getBid

      public long getBid()
      Returns the budget ID of this UserCredentials object.
      Returns:
      the budget ID of this UserCredentials object.
    • setBid

      public void setBid(long bid)
      Sets the budget ID of this UserCredentials object to the specified value.
      Parameters:
      bid - the new budget ID to be set for this UserCredentials object.