Record Class Extension

java.lang.Object
java.lang.Record
digital.nedra.commons.starter.audit.dto.Extension
Record Components:
src - IP адрес, полученный от клиента (например от browser).
dst - IP/Host адрес сервера на котором запущен сервис.
shost - Host полученный от клиента (например от browser).
suid - При доменной аутентификации должен быть указать sid пользователя. При локальной аутентификации идентификатор системы. При аутентификации через IDP, то suid выгруженной записи.
suser - При доменной аутентификации должна быть указана доменная УЗ, при локальной – локальная УЗ.
msg - Описание события в формате JSON или обычного текста.
end - Время фактического окончания события. Рекомендуется использовать Unix time в миллисекундах (System.currentTimeMillis()).

public record Extension(String src, String dst, String shost, String suid, String suser, String msg, Long end) extends Record
Набор дополнительных значений события аудита, определенных для поля Extension.
  • Constructor Details

    • Extension

      public Extension(String src, String dst, String shost, String suid, String suser, String msg, Long end)
      Creates an instance of a Extension record class.
      Parameters:
      src - the value for the src record component
      dst - the value for the dst record component
      shost - the value for the shost record component
      suid - the value for the suid record component
      suser - the value for the suser record component
      msg - the value for the msg record component
      end - the value for the end 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.
    • src

      public String src()
      Returns the value of the src record component.
      Returns:
      the value of the src record component
    • dst

      public String dst()
      Returns the value of the dst record component.
      Returns:
      the value of the dst record component
    • shost

      public String shost()
      Returns the value of the shost record component.
      Returns:
      the value of the shost record component
    • suid

      public String suid()
      Returns the value of the suid record component.
      Returns:
      the value of the suid record component
    • suser

      public String suser()
      Returns the value of the suser record component.
      Returns:
      the value of the suser record component
    • msg

      public String msg()
      Returns the value of the msg record component.
      Returns:
      the value of the msg record component
    • end

      public Long end()
      Returns the value of the end record component.
      Returns:
      the value of the end record component