Record Class CompositeUserData

java.lang.Object
java.lang.Record
io.levysworks.models.CompositeUserData
Record Components:
initials - User initials
username - Username
uuid - User's UUID
firstName - User's first name
lastName - User's last name
email - User's email address
department - User's department or organizational unit
notes - Additional notes related to the user
keyCount - Number of keys associated with the user
servers - Comma-separated list of servers related to the user
requestId - Identifier for a specific key request
keyType - Type of the OpenSSH key
keyUid - Unique identifier for the key
server - Server name related to the key or request
publicKey - Public SSH key string
fingerprint - Fingerprint of the public key
acceptedBy - Admin who accepted the request
issuedDate - Timestamp when the key was issued
validUntil - Expiration timestamp for the key
logTitle - Title or summary of the log entry
logMessage - Detailed log message
logTimestamp - Timestamp of the log entry

public record CompositeUserData(String initials, String username, String uuid, String firstName, String lastName, String email, String department, String notes, Integer keyCount, String servers, Integer requestId, String keyType, String keyUid, String server, String publicKey, String fingerprint, String acceptedBy, Timestamp issuedDate, Timestamp validUntil, String logTitle, String logMessage, Timestamp logTimestamp) extends Record
Composite data record representing detailed user information, associated keys, server details, and related log entries.
  • Constructor Details

    • CompositeUserData

      public CompositeUserData(String initials, String username, String uuid, String firstName, String lastName, String email, String department, String notes, Integer keyCount, String servers, Integer requestId, String keyType, String keyUid, String server, String publicKey, String fingerprint, String acceptedBy, Timestamp issuedDate, Timestamp validUntil, String logTitle, String logMessage, Timestamp logTimestamp)
      Creates an instance of a CompositeUserData record class.
      Parameters:
      initials - the value for the initials record component
      username - the value for the username record component
      uuid - the value for the uuid record component
      firstName - the value for the firstName record component
      lastName - the value for the lastName record component
      email - the value for the email record component
      department - the value for the department record component
      notes - the value for the notes record component
      keyCount - the value for the keyCount record component
      servers - the value for the servers record component
      requestId - the value for the requestId record component
      keyType - the value for the keyType record component
      keyUid - the value for the keyUid record component
      server - the value for the server record component
      publicKey - the value for the publicKey record component
      fingerprint - the value for the fingerprint record component
      acceptedBy - the value for the acceptedBy record component
      issuedDate - the value for the issuedDate record component
      validUntil - the value for the validUntil record component
      logTitle - the value for the logTitle record component
      logMessage - the value for the logMessage record component
      logTimestamp - the value for the logTimestamp 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • initials

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

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

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

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

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

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

      public String department()
      Returns the value of the department record component.
      Returns:
      the value of the department record component
    • notes

      public String notes()
      Returns the value of the notes record component.
      Returns:
      the value of the notes record component
    • keyCount

      public Integer keyCount()
      Returns the value of the keyCount record component.
      Returns:
      the value of the keyCount record component
    • servers

      public String servers()
      Returns the value of the servers record component.
      Returns:
      the value of the servers record component
    • requestId

      public Integer requestId()
      Returns the value of the requestId record component.
      Returns:
      the value of the requestId record component
    • keyType

      public String keyType()
      Returns the value of the keyType record component.
      Returns:
      the value of the keyType record component
    • keyUid

      public String keyUid()
      Returns the value of the keyUid record component.
      Returns:
      the value of the keyUid record component
    • server

      public String server()
      Returns the value of the server record component.
      Returns:
      the value of the server record component
    • publicKey

      public String publicKey()
      Returns the value of the publicKey record component.
      Returns:
      the value of the publicKey record component
    • fingerprint

      public String fingerprint()
      Returns the value of the fingerprint record component.
      Returns:
      the value of the fingerprint record component
    • acceptedBy

      public String acceptedBy()
      Returns the value of the acceptedBy record component.
      Returns:
      the value of the acceptedBy record component
    • issuedDate

      public Timestamp issuedDate()
      Returns the value of the issuedDate record component.
      Returns:
      the value of the issuedDate record component
    • validUntil

      public Timestamp validUntil()
      Returns the value of the validUntil record component.
      Returns:
      the value of the validUntil record component
    • logTitle

      public String logTitle()
      Returns the value of the logTitle record component.
      Returns:
      the value of the logTitle record component
    • logMessage

      public String logMessage()
      Returns the value of the logMessage record component.
      Returns:
      the value of the logMessage record component
    • logTimestamp

      public Timestamp logTimestamp()
      Returns the value of the logTimestamp record component.
      Returns:
      the value of the logTimestamp record component