Class UserSignUpRequestDTO
java.lang.Object
callofproject.dev.authentication.dto.UserSignUpRequestDTO
DTO class for the user sign up request.
It is used to transfer data between the client and the server.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the UserSignUpRequestDTO class.UserSignUpRequestDTO
(String email, String firstName, String middleName, String lastName, String username, String password, LocalDate birthDate) Constructor for the UserSignUpRequestDTO class.UserSignUpRequestDTO
(String email, String firstName, String middleName, String lastName, String username, String password, LocalDate birthDate, callofproject.dev.repository.authentication.enumeration.RoleEnum role) Constructor for the UserSignUpRequestDTO class. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the birth date of the user.getEmail()
Retrieves the email of the user.Retrieves the first name of the user.Retrieves the last name of the user.Retrieves the middle name of the user.Retrieves the password of the user.callofproject.dev.repository.authentication.enumeration.RoleEnum
getRole()
Retrieves the role of the user.Retrieves the username of the user.void
setBirthDate
(LocalDate birthDate) Sets the birth date of the user.void
Sets the email of the user.void
setFirstName
(String firstName) Sets the first name of the user.void
setLastName
(String lastName) Sets the last name of the user.void
setMiddleName
(String middleName) Sets the middle name of the user.void
setPassword
(String password) Sets the password of the user.void
setRole
(callofproject.dev.repository.authentication.enumeration.RoleEnum role) Sets the role of the user.void
setUsername
(String username) Sets the username of the user.
-
Constructor Details
-
UserSignUpRequestDTO
public UserSignUpRequestDTO()Constructor for the UserSignUpRequestDTO class. It is used to create an instance of the class with all fields set to their default values. -
UserSignUpRequestDTO
public UserSignUpRequestDTO(String email, String firstName, String middleName, String lastName, String username, String password, LocalDate birthDate, callofproject.dev.repository.authentication.enumeration.RoleEnum role) Constructor for the UserSignUpRequestDTO class. It is used to create an instance of the class with all fields set to the values provided as parameters.- Parameters:
email
- The email of the user.firstName
- The first name of the user.middleName
- The middle name of the user.lastName
- The last name of the user.username
- The username of the user.password
- The password of the user.birthDate
- The birth date of the user.role
- The role of the user.
-
UserSignUpRequestDTO
public UserSignUpRequestDTO(String email, String firstName, String middleName, String lastName, String username, String password, LocalDate birthDate) Constructor for the UserSignUpRequestDTO class. It is used to create an instance of the class with all fields set to the values provided as parameters.- Parameters:
email
- The email of the user.firstName
- The first name of the user.middleName
- The middle name of the user.lastName
- The last name of the user.username
- The username of the user.password
- The password of the user.birthDate
- The birth date of the user.
-
-
Method Details
-
getRole
public callofproject.dev.repository.authentication.enumeration.RoleEnum getRole()Retrieves the role of the user.- Returns:
- RoleEnum The role of the user.
-
setRole
public void setRole(callofproject.dev.repository.authentication.enumeration.RoleEnum role) Sets the role of the user.- Parameters:
role
- The role of the user.
-
getEmail
Retrieves the email of the user.- Returns:
- String The email of the user.
-
setEmail
Sets the email of the user.- Parameters:
email
- The email of the user.
-
getFirstName
Retrieves the first name of the user.- Returns:
- String The first name of the user.
-
setFirstName
Sets the first name of the user.- Parameters:
firstName
- The first name of the user.
-
getMiddleName
Retrieves the middle name of the user.- Returns:
- String The middle name of the user.
-
setMiddleName
Sets the middle name of the user.- Parameters:
middleName
- The middle name of the user.
-
getLastName
Retrieves the last name of the user.- Returns:
- String The last name of the user.
-
setLastName
Sets the last name of the user.- Parameters:
lastName
- The last name of the user.
-
getUsername
Retrieves the username of the user.- Returns:
- String The username of the user.
-
setUsername
Sets the username of the user.- Parameters:
username
- The username of the user.
-
getPassword
Retrieves the password of the user.- Returns:
- String The password of the user.
-
setPassword
Sets the password of the user.- Parameters:
password
- The password of the user.
-
getBirthDate
Retrieves the birth date of the user.- Returns:
- LocalDate The birth date of the user.
-
setBirthDate
Sets the birth date of the user.- Parameters:
birthDate
- The birth date of the user.
-