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

    Constructors
    Constructor
    Description
    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 a UserKafkaDTO record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the deletedAt record component.
    Returns the value of the email record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the firstName record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the lastName record component.
    Returns the value of the middleName record component.
    callofproject.dev.data.common.enums.EOperation
    Returns the value of the operation record component.
    int
    Returns the value of the ownerProjectCount record component.
    int
    Returns the value of the participantProjectCount record component.
    Returns the value of the password record component.
    Set<callofproject.dev.repository.authentication.entity.Role>
    Returns the value of the roles record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the totalProjectCount record component.
    Returns the value of the userId record component.
    Returns the value of the username record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a UserKafkaDTO record class.
      Parameters:
      userId - the value for the userId record component
      username - the value for the username record component
      email - the value for the email record component
      firstName - the value for the firstName record component
      middleName - the value for the middleName record component
      lastName - the value for the lastName record component
      operation - the value for the operation record component
      password - the value for the password record component
      roles - the value for the roles record component
      deletedAt - the value for the deletedAt record component
      ownerProjectCount - the value for the ownerProjectCount record component
      participantProjectCount - the value for the participantProjectCount record component
      totalProjectCount - the value for the totalProjectCount record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • userId

      public UUID userId()
      Returns the value of the userId record component.
      Returns:
      the value of the userId record component
    • username

      public String username()
      Returns the value of the username record component.
      Returns:
      the value of the username record component
    • email

      public String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component
    • firstName

      public String firstName()
      Returns the value of the firstName record component.
      Returns:
      the value of the firstName record component
    • middleName

      public String middleName()
      Returns the value of the middleName record component.
      Returns:
      the value of the middleName record component
    • lastName

      public String lastName()
      Returns the value of the lastName record component.
      Returns:
      the value of the lastName record component
    • operation

      public callofproject.dev.data.common.enums.EOperation operation()
      Returns the value of the operation record component.
      Returns:
      the value of the operation record component
    • password

      public String password()
      Returns the value of the password record component.
      Returns:
      the value of the password record component
    • roles

      public Set<callofproject.dev.repository.authentication.entity.Role> roles()
      Returns the value of the roles record component.
      Returns:
      the value of the roles record component
    • deletedAt

      public LocalDateTime deletedAt()
      Returns the value of the deletedAt record component.
      Returns:
      the value of the deletedAt record component
    • ownerProjectCount

      public int ownerProjectCount()
      Returns the value of the ownerProjectCount record component.
      Returns:
      the value of the ownerProjectCount record component
    • participantProjectCount

      public int participantProjectCount()
      Returns the value of the participantProjectCount record component.
      Returns:
      the value of the participantProjectCount record component
    • totalProjectCount

      public int totalProjectCount()
      Returns the value of the totalProjectCount record component.
      Returns:
      the value of the totalProjectCount record component