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 aUserShowingAdminDTO
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebirthDate
record component.Returns the value of thecreationDate
record component.Returns the value of thedeletedAt
record component.email()
Returns the value of theemail
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefirstName
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisAccountBlocked
record component.lastName()
Returns the value of thelastName
record component.Returns the value of themiddleName
record component.Set<callofproject.dev.repository.authentication.entity.Role>
roles()
Returns the value of theroles
record component.final String
toString()
Returns a string representation of this record class.userId()
Returns the value of theuserId
record component.username()
Returns the value of theusername
record 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 aUserShowingAdminDTO
record class.- Parameters:
username
- the value for theusername
record componentuserId
- the value for theuserId
record componentroles
- the value for theroles
record componentemail
- the value for theemail
record componentisAccountBlocked
- the value for theisAccountBlocked
record componentfirstName
- the value for thefirstName
record componentmiddleName
- the value for themiddleName
record componentlastName
- the value for thelastName
record componentcreationDate
- the value for thecreationDate
record componentdeletedAt
- the value for thedeletedAt
record componentbirthDate
- the value for thebirthDate
record 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 theusername
record component.- Returns:
- the value of the
username
record component
-
userId
Returns the value of theuserId
record component.- Returns:
- the value of the
userId
record component
-
roles
Returns the value of theroles
record component.- Returns:
- the value of the
roles
record component
-
email
Returns the value of theemail
record component.- Returns:
- the value of the
email
record component
-
isAccountBlocked
public boolean isAccountBlocked()Returns the value of theisAccountBlocked
record component.- Returns:
- the value of the
isAccountBlocked
record component
-
firstName
Returns the value of thefirstName
record component.- Returns:
- the value of the
firstName
record component
-
middleName
Returns the value of themiddleName
record component.- Returns:
- the value of the
middleName
record component
-
lastName
Returns the value of thelastName
record component.- Returns:
- the value of the
lastName
record component
-
creationDate
Returns the value of thecreationDate
record component.- Returns:
- the value of the
creationDate
record component
-
deletedAt
Returns the value of thedeletedAt
record component.- Returns:
- the value of the
deletedAt
record component
-
birthDate
Returns the value of thebirthDate
record component.- Returns:
- the value of the
birthDate
record component
-