Interface Tracking
- All Superinterfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
,Serializable
- All Known Subinterfaces:
ApplicationTracking
,CatalogTracking
,CustomerContextTracking
,FullTracking
,SandboxTracking
,TenantTracking
public interface Tracking
extends com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware, Serializable
Holds information related to audit, sandboxing, multitenancy and archival state (soft delete)
- Author:
- Jeff Fischer
-
Method Summary
Modifier and TypeMethodDescriptionMultitenancy information related to application stateThe archival state.Multitenancy information related to catalog stateAudit information regarding changes made to realize the current entity stateA multitenant concept.The last optional message that was applied during a transition (promotion or reversal).default String
Returns the customer context id that is used to discriminate entities withTrackableBehavior.CUSTOMER_CONTEXT
.The fields that have been overridden in this item in the current catalog (based on a parent catalog).getLevel()
Used to determine whether or not a record is a user sandbox record, a higher level sandbox record, or a production record.getMaxFieldVersion
(String fieldName) Retrieve the maxChangeDetail.getVersion()
whose ChangeDetail value is currently being expressed on the entity fieldName.Sandbox state informationThe ID of the associated tenantvoid
setApplication
(ApplicationInfo application) Multitenancy information related to application statevoid
setArchived
(Boolean archived) The archival state.void
setCatalog
(CatalogInfo catalog) Multitenancy information related to catalog statevoid
setChangeDetails
(List<ChangeDetail> changeDetails) Audit information regarding changes made to realize the current entity statevoid
setCreatingApplicationId
(String creatingApplicationId) A multitenant concept.void
setCurrentMessage
(String currentMessage) The last optional message that was applied during a transition (promotion or reversal).default void
setCustomerContextId
(String customerContextId) Sets the customer context id that is used to discriminate entities withTrackableBehavior.CUSTOMER_CONTEXT
.void
setFieldOverrides
(List<FieldOverride> fieldOverrides) The fields that have been overridden in this item in the current catalog (based on a parent catalog).void
Used to determine whether or not a record is a user sandbox record, a higher level sandbox record, or a production record.void
setMaxFieldVersion
(String fieldName, String version) Set the maxChangeDetail.getVersion()
whose ChangeDetail value is currently being expressed on the entity fieldName.void
setSandbox
(SandboxInfo sandbox) Sandbox state informationvoid
The ID of the associated tenantdefault boolean
default boolean
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationState, getNotificationStates, getNotificationStates, setNotificationStates
-
Method Details
-
getChangeDetails
List<ChangeDetail> getChangeDetails()Audit information regarding changes made to realize the current entity state- Returns:
- Audit information regarding changes
-
getFieldOverrides
List<FieldOverride> getFieldOverrides()The fields that have been overridden in this item in the current catalog (based on a parent catalog). This only applies to catalog discriminated items in a catalog hierarchy.- Returns:
- The fields that have been overridden in this item
-
getSandbox
SandboxInfo getSandbox()Sandbox state information- Returns:
- Sandbox state information
-
getCatalog
CatalogInfo getCatalog()Multitenancy information related to catalog state- Returns:
- Multitenancy information related to catalog
-
getApplication
ApplicationInfo getApplication()Multitenancy information related to application state- Returns:
- Multitenancy information related to application
-
getTenant
String getTenant()The ID of the associated tenant- Returns:
- ID of the associated tenant
-
getCustomerContextId
Returns the customer context id that is used to discriminate entities withTrackableBehavior.CUSTOMER_CONTEXT
.- Returns:
- the customer context id
-
setCustomerContextId
Sets the customer context id that is used to discriminate entities withTrackableBehavior.CUSTOMER_CONTEXT
.- Parameters:
customerContextId
- the customer context id
-
getArchived
Boolean getArchived()The archival state. Archived records are generally filtered from fetch results. Records are often archived at this level as a result of a completed delete (i.e. soft delete).- Returns:
- The archival state
-
getLevel
Integer getLevel()Used to determine whether or not a record is a user sandbox record, a higher level sandbox record, or a production record. SeeTrackingLevel
- Returns:
- The current state of an item as it relates to sandbox or production status
-
getCreatingApplicationId
String getCreatingApplicationId()A multitenant concept. When a record is created, this is the id of the application used during the creation.- Returns:
- The application that was in-context at the time of record creation
-
setChangeDetails
Audit information regarding changes made to realize the current entity state- Parameters:
changeDetails
- Audit information regarding changes
-
setFieldOverrides
The fields that have been overridden in this item in the current catalog (based on a parent catalog). This only applies to catalog discriminated items in a catalog hierarchy.- Parameters:
fieldOverrides
- The fields that have been overridden in this item
-
setSandbox
Sandbox state information- Parameters:
sandbox
- Sandbox state information
-
setCatalog
Multitenancy information related to catalog state- Parameters:
catalog
- Multitenancy information related to catalog
-
setApplication
Multitenancy information related to application state- Parameters:
application
- Multitenancy information related to application
-
setTenant
The ID of the associated tenant- Parameters:
tenant
- ID of the associated tenant
-
setArchived
The archival state. Archived records are generally filtered from fetch results. Records are often archived at this level as a result of a completed delete (i.e. soft delete).- Parameters:
archived
- The archival state
-
setLevel
Used to determine whether or not a record is a user sandbox record, a higher level sandbox record, or a production record. SeeTrackingLevel
- Parameters:
level
- The current state of an item as it relates to sandbox or production status
-
setCreatingApplicationId
A multitenant concept. When a record is created, this is the id of the application used during the creation.- Parameters:
creatingApplicationId
- The application that was in-context at the time of record creation
-
getCurrentMessage
String getCurrentMessage()The last optional message that was applied during a transition (promotion or reversal). Previous messages are available inChangeDetail.getMessage()
.- Returns:
- The last optional message that was applied during a transition
-
setCurrentMessage
The last optional message that was applied during a transition (promotion or reversal). Previous messages are available inChangeDetail.getMessage()
.- Parameters:
currentMessage
- The last optional message that was applied during a transition
-
getMaxFieldVersion
Retrieve the maxChangeDetail.getVersion()
whose ChangeDetail value is currently being expressed on the entity fieldName.- Parameters:
fieldName
- The name of the field to check for the currently expressed ChangeDetail value.- Returns:
- The version of the expressed ChangeDetail, or null if no change for the fieldName is currently applied.
-
setMaxFieldVersion
Set the maxChangeDetail.getVersion()
whose ChangeDetail value is currently being expressed on the entity fieldName.- Parameters:
fieldName
- The name of the fieldversion
- The ChangeDetail version
-
supportsSandbox
default boolean supportsSandbox() -
supportsCatalog
default boolean supportsCatalog()
-