Class ChangeEvent
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.messaging.domain.ChangeEvent
-
- All Implemented Interfaces:
Serializable
public class ChangeEvent extends Object implements Serializable
Detailed summary information of a change made to an instance of a sandboxable entity.- Author:
- Chad Harchar (charchar)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChangeEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetAuthor()The author responsible for the change.TrackinggetChangeTracking()All of the information contained withinTrackingfor the record of this change.StringgetDisplayName()The name to display to the user that represents this change summary.StringgetDomainAlias()The projection domain alias for this change, represented as the class simple name, i.e., Product.StringgetDomainContextId()The contextId of the domain object that underwent the change.StringgetEntityType()The entity type for this change, represented as the fully qualified classname.StringgetIndexableTargetId()If the change implementsIndexableand is a member ofBatchIndexableType, reference the id of the target item to be indexed.StringgetIndexableType()If the change implementsIndexableand is a member ofBatchIndexableType, reference the string value ofBatchIndexableTypehere for the target item to be indexed.StringgetPromotionId()The promotion id to associate with this change event whenisPromoted()is true.StringgetSandbox()The sandbox that contains the change.StringgetSandboxName()The sandbox name to use if creating a sandbox.StringgetVendorRef()The vendor code or vendor ID associated to the changed entity.inthashCode()booleanisCreateSandboxIfDoesNotExist()Whether or not the sandbox denoted withgetSandbox()should be created if it does not already exist.booleanisPromoted()Whether or not the resulting state in the sandbox service represents a promoted item.booleanisRemoveTemporaryOverride()Whether or not to remove temporary application catalog override state at the edges of sandbox transition.booleanisTemporarySandbox()Whether or not the sandbox denoted atgetSandbox()is temporary and should be removed at the end of the sandbox transition lifecycle.voidsetAuthor(String author)The author responsible for the change.voidsetChangeTracking(Tracking changeTracking)All of the information contained withinTrackingfor the record of this change.voidsetCreateSandboxIfDoesNotExist(boolean createSandboxIfDoesNotExist)Whether or not the sandbox denoted withgetSandbox()should be created if it does not already exist.voidsetDisplayName(String displayName)The name to display to the user that represents this change summary.voidsetDomainAlias(String domainAlias)The projection domain alias for this change, represented as the class simple name, i.e., Product.voidsetDomainContextId(String domainContextId)The contextId of the domain object that underwent the change.voidsetEntityType(String entityType)The entity type for this change, represented as the fully qualified classname.voidsetIndexableTargetId(String indexableTargetId)If the change implementsIndexableand is a member ofBatchIndexableType, reference the id of the target item to be indexed.voidsetIndexableType(String indexableType)If the change implementsIndexableand is a member ofBatchIndexableType, reference the string value ofBatchIndexableTypehere for the target item to be indexed.voidsetPromoted(boolean isPromoted)Whether or not the resulting state in the sandbox service represents a promoted item.voidsetPromotionId(String promotionId)The promotion id to associate with this change event whenisPromoted()is true.voidsetRemoveTemporaryOverride(boolean isRemoveTemporaryOverride)Whether or not to remove temporary application catalog override state at the edges of sandbox transition.voidsetSandbox(String sandbox)The sandbox that contains the change.voidsetSandboxName(String sandboxName)The sandbox name to use if creating a sandbox.voidsetTemporarySandbox(boolean isTemporarySandbox)Whether or not the sandbox denoted atgetSandbox()is temporary and should be removed at the end of the sandbox transition lifecycle.voidsetVendorRef(String vendorRef)The vendor code or vendor ID associated to the changed entity.StringtoString()
-
-
-
Method Detail
-
getDomainContextId
public String getDomainContextId()
The contextId of the domain object that underwent the change.- Returns:
- The contextId of the domain object that underwent the change
-
getDomainAlias
public String getDomainAlias()
The projection domain alias for this change, represented as the class simple name, i.e., Product.- Returns:
- The projection domain alias for this change
-
getEntityType
public String getEntityType()
The entity type for this change, represented as the fully qualified classname.- Returns:
- The entity type for this change
-
getAuthor
public String getAuthor()
The author responsible for the change.- Returns:
- The author responsible for this change
-
getSandbox
public String getSandbox()
The sandbox that contains the change.- Returns:
- The sandbox that contains the change
-
getSandboxName
public String getSandboxName()
The sandbox name to use if creating a sandbox.This is generally only used if
isCreateSandboxIfDoesNotExist()is true.- Returns:
- The sandbox name to use if creating a sandbox
-
getChangeTracking
public Tracking getChangeTracking()
All of the information contained withinTrackingfor the record of this change.- Returns:
- All of the information contained within
Trackingfor the record of this change
-
getDisplayName
public String getDisplayName()
The name to display to the user that represents this change summary. Typically retrieved fromTrackable.getDisplay().- Returns:
- The name to display to the user that represents this change summary
-
getIndexableType
public String getIndexableType()
If the change implementsIndexableand is a member ofBatchIndexableType, reference the string value ofBatchIndexableTypehere for the target item to be indexed. Note, this may not be the entity actually being changed here. If, for example, this change is for aCatalogProduct, the target item to be indexed is actually the referenced product.
-
getIndexableTargetId
public String getIndexableTargetId()
If the change implementsIndexableand is a member ofBatchIndexableType, reference the id of the target item to be indexed. Note, this may not be the entity actually being changed here. If, for example, this change is for aCatalogProduct, the target item to be indexed is actually the referenced product.
-
isPromoted
public boolean isPromoted()
Whether or not the resulting state in the sandbox service represents a promoted item. Note, the related entity in the resource tier must be persisted in the appropriate promoted state as well.
-
getPromotionId
public String getPromotionId()
The promotion id to associate with this change event whenisPromoted()is true.
-
isCreateSandboxIfDoesNotExist
public boolean isCreateSandboxIfDoesNotExist()
Whether or not the sandbox denoted withgetSandbox()should be created if it does not already exist. The information supplied ingetSandboxName()andisTemporarySandbox()will be used to populate the corresponding fields on the sandbox.
-
isTemporarySandbox
public boolean isTemporarySandbox()
Whether or not the sandbox denoted atgetSandbox()is temporary and should be removed at the end of the sandbox transition lifecycle.This will only be used if
isCreateSandboxIfDoesNotExist()is true.
-
isRemoveTemporaryOverride
public boolean isRemoveTemporaryOverride()
Whether or not to remove temporary application catalog override state at the edges of sandbox transition. This includes revert or deploy. Temporary application override state can occur during parent catalog deployment propagation. SeeVendorSandboxPropagationHandlerfor more information.
-
getVendorRef
@Nullable public String getVendorRef()
The vendor code or vendor ID associated to the changed entity.If the entity is not vendor-discriminated or simply doesn't have an associated vendor, this will be null.
-
setDomainContextId
public void setDomainContextId(String domainContextId)
The contextId of the domain object that underwent the change.- Parameters:
domainContextId- The contextId of the domain object that underwent the change
-
setDomainAlias
public void setDomainAlias(String domainAlias)
The projection domain alias for this change, represented as the class simple name, i.e., Product.- Parameters:
domainAlias- The projection domain alias for this change
-
setEntityType
public void setEntityType(String entityType)
The entity type for this change, represented as the fully qualified classname.- Parameters:
entityType- The entity type for this change
-
setAuthor
public void setAuthor(String author)
The author responsible for the change.- Parameters:
author- The author responsible for this change
-
setSandbox
public void setSandbox(String sandbox)
The sandbox that contains the change.- Parameters:
sandbox- The sandbox that contains the change
-
setSandboxName
public void setSandboxName(String sandboxName)
The sandbox name to use if creating a sandbox.This is generally only used if
isCreateSandboxIfDoesNotExist()is true.- Parameters:
The- sandbox name to use if creating a sandbox
-
setChangeTracking
public void setChangeTracking(Tracking changeTracking)
All of the information contained withinTrackingfor the record of this change.- Parameters:
changeTracking- All of the information contained withinTrackingfor the record of this change
-
setDisplayName
public void setDisplayName(String displayName)
The name to display to the user that represents this change summary. Typically retrieved fromTrackable.getDisplay().- Parameters:
displayName- The name to display to the user that represents this change summary
-
setIndexableType
public void setIndexableType(String indexableType)
If the change implementsIndexableand is a member ofBatchIndexableType, reference the string value ofBatchIndexableTypehere for the target item to be indexed. Note, this may not be the entity actually being changed here. If, for example, this change is for aCatalogProduct, the target item to be indexed is actually the referenced product.
-
setIndexableTargetId
public void setIndexableTargetId(String indexableTargetId)
If the change implementsIndexableand is a member ofBatchIndexableType, reference the id of the target item to be indexed. Note, this may not be the entity actually being changed here. If, for example, this change is for aCatalogProduct, the target item to be indexed is actually the referenced product.
-
setPromoted
public void setPromoted(boolean isPromoted)
Whether or not the resulting state in the sandbox service represents a promoted item. Note, the related entity in the resource tier must be persisted in the appropriate promoted state as well.
-
setPromotionId
public void setPromotionId(String promotionId)
The promotion id to associate with this change event whenisPromoted()is true.
-
setCreateSandboxIfDoesNotExist
public void setCreateSandboxIfDoesNotExist(boolean createSandboxIfDoesNotExist)
Whether or not the sandbox denoted withgetSandbox()should be created if it does not already exist. The information supplied ingetSandboxName()andisTemporarySandbox()will be used to populate the corresponding fields on the sandbox.
-
setTemporarySandbox
public void setTemporarySandbox(boolean isTemporarySandbox)
Whether or not the sandbox denoted atgetSandbox()is temporary and should be removed at the end of the sandbox transition lifecycle.This will only be used if
isCreateSandboxIfDoesNotExist()is true.
-
setRemoveTemporaryOverride
public void setRemoveTemporaryOverride(boolean isRemoveTemporaryOverride)
Whether or not to remove temporary application catalog override state at the edges of sandbox transition. This includes revert or deploy. Temporary application override state can occur during parent catalog deployment propagation. SeeVendorSandboxPropagationHandlerfor more information.
-
setVendorRef
public void setVendorRef(@Nullable String vendorRef)The vendor code or vendor ID associated to the changed entity.If the entity is not vendor-discriminated or simply doesn't have an associated vendor, this will be null.
-
canEqual
protected boolean canEqual(Object other)
-
-