Class AuditDetail

java.lang.Object
com.broadleafcommerce.audit.domain.AuditDetail

public class AuditDetail extends Object
Projection audit detail for a particular entity field. Analogous to AdminAuditEventDetail.
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Primary key
    • getTimestamp

      public Instant getTimestamp()
      The timestamp at which the field change took place
    • getAuthor

      public String getAuthor()
      The author of the change. May be an admin user, or an identifier noting an automated system process.
    • getBeforeRepresentation

      public String 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

      public String getAfterRepresentation()
      The value for the field after the change was made. Json representation. May be simple, or a more complex structure - like a list.
    • getRawDetail

      public String getRawDetail()
      Raw information about the change.
    • getRepositoryField

      public String getRepositoryField()
      The name of the field on the repository domain. This is generally the name of a field in a JPA domain class.
    • getProjectionField

      public String 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

      public String getJavaType()
      The fully qualified classname of the Java type for this field.
    • getChangeType

      public String getChangeType()
      The operation type that mutated this field value. Maps to OperationType.
    • getMessage

      public String getMessage()
      Optional message included giving more information about the change. When included, usually noted by the admin user making the change.
    • getAdditionalAttributes

      public Map<String,String> getAdditionalAttributes()
      Any additional information, possibly required in extension scenarios
    • setId

      public void setId(String id)
      Primary key
    • setTimestamp

      public void setTimestamp(Instant timestamp)
      The timestamp at which the field change took place
    • setAuthor

      public void setAuthor(String author)
      The author of the change. May be an admin user, or an identifier noting an automated system process.
    • setBeforeRepresentation

      public void setBeforeRepresentation(String beforeRepresentation)
      The value for the field before the change was made. Json representation. May be simple, or a more complex structure - like a list.
    • setAfterRepresentation

      public void setAfterRepresentation(String afterRepresentation)
      The value for the field after the change was made. Json representation. May be simple, or a more complex structure - like a list.
    • setRawDetail

      public void setRawDetail(String rawDetail)
      Raw information about the change.
    • setRepositoryField

      public void setRepositoryField(String repositoryField)
      The name of the field on the repository domain. This is generally the name of a field in a JPA domain class.
    • setProjectionField

      public void setProjectionField(String projectionField)
      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.
    • setJavaType

      public void setJavaType(String javaType)
      The fully qualified classname of the Java type for this field.
    • setChangeType

      public void setChangeType(String changeType)
      The operation type that mutated this field value. Maps to OperationType.
    • setMessage

      public void setMessage(String message)
      Optional message included giving more information about the change. When included, usually noted by the admin user making the change.
    • setAdditionalAttributes

      public void setAdditionalAttributes(Map<String,String> additionalAttributes)
      Any additional information, possibly required in extension scenarios
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object