Package main.domain.contexts.user
Class AdminRegistering
java.lang.Object
main.domain.contexts.user.UserRegistering
main.domain.contexts.user.AdminRegistering
-
Constructor Summary
ConstructorsConstructorDescriptionAdminRegistering(Users repository) Constructor that initializes the repository. -
Method Summary
Modifier and TypeMethodDescriptionSets the login information for the admin user.Sets the personal information for the admin user.voidregister()Registers the admin user.
-
Constructor Details
-
AdminRegistering
Constructor that initializes the repository.- Parameters:
repository- the users repository
-
-
Method Details
-
login
Sets the login information for the admin user.- Overrides:
loginin classUserRegistering- Parameters:
login- the login information- Returns:
- the updated AdminRegistering object
-
person
Sets the personal information for the admin user.- Overrides:
personin classUserRegistering- Parameters:
person- the personal information- Returns:
- the updated AdminRegistering object
-
register
Registers the admin user.- Overrides:
registerin classUserRegistering- Throws:
EmailAlreadyExists- if the email is already registered
-