Package passport.domain.contexts.user
Class UserEditing
java.lang.Object
passport.domain.contexts.user.UserEditing
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Inner class representing the editing operations for a specific user. -
Constructor Summary
ConstructorDescriptionUserEditing
(Users repository) Constructs a UserEditing context with the specified user repository. -
Method Summary
Modifier and TypeMethodDescriptionchanging()
Prepares to change the specified user.Specifies the user to be edited.
-
Constructor Details
-
UserEditing
Constructs a UserEditing context with the specified user repository.- Parameters:
repository
- the repository of users
-
-
Method Details
-
of
Specifies the user to be edited.- Parameters:
user
- the user to be edited- Returns:
- the current UserEditing context
-
changing
Prepares to change the specified user.- Returns:
- an EditingWithTarget instance to apply changes
- Throws:
InexistentUser
- if the user does not exist in the repository
-