Class UserDetails

java.lang.Object
model.UserDetails
All Implemented Interfaces:
Serializable

public class UserDetails extends Object implements Serializable

Title: Misc

Description:

Copyright: Copyright (c) 2006

Company: TAFE SA

See Also:
  • Field Details

  • Constructor Details

    • UserDetails

      public UserDetails()

      no-arg UserDetails constructor

    • UserDetails

      public UserDetails(String userName)

      one arg UserDetails constructor

      Parameters:
      userName - user's alias
    • UserDetails

      public UserDetails(String userName, String password)

      two arg UserDetails constructor

      Parameters:
      userName - user's alias
      password - password for security
    • UserDetails

      public UserDetails(String userName, String password, boolean wantingIntroInfo)
      Parameters:
      userName - the username
      password - password for security
      wantingIntroInfo - Boolean if user wants the intro info to appear
  • Method Details

    • getUserName

      public String getUserName()
      Returns:
      current username
    • getPassword

      public String getPassword()
      Returns:
      current password
    • isWantingIntroInfo

      public boolean isWantingIntroInfo()
      Returns:
      true or false based on whether or not the introduction information is shown
    • setUserName

      public void setUserName(String userName)

      sets the value of userName

      Parameters:
      userName -
    • setPassword

      public void setPassword(String password)

      allows the password to be set/changed

      Parameters:
      password -
    • setWantingIntroInfo

      public void setWantingIntroInfo(boolean val)

      stores the value of whether the introductory info will be displayed to the user

      Parameters:
      val - either true or false
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      prints out all the data of all values for the UserDetils argument.
    • equals

      public boolean equals(Object userObject)
      Overrides:
      equals in class Object
      Parameters:
      userObject - an instance of the UserDetails object you want to check
      Returns:
      true or false if the values are the same
    • saveData

      public void saveData() throws Exception
      Throws:
      Exception - Method for saving all data for UserDetails
    • loadData

      public void loadData() throws Exception
      Throws:
      Exception - Method that will load all data for UserDetails