Package main.model.user
Class UserFactory
java.lang.Object
main.model.user.UserFactory
A factory class for creating User objects based on the given parameters.
-
Constructor Summary
-
Method Summary
-
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.
-