Class UserFactory

java.lang.Object
main.model.user.UserFactory

public class UserFactory extends Object
A factory class for creating User objects based on the given parameters.
  • Constructor Details

    • UserFactory

      public UserFactory()
  • Method Details

    • create

      public static User create(UserType userType, String userID, String password, String name, String email)
      Creates a new User object based on the given parameters.
      Parameters:
      userType - The type of user to be created (student, faculty, or coordinator).
      userID - The user's ID.
      password - The user's password in plaintext.
      name - The user's name.
      email - The user's email address.
      Returns:
      A new User object of the specified type.