Package main.domain.contexts.user
Class AdminRegistering
java.lang.Object
main.domain.contexts.user.UserRegistering
main.domain.contexts.user.AdminRegistering
-
Constructor Summary
ConstructorDescriptionAdminRegistering
(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.void
register()
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:
login
in classUserRegistering
- Parameters:
login
- the login information- Returns:
- the updated AdminRegistering object
-
person
Sets the personal information for the admin user.- Overrides:
person
in classUserRegistering
- Parameters:
person
- the personal information- Returns:
- the updated AdminRegistering object
-
register
Registers the admin user.- Overrides:
register
in classUserRegistering
- Throws:
EmailAlreadyExists
- if the email is already registered
-