Class AuditHeader
java.lang.Object
com.broadleafcommerce.audit.domain.AuditHeader
Projection audit header for a changed entity. Analogous to
AuditEventHeader
.-
Constructor Summary
ConstructorsConstructorDescriptionAuditHeader
(String id, Instant timestamp, String eventType, String entityType, String entityRef, String containerEventType, String containerRef, String customerId, String accountId, String tenantId, String catalogId, String applicationId, String detailType, String primaryAuthor, String secondaryAuthor, Map<String, String> additionalAttributes) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Identifier for an account entity.Any additional information, possibly required in extension scenarios.The application to which this audit record belongs.The catalog to which this audit record belongs.In the case ofTrackable
entity change, The name of the containing entity, which is typically snake-cased and capitalized, i.e., "PRODUCT".Identifying reference to the containing entity.Identifier for a customer entity.The type of detail information associated with this audit event.Identifying reference to the entity.Fully qualified class name of the top-level entity being changed.In the case ofTrackable
entity change, The name of the top-level entity that changed, which is typically snake-cased and capitalized, i.e., "PRODUCT".getId()
Primary keyThe primary author of the change.Any additional author for the change.The tenant to whom this audit record belongs.The time at which the change was reported to the system.int
hashCode()
void
setAccountId
(String accountId) Identifier for an account entity.void
setAdditionalAttributes
(Map<String, String> additionalAttributes) Any additional information, possibly required in extension scenarios.void
setApplicationId
(String applicationId) The application to which this audit record belongs.void
setCatalogId
(String catalogId) The catalog to which this audit record belongs.void
setContainerEventType
(String containerEventType) In the case ofTrackable
entity change, The name of the containing entity, which is typically snake-cased and capitalized, i.e., "PRODUCT".void
setContainerRef
(String containerRef) Identifying reference to the containing entity.void
setCustomerId
(String customerId) Identifier for a customer entity.void
setDetailType
(String detailType) The type of detail information associated with this audit event.void
setEntityRef
(String entityRef) Identifying reference to the entity.void
setEntityType
(String entityType) Fully qualified class name of the top-level entity being changed.void
setEventType
(String eventType) In the case ofTrackable
entity change, The name of the top-level entity that changed, which is typically snake-cased and capitalized, i.e., "PRODUCT".void
Primary keyvoid
setPrimaryAuthor
(String primaryAuthor) The primary author of the change.void
setSecondaryAuthor
(String secondaryAuthor) Any additional author for the change.void
setTenantId
(String tenantId) The tenant to whom this audit record belongs.void
setTimestamp
(Instant timestamp) The time at which the change was reported to the system.toString()
-
Constructor Details
-
AuditHeader
public AuditHeader() -
AuditHeader
public AuditHeader(String id, Instant timestamp, String eventType, String entityType, String entityRef, String containerEventType, String containerRef, String customerId, String accountId, String tenantId, String catalogId, String applicationId, String detailType, String primaryAuthor, String secondaryAuthor, Map<String, String> additionalAttributes)
-
-
Method Details
-
getId
Primary key -
getTimestamp
The time at which the change was reported to the system. Required. -
getEventType
In the case ofTrackable
entity change, The name of the top-level entity that changed, which is typically snake-cased and capitalized, i.e., "PRODUCT". Arbitrary audit events may use this field to represent the type of event. Required. -
getEntityType
Fully qualified class name of the top-level entity being changed. Optional. For audit changes to a particular entity. -
getEntityRef
Identifying reference to the entity. Usually a contextId for Trackable domain. Optional. For audit changes to a particular entity. -
getContainerEventType
In the case ofTrackable
entity change, The name of the containing entity, which is typically snake-cased and capitalized, i.e., "PRODUCT". This is a grouping concept for correlating multiple related changes to a singular concept. For example, a marketing message change, which from the admin perspective looks like a change to an offer. Optional. -
getContainerRef
Identifying reference to the containing entity. Usually a contextId for Trackable domain. Optional. SeecontainerEventType
. -
getCustomerId
Identifier for a customer entity. Useful for identifying a customer related to the change. Optional. For audit events related to a customer. -
getAccountId
Identifier for an account entity. Useful for identifying an account related to the change. Optional. For audit events related to an account. -
getTenantId
The tenant to whom this audit record belongs. Required. -
getCatalogId
The catalog to which this audit record belongs. Optional. For audit events related to a catalog discriminated entity. -
getApplicationId
The application to which this audit record belongs. Optional. For audit events related to an application discriminated entity. -
getDetailType
The type of detail information associated with this audit event. SeeDetailType
. Default isDetailType.NONE
-
getPrimaryAuthor
The primary author of the change. Optional. ForDetailType.CHANGE_DETAIL
events, this field generally represents the approver of the overall entity change. SeeAuditEventDetail.getAuthor()
for more specific ownership of field-level changes. For non-CHANGE_DETAIL events, this field represents the user driving the event. -
getSecondaryAuthor
Any additional author for the change. Optional. ForDetailType.CHANGE_DETAIL
events, this field generally represents the user engaged the deployment. -
getAdditionalAttributes
Any additional information, possibly required in extension scenarios. Optional. -
setId
Primary key -
setTimestamp
The time at which the change was reported to the system. Required. -
setEventType
In the case ofTrackable
entity change, The name of the top-level entity that changed, which is typically snake-cased and capitalized, i.e., "PRODUCT". Arbitrary audit events may use this field to represent the type of event. Required. -
setEntityType
Fully qualified class name of the top-level entity being changed. Optional. For audit changes to a particular entity. -
setEntityRef
Identifying reference to the entity. Usually a contextId for Trackable domain. Optional. For audit changes to a particular entity. -
setContainerEventType
In the case ofTrackable
entity change, The name of the containing entity, which is typically snake-cased and capitalized, i.e., "PRODUCT". This is a grouping concept for correlating multiple related changes to a singular concept. For example, a marketing message change, which from the admin perspective looks like a change to an offer. Optional. -
setContainerRef
Identifying reference to the containing entity. Usually a contextId for Trackable domain. Optional. SeecontainerEventType
. -
setCustomerId
Identifier for a customer entity. Useful for identifying a customer related to the change. Optional. For audit events related to a customer. -
setAccountId
Identifier for an account entity. Useful for identifying an account related to the change. Optional. For audit events related to an account. -
setTenantId
The tenant to whom this audit record belongs. Required. -
setCatalogId
The catalog to which this audit record belongs. Optional. For audit events related to a catalog discriminated entity. -
setApplicationId
The application to which this audit record belongs. Optional. For audit events related to an application discriminated entity. -
setDetailType
The type of detail information associated with this audit event. SeeDetailType
. Default isDetailType.NONE
-
setPrimaryAuthor
The primary author of the change. Optional. ForDetailType.CHANGE_DETAIL
events, this field generally represents the approver of the overall entity change. SeeAuditEventDetail.getAuthor()
for more specific ownership of field-level changes. For non-CHANGE_DETAIL events, this field represents the user driving the event. -
setSecondaryAuthor
Any additional author for the change. Optional. ForDetailType.CHANGE_DETAIL
events, this field generally represents the user engaged the deployment. -
setAdditionalAttributes
Any additional information, possibly required in extension scenarios. Optional. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-