Class UserCredentials
java.lang.Object
no.idata1002.group19.domain.entity.UserCredentials
Represents user credentials, including the username, password, role, and budget ID.
- Since:
- 16.04.2023
- Version:
- 23.04.2023
- Author:
- Group19
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getBid()
Returns the budget ID of this UserCredentials object.Returns the password of this UserCredentials object.getRole()
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.
-
Constructor Details
-
UserCredentials
public UserCredentials()
-
-
Method Details
-
getUsername
Returns the username of this UserCredentials object.- Returns:
- the username of this UserCredentials object.
-
setUsername
Sets the username of this UserCredentials object to the specified value.- Parameters:
username
- the new username to be set for this UserCredentials object.
-
getPassword
Returns the password of this UserCredentials object.- Returns:
- the password of this UserCredentials object.
-
setPassword
Sets the password of this UserCredentials object to the specified value.- Parameters:
password
- the new password to be set for this UserCredentials object.
-
getRole
Returns the role of this UserCredentials object.- Returns:
- the role of this UserCredentials object.
-
setRole
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.
-