Package passport.domain.contexts.user
Class SigningUp
java.lang.Object
passport.domain.contexts.user.SigningUp
- All Implemented Interfaces:
Context
- Direct Known Subclasses:
AdminRegistering
Allows sign-up a User into a Repository.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SigningUp
Constructor that initializes the repository.- Parameters:
repository
- the users repository
-
-
Method Details
-
login
-
person
-
register
Registers the user in the repository.- Throws:
EmailAlreadyExists
- if the email is already registered
-