Package passport.domain.contexts.user
Class UserEditing.EditingWithTarget
java.lang.Object
passport.domain.contexts.user.UserEditing.EditingWithTarget
- 
Constructor SummaryConstructorsConstructorDescriptionEditingWithTarget(Users repository, User target) Constructs an EditingWithTarget instance with the specified repository and user.
- 
Method SummaryModifier and TypeMethodDescriptionUpdates the user's CPF.voidedit()Commits the changes to the user.Updates the user's email.Updates the user's name.Updates the user's password.
- 
Constructor Details- 
EditingWithTarget
 
- 
- 
Method Details- 
nameUpdates the user's name.- Parameters:
- name- the new name
- Returns:
- the current EditingWithTarget instance
 
- 
cpfUpdates the user's CPF.- Parameters:
- cpf- the new CPF
- Returns:
- the current EditingWithTarget instance
 
- 
emailUpdates the user's email.- Parameters:
- rawEmail- the new email as a stirng
- Returns:
- the current EditingWithTarget instance
- Throws:
- EmailAlreadyExists- if the email already exists in the repository
 
- 
passwordUpdates the user's password.- Parameters:
- password- the new password
- Returns:
- the current EditingWithTarget instance
 
- 
editpublic void edit()Commits the changes to the user.
 
-