Class UserSignUpRequestDTO

java.lang.Object
callofproject.dev.authentication.dto.UserSignUpRequestDTO

public class UserSignUpRequestDTO extends Object
DTO class for the user sign up request. It is used to transfer data between the client and the server.
  • 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

      public String getEmail()
      Retrieves the email of the user.
      Returns:
      String The email of the user.
    • setEmail

      public void setEmail(String email)
      Sets the email of the user.
      Parameters:
      email - The email of the user.
    • getFirstName

      public String getFirstName()
      Retrieves the first name of the user.
      Returns:
      String The first name of the user.
    • setFirstName

      public void setFirstName(String firstName)
      Sets the first name of the user.
      Parameters:
      firstName - The first name of the user.
    • getMiddleName

      public String getMiddleName()
      Retrieves the middle name of the user.
      Returns:
      String The middle name of the user.
    • setMiddleName

      public void setMiddleName(String middleName)
      Sets the middle name of the user.
      Parameters:
      middleName - The middle name of the user.
    • getLastName

      public String getLastName()
      Retrieves the last name of the user.
      Returns:
      String The last name of the user.
    • setLastName

      public void setLastName(String lastName)
      Sets the last name of the user.
      Parameters:
      lastName - The last name of the user.
    • getUsername

      public String getUsername()
      Retrieves the username of the user.
      Returns:
      String The username of the user.
    • setUsername

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

      public String getPassword()
      Retrieves the password of the user.
      Returns:
      String The password of the user.
    • setPassword

      public void setPassword(String password)
      Sets the password of the user.
      Parameters:
      password - The password of the user.
    • getBirthDate

      public LocalDate getBirthDate()
      Retrieves the birth date of the user.
      Returns:
      LocalDate The birth date of the user.
    • setBirthDate

      public void setBirthDate(LocalDate birthDate)
      Sets the birth date of the user.
      Parameters:
      birthDate - The birth date of the user.