Record Class AuditEntry
java.lang.Object
java.lang.Record
com.iantapply.orchestra.audit.AuditEntry
- Record Components:
occurredAt- time at which the operation occurredactor- authenticated actor identifieraction- operation nameresource- affected resource identifierdetail- human-readable operation detailremoteAddress- request origin, when available
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.actor()Returns the value of theactorrecord component.detail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoccurredAtrecord component.Returns the value of theremoteAddressrecord component.resource()Returns the value of theresourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AuditEntry
public AuditEntry(Instant occurredAt, String actor, String action, String resource, String detail, String remoteAddress) Creates an instance of aAuditEntryrecord class.- Parameters:
occurredAt- the value for theoccurredAtrecord componentactor- the value for theactorrecord componentaction- the value for theactionrecord componentresource- the value for theresourcerecord componentdetail- the value for thedetailrecord componentremoteAddress- the value for theremoteAddressrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
occurredAt
Returns the value of theoccurredAtrecord component.- Returns:
- the value of the
occurredAtrecord component
-
actor
-
action
-
resource
-
detail
-
remoteAddress
Returns the value of theremoteAddressrecord component.- Returns:
- the value of the
remoteAddressrecord component
-