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 Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.appID()Returns the value of theappIDrecord component.deviceID()Returns the value of thedeviceIDrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.kind()Returns the value of thekindrecord component.place()Returns the value of theplacerecord component.serverID()Returns the value of theserverIDrecord component.severity()Returns the value of theseverityrecord component.text()Returns the value of thetextrecord component.longtime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.uid()Returns the value of theuidrecord component.userName()Returns the value of theuserNamerecord component.
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 aEventrecord class.- Parameters:
id- the value for theidrecord componenttime- the value for thetimerecord componentseverity- the value for theseverityrecord componentkind- the value for thekindrecord componentuid- the value for theuidrecord componentuserName- the value for theuserNamerecord componentappID- the value for theappIDrecord componentdeviceID- the value for thedeviceIDrecord componentaddress- the value for theaddressrecord componentplace- the value for theplacerecord componenttext- the value for thetextrecord componentserverID- the value for theserverIDrecord component
Method Details
toString
hashCode
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes.id
time
severity
kind
uid
userName
appID
deviceID
address
place
text
serverID