Package com.dzidzi.dto.administration
Class AddAdministrationRequest
java.lang.Object
com.dzidzi.dto.administration.AddAdministrationRequest
AddAdministrationRequest represents the DTO request containing the objects used to create a new admin user.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The first name of the adminThe last name of the adminThe new password to use.The same password typed in newPasswordThe new username to use for your account
-
Constructor Details
-
AddAdministrationRequest
public AddAdministrationRequest() -
AddAdministrationRequest
@ConstructorProperties({"firstName","lastName","newPassword","repeatPass","username"}) public AddAdministrationRequest(String firstName, String lastName, String newPassword, String repeatPass, String username) Creates a newAddAdministrationRequestinstance.- Parameters:
firstName- The first name of the adminlastName- The last name of the adminnewPassword- The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters.repeatPass- The same password typed in newPasswordusername- The new username to use for your account
-
-
Method Details
-
builder
-
getFirstName
The first name of the admin -
getLastName
The last name of the admin -
getNewPassword
The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters. -
getRepeatPass
The same password typed in newPassword -
getUsername
The new username to use for your account
-