Record Class UserCreated
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.audit.UserCreated
- Record Components:
timestamp- UTC creation time, nevernullusername- username of the new account, nevernullrole- initial role label (e.g."ROLE_ADMIN"or"USER"). May benullif the directory models users without an initial role.createdBy- subject id of the actor that triggered creation, ornullif anonymous / system
- All Implemented Interfaces:
AuditEvent
-
Constructor Summary
ConstructorsConstructorDescriptionUserCreated(Instant timestamp, String username, String role, String createdBy) Creates an instance of aUserCreatedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedByrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.role()Returns the value of therolerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
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). -
timestamp
Returns the value of thetimestamprecord component.- Specified by:
timestampin interfaceAuditEvent- Returns:
- the value of the
timestamprecord component
-
username
-
role
-
createdBy
-