Class UserTableView

java.lang.Object
com.ehealthsystem.admin.UserTableView

public class UserTableView extends Object
The class represents a user and is needed when wanting to store a user in an observable.
  • Field Details

    • username

      private javafx.beans.property.SimpleStringProperty username
      All the attributes a user can have.
    • email

      private javafx.beans.property.SimpleStringProperty email
      All the attributes a user can have.
    • firstName

      private javafx.beans.property.SimpleStringProperty firstName
      All the attributes a user can have.
    • lastName

      private javafx.beans.property.SimpleStringProperty lastName
      All the attributes a user can have.
    • street

      private javafx.beans.property.SimpleStringProperty street
      All the attributes a user can have.
    • houseNo

      private javafx.beans.property.SimpleStringProperty houseNo
      All the attributes a user can have.
    • gender

      private javafx.beans.property.SimpleStringProperty gender
      All the attributes a user can have.
    • zipCode

      private javafx.beans.property.SimpleStringProperty zipCode
    • birthDate

      private javafx.beans.property.SimpleStringProperty birthDate
    • insuranceName

      private javafx.beans.property.SimpleStringProperty insuranceName
    • privateInsurance

      private javafx.beans.property.SimpleBooleanProperty privateInsurance
    • password

      private javafx.beans.property.SimpleStringProperty password
  • Constructor Details

    • UserTableView

      public UserTableView(String username, String email, String firstName, String lastName, String birthDate, String gender, String street, String houseNo, String zipCode, String insuranceName, Boolean privateInsurance, String password)
      Construtor for initalizing all the values of a user.
      Parameters:
      username - the username of the logged in user that is set.
      email - the email of the logged in user that is set.
      firstName - the first name of the logged in user that is set.
      lastName - the last name of the logged in user that is set.
      birthDate - the birthday of the logged in user that is set.
      gender - the gender of the logged in user that is set.
      street - the street of the logged in user that is set.
      houseNo - the houseNo of the logged in user that is set.
      zipCode - the zip code of the logged in user that is set.
      insuranceName - the insurance name of the logged in user that is set.
      privateInsurance - the insurance type of the logged in user that is set.
      password - the hashed password of the logged in user that is set.
  • Method Details

    • setUsername

      public void setUsername(String username)
      set the value of the private attribute username.
      Parameters:
      username - the username of a user.
    • setEmail

      public void setEmail(String email)
      set the value of the private attribute email.
      Parameters:
      email - the email address of a user.
    • setFirstName

      public void setFirstName(String firstName)
      set the value of the private attribute firstName.
      Parameters:
      firstName - the first name of a user.
    • setLastName

      public void setLastName(String lastName)
      set the value of the private attribute lastName.
      Parameters:
      lastName - the last name of a user.
    • setBirthDate

      public void setBirthDate(String birthDate)
      set the value of the private attribute birthDate.
      Parameters:
      birthDate - the birthday of a user.
    • setGender

      public void setGender(String gender)
      set the value of the private attribute gender.
      Parameters:
      gender - the users gender.
    • setStreet

      public void setStreet(String street)
      set the value of the private attribute street.
      Parameters:
      street - the street the user lives in.
    • setHouseNo

      public void setHouseNo(String houseNo)
      set the value of the private attribute houseNo.
      Parameters:
      houseNo - the house number of the users home.
    • setZipCode

      public void setZipCode(String zipCode)
      set the value of the private attribute zipCode.
      Parameters:
      zipCode - the zip code of the users home.
    • setInsuranceName

      public void setInsuranceName(String insuranceName)
      set the value of the private attribute insuranceName.
      Parameters:
      insuranceName - the insurance of the user.
    • setPrivateInsurance

      public void setPrivateInsurance(Boolean privateInsurance)
      set the value of the private attribute privateInsurance.
      Parameters:
      privateInsurance - the users insurance type.
    • setPassword

      public void setPassword(String password) throws SQLException
      set the value of the private attribute password.
      Parameters:
      password - the users password in plain-text.
      Throws:
      SQLException
    • getUsername

      public String getUsername()
      Returns the username of a user.
      Returns:
      The username as a String.
    • getEmail

      public String getEmail()
      Returns the E-mail of a user.
      Returns:
      The E-mail as a String.
    • getFirstName

      public String getFirstName()
      Returns the first name of a user.
      Returns:
      The first name as a String.
    • getLastName

      public String getLastName()
      Returns the last name of a user.
      Returns:
      The last name as a String.
    • getBirthDate

      public String getBirthDate()
      Returns the birthday of a user.
      Returns:
      The birthday as a String.
    • getGender

      public String getGender()
      Returns the gender of a user.
      Returns:
      The gender as a String.
    • getStreet

      public String getStreet()
      Returns the street where a user lives.
      Returns:
      The street as a String.
    • getHouseNo

      public String getHouseNo()
      Returns the house no. of a users home.
      Returns:
      The house no. as a String.
    • getZipCode

      public String getZipCode()
      Returns the zip code of a users home.
      Returns:
      The zip code as a String.
    • getInsuranceName

      public String getInsuranceName()
      Returns the insurance name of a user.
      Returns:
      The insurance name as a String.
    • getPrivateInsurance

      public Boolean getPrivateInsurance()
      Returns the insurance type of a user.
      Returns:
      The insurance type as a Boolean (false = public, true = private).
    • getPassword

      public String getPassword()
      Returns the hashed password of a user.
      Returns:
      The password as a String.