Package passport.domain.contexts.user
Class AdminRegistering
java.lang.Object
passport.domain.contexts.user.SigningUp
passport.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. -
person
Sets the personal information for the admin user. -
register
Registers the admin user.- Overrides:
register
in classSigningUp
- Throws:
EmailAlreadyExists
- if the email is already registered
-