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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondst()Returns the value of thedstrecord component.end()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.msg()Returns the value of themsgrecord component.shost()Returns the value of theshostrecord component.src()Returns the value of thesrcrecord component.suid()Returns the value of thesuidrecord component.suser()Returns the value of thesuserrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Extension
public Extension(String src, String dst, String shost, String suid, String suser, String msg, Long end) Creates an instance of aExtensionrecord class.- Parameters:
src- the value for thesrcrecord componentdst- the value for thedstrecord componentshost- the value for theshostrecord componentsuid- the value for thesuidrecord componentsuser- the value for thesuserrecord componentmsg- the value for themsgrecord componentend- the value for theendrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
src
Returns the value of thesrcrecord component.- Returns:
- the value of the
srcrecord component
-
dst
Returns the value of thedstrecord component.- Returns:
- the value of the
dstrecord component
-
shost
Returns the value of theshostrecord component.- Returns:
- the value of the
shostrecord component
-
suid
Returns the value of thesuidrecord component.- Returns:
- the value of the
suidrecord component
-
suser
Returns the value of thesuserrecord component.- Returns:
- the value of the
suserrecord component
-
msg
Returns the value of themsgrecord component.- Returns:
- the value of the
msgrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-