Record Class UserShowingAdminDTO
java.lang.Object
java.lang.Record
callofproject.dev.authentication.dto.admin.UserShowingAdminDTO
public record UserShowingAdminDTO(String username, UUID userId, Set<callofproject.dev.repository.authentication.entity.Role> roles, String email, boolean isAccountBlocked, String firstName, String middleName, String lastName, LocalDate creationDate, LocalDateTime deletedAt, LocalDate birthDate)
extends Record
Data Transfer Object for a course.
-
Constructor Summary
ConstructorsConstructorDescriptionUserShowingAdminDTO(String username, UUID userId, Set<callofproject.dev.repository.authentication.entity.Role> roles, String email, boolean isAccountBlocked, String firstName, String middleName, String lastName, LocalDate creationDate, LocalDateTime deletedAt, LocalDate birthDate) Creates an instance of aUserShowingAdminDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebirthDaterecord component.Returns the value of thecreationDaterecord component.Returns the value of thedeletedAtrecord component.email()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstNamerecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisAccountBlockedrecord component.lastName()Returns the value of thelastNamerecord component.Returns the value of themiddleNamerecord component.Set<callofproject.dev.repository.authentication.entity.Role>roles()Returns the value of therolesrecord component.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
UserShowingAdminDTO
public UserShowingAdminDTO(String username, UUID userId, Set<callofproject.dev.repository.authentication.entity.Role> roles, String email, boolean isAccountBlocked, String firstName, String middleName, String lastName, LocalDate creationDate, LocalDateTime deletedAt, LocalDate birthDate) Creates an instance of aUserShowingAdminDTOrecord class.- Parameters:
username- the value for theusernamerecord componentuserId- the value for theuserIdrecord componentroles- the value for therolesrecord componentemail- the value for theemailrecord componentisAccountBlocked- the value for theisAccountBlockedrecord componentfirstName- the value for thefirstNamerecord componentmiddleName- the value for themiddleNamerecord componentlastName- the value for thelastNamerecord componentcreationDate- the value for thecreationDaterecord componentdeletedAt- the value for thedeletedAtrecord componentbirthDate- the value for thebirthDaterecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
roles
Returns the value of therolesrecord component.- Returns:
- the value of the
rolesrecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
isAccountBlocked
public boolean isAccountBlocked()Returns the value of theisAccountBlockedrecord component.- Returns:
- the value of the
isAccountBlockedrecord component
-
firstName
Returns the value of thefirstNamerecord component.- Returns:
- the value of the
firstNamerecord component
-
middleName
Returns the value of themiddleNamerecord component.- Returns:
- the value of the
middleNamerecord component
-
lastName
Returns the value of thelastNamerecord component.- Returns:
- the value of the
lastNamerecord component
-
creationDate
Returns the value of thecreationDaterecord component.- Returns:
- the value of the
creationDaterecord component
-
deletedAt
Returns the value of thedeletedAtrecord component.- Returns:
- the value of the
deletedAtrecord component
-
birthDate
Returns the value of thebirthDaterecord component.- Returns:
- the value of the
birthDaterecord component
-