Record Class SecurityEventStore.Event

java.lang.Object
java.lang.Record
com.iizix.server.user.SecurityEventStore.Event
Record Components:
id - The row identifier.
time - When, in epoch milliseconds (UTC).
severity - The severity.
kind - The kind.
uid - The user, null for none or a user since deleted.
userName - The user's name, null for none.
appID - The application, null for none.
deviceID - The device, null for none.
address - The client address, null for none.
place - The place of the address, null for none.
text - What happened.
serverID - The server that wrote it, null when unknown.
Enclosing class:
SecurityEventStore

public static record SecurityEventStore.Event(long id, long time, SecuritySeverity severity, SecurityEventKind kind, Long uid, String userName, String appID, String deviceID, String address, String place, String text, String serverID) extends Record
One event, as written and as read.
Author:
Christopher Mindus
  • Constructor Details

    • Event

      public Event(long id, long time, SecuritySeverity severity, SecurityEventKind kind, Long uid, String userName, String appID, String deviceID, String address, String place, String text, String serverID)
      Creates an instance of a Event record class.
      Parameters:
      id - the value for the id record component
      time - the value for the time record component
      severity - the value for the severity record component
      kind - the value for the kind record component
      uid - the value for the uid record component
      userName - the value for the userName record component
      appID - the value for the appID record component
      deviceID - the value for the deviceID record component
      address - the value for the address record component
      place - the value for the place record component
      text - the value for the text record component
      serverID - the value for the serverID 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 the compare method from their corresponding wrapper classes.
      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.
    • id

      public long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • time

      public long time()
      Returns the value of the time record component.
      Returns:
      the value of the time record component
    • severity

      public SecuritySeverity severity()
      Returns the value of the severity record component.
      Returns:
      the value of the severity record component
    • kind

      public SecurityEventKind kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • uid

      public Long uid()
      Returns the value of the uid record component.
      Returns:
      the value of the uid record component
    • userName

      public String userName()
      Returns the value of the userName record component.
      Returns:
      the value of the userName record component
    • appID

      public String appID()
      Returns the value of the appID record component.
      Returns:
      the value of the appID record component
    • deviceID

      public String deviceID()
      Returns the value of the deviceID record component.
      Returns:
      the value of the deviceID record component
    • address

      public String address()
      Returns the value of the address record component.
      Returns:
      the value of the address record component
    • place

      public String place()
      Returns the value of the place record component.
      Returns:
      the value of the place record component
    • text

      public String text()
      Returns the value of the text record component.
      Returns:
      the value of the text record component
    • serverID

      public String serverID()
      Returns the value of the serverID record component.
      Returns:
      the value of the serverID record component