Class AdminAuditEventDetail
java.lang.Object
com.broadleafcommerce.common.audit.domain.AdminAuditEventDetail
- All Implemented Interfaces:
AuditEventDetail
,Serializable
Field-by-field detail information about changes to an entity. See
AuditEventHeader
.
Generally only used when AuditEventHeader.getDetailType()
is
DetailType.CHANGE_DETAIL
. Also supports the builder pattern by using
AdminAuditEventDetail.builder()
.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
Any additional information, possibly required in extension scenariosThe value for the field after the change was made.The author of the change.The value for the field before the change was made.The operation type that mutated this field value.The fully qualified classname of the Java type for this field.Optional message included giving more information about the change.The name of the field in a projection domain.The name of the field on the repository domain.The timestamp at which the field change took placeint
hashCode()
toString()
-
Constructor Details
-
AdminAuditEventDetail
public AdminAuditEventDetail(@NonNull @NonNull String author, @NonNull @NonNull Instant timestamp, @Nullable String beforeRepresentation, @Nullable String afterRepresentation, @Nullable String repositoryField, @Nullable String projectionField, @Nullable String javaType, @Nullable String changeType, @Nullable String message, @Nullable Map<String, String> additionalAttributes)
-
-
Method Details
-
builder
-
getAuthor
The author of the change. May be an admin user, or an identifier noting an automated system process.- Specified by:
getAuthor
in interfaceAuditEventDetail
-
getTimestamp
The timestamp at which the field change took place- Specified by:
getTimestamp
in interfaceAuditEventDetail
-
getBeforeRepresentation
The value for the field before the change was made. Json representation. May be simple, or a more complex structure - like a list. -
getAfterRepresentation
The value for the field after the change was made. Json representation. May be simple, or a more complex structure - like a list. -
getRepositoryField
The name of the field on the repository domain. This is generally the name of a field in a JPA domain class. -
getProjectionField
The name of the field in a projection domain. This is generally the name of the field from domain serialized to and deserialized from JSON at the microservice endpoint API. Often this is the same as the repositoryField, but is not required to be. -
getJavaType
The fully qualified classname of the Java type for this field. -
getChangeType
The operation type that mutated this field value. Maps toOperationType
. -
getMessage
Optional message included giving more information about the change. When included, usually noted by the admin user making the change. -
getAdditionalAttributes
Any additional information, possibly required in extension scenarios -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-