Record Class UserKafkaDTO
java.lang.Object
java.lang.Record
callofproject.dev.authentication.dto.UserKafkaDTO
public record UserKafkaDTO(UUID userId, String username, String email, String firstName, String middleName, String lastName, callofproject.dev.data.common.enums.EOperation operation, String password, Set<callofproject.dev.repository.authentication.entity.Role> roles, LocalDateTime deletedAt, int ownerProjectCount, int participantProjectCount, int totalProjectCount)
extends Record
Data Transfer Object for a user.
-
Constructor Summary
ConstructorsConstructorDescriptionUserKafkaDTO(UUID userId, String username, String email, String firstName, String middleName, String lastName, callofproject.dev.data.common.enums.EOperation operation, String password, Set<callofproject.dev.repository.authentication.entity.Role> roles, LocalDateTime deletedAt, int ownerProjectCount, int participantProjectCount, int totalProjectCount) Creates an instance of aUserKafkaDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.lastName()Returns the value of thelastNamerecord component.Returns the value of themiddleNamerecord component.callofproject.dev.data.common.enums.EOperationReturns the value of theoperationrecord component.intReturns the value of theownerProjectCountrecord component.intReturns the value of theparticipantProjectCountrecord component.password()Returns the value of thepasswordrecord 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.intReturns the value of thetotalProjectCountrecord component.userId()Returns the value of theuserIdrecord component.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
UserKafkaDTO
public UserKafkaDTO(UUID userId, String username, String email, String firstName, String middleName, String lastName, callofproject.dev.data.common.enums.EOperation operation, String password, Set<callofproject.dev.repository.authentication.entity.Role> roles, LocalDateTime deletedAt, int ownerProjectCount, int participantProjectCount, int totalProjectCount) Creates an instance of aUserKafkaDTOrecord class.- Parameters:
userId- the value for theuserIdrecord componentusername- the value for theusernamerecord componentemail- the value for theemailrecord componentfirstName- the value for thefirstNamerecord componentmiddleName- the value for themiddleNamerecord componentlastName- the value for thelastNamerecord componentoperation- the value for theoperationrecord componentpassword- the value for thepasswordrecord componentroles- the value for therolesrecord componentdeletedAt- the value for thedeletedAtrecord componentownerProjectCount- the value for theownerProjectCountrecord componentparticipantProjectCount- the value for theparticipantProjectCountrecord componenttotalProjectCount- the value for thetotalProjectCountrecord 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 '=='. -
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord 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
-
operation
public callofproject.dev.data.common.enums.EOperation operation()Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
roles
Returns the value of therolesrecord component.- Returns:
- the value of the
rolesrecord component
-
deletedAt
Returns the value of thedeletedAtrecord component.- Returns:
- the value of the
deletedAtrecord component
-
ownerProjectCount
public int ownerProjectCount()Returns the value of theownerProjectCountrecord component.- Returns:
- the value of the
ownerProjectCountrecord component
-
participantProjectCount
public int participantProjectCount()Returns the value of theparticipantProjectCountrecord component.- Returns:
- the value of the
participantProjectCountrecord component
-
totalProjectCount
public int totalProjectCount()Returns the value of thetotalProjectCountrecord component.- Returns:
- the value of the
totalProjectCountrecord component
-