Interface CatalogTrackable
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
-
Method Summary
Modifier and TypeMethodDescriptionThe IDs of descendant catalogs in which this context version of the product has been omitted as a result of one or more filters.Get any catalog contexts where this trackable has been overridden.default StringTheTracking.getCreatingApplicationId()of the entity.All of the IDs of marketplace applications where this product could appear in, based on the catalog hierarchy and online status.All of the IDs of marketplace applications where this product could appear in, based on the catalog hierarchy and pending status.This is similar togetCatalogOverrides(), except the values within are encoded with additional information about the sandbox state of the override.voidsetCatalogOmissions(Set<String> catalogOmissions) The IDs of descendant catalogs in which this context version of the product has been omitted as a result of one or more filters.voidsetCatalogOverrides(Set<String> catalogOverrides) Set any catalog contexts where this trackable has been overridden.default voidsetCreatingApplicationId(String creatingApplicationId) voidsetMarketplaceApplications(Set<String> marketplaceApplications) All of the IDs of marketplace applications where this product could appear in, based on the catalog hierarchy and online status.voidsetPendingMarketplaceApplications(Set<String> pendingMarketplaceApplications) All of the IDs of marketplace applications where this product could appear in, based on the catalog hierarchy and pending status.default voidsetSandboxAwareCatalogOverrides(Set<String> sandboxOverrides) Methods inherited from interface com.broadleafcommerce.data.tracking.core.ContextStateAware
getContextState, setContextState
-
Method Details
-
getCatalogOverrides
Get any catalog contexts where this trackable has been overridden.- Returns:
- Catalog contexts where this trackable has been overridden
-
setCatalogOverrides
Set any catalog contexts where this trackable has been overridden.- Parameters:
catalogOverrides- Catalog contexts where this trackable has been overridden
-
getSandboxAwareCatalogOverrides
This is similar to
getCatalogOverrides(), except the values within are encoded with additional information about the sandbox state of the override.This is only useful for entities that are both
TrackableBehavior.CATALOGandTrackableBehavior.SANDBOXdiscriminated.- If there is an override of this record at a production level, it will follow the format:
catalogId, where catalogId is the ID of the descendant catalog containing the override - If there is an override of this record at a higher-than-user (ex: promoted) sandbox
level, it will follow the format:
catalogId;sandboxId, where catalogId is the ID of the descendant catalog containing the override, and sandboxId is the ID of the sandbox containing the override - If there is an override of this record at a user sandbox level, it will follow the
format:
catalogId;sandboxId;sandboxOwner, where catalogId is the ID of the descendant catalog containing the override, sandboxId is the ID of the sandbox containing the override, and sandboxOwner is the author of the user-level change
This special encoding makes it possible for consumers to more clearly distinguish the contexts in which the current record has been overridden.
- Returns:
- encoded values representing the catalog in which this trackable has been overridden
- Since:
- SearchServices 2.2.1, Release Train 2.2.1, SearchServices 2.1.5, Release Train 2.1.5
- If there is an override of this record at a production level, it will follow the format:
-
setSandboxAwareCatalogOverrides
- Parameters:
sandboxOverrides- encoded values representing the catalog in which this trackable has been overridden- Since:
- SearchServices 2.2.1, Release Train 2.2.1, SearchServices 2.1.5, Release Train 2.1.5
-
getCreatingApplicationId
TheTracking.getCreatingApplicationId()of the entity.- Since:
- SearchServices 2.2.1, Release Train 2.2.1, SearchServices 2.1.5, Release Train 2.1.5
-
setCreatingApplicationId
- Since:
- SearchServices 2.2.1, Release Train 2.2.1, SearchServices 2.1.5, Release Train 2.1.5
-
getCatalogOmissions
The IDs of descendant catalogs in which this context version of the product has been omitted as a result of one or more filters.e.g. if this product is in catalog A, and catalog B inherits this product from catalog A but contains a filter that removes it from the view of catalog B, then the catalog A version product will contain "B" in its catalogOmissions.
- Returns:
- the IDs of any descendant catalogs in which this product has been omitted.
-
setCatalogOmissions
The IDs of descendant catalogs in which this context version of the product has been omitted as a result of one or more filters.e.g. if this product is in catalog A, and catalog B inherits this product from catalog A but contains a filter that removes it from the view of catalog B, then the catalog A version product will contain "B" in its catalogOmissions.
-
getMarketplaceApplications
All of the IDs of marketplace applications where this product could appear in, based on the catalog hierarchy and online status. -
getPendingMarketplaceApplications
All of the IDs of marketplace applications where this product could appear in, based on the catalog hierarchy and pending status. -
setMarketplaceApplications
All of the IDs of marketplace applications where this product could appear in, based on the catalog hierarchy and online status. -
setPendingMarketplaceApplications
All of the IDs of marketplace applications where this product could appear in, based on the catalog hierarchy and pending status.
-