Class RelatedPromotionalProductsCategoryDetailsContributor
java.lang.Object
com.broadleafcommerce.catalog.service.category.commerce.contributor.RelatedPromotionalProductsCategoryDetailsContributor
- All Implemented Interfaces:
CategoryDetailsContributor
,org.springframework.core.Ordered
public class RelatedPromotionalProductsCategoryDetailsContributor
extends Object
implements CategoryDetailsContributor
Contributes the
requested category's promotional
products
.- Author:
- Nathan Moore (nathandmoore)
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncontribute
(@NonNull CategoryDetails categoryDetails, @NonNull CategoryDetailsContext categoryDetailsContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Contributes to the suppliedCategoryDetails
.int
getOrder()
-
Field Details
-
DEFAULT_ORDER
public static final int DEFAULT_ORDER- See Also:
-
-
Constructor Details
-
RelatedPromotionalProductsCategoryDetailsContributor
public RelatedPromotionalProductsCategoryDetailsContributor()
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
contribute
public CategoryDetails contribute(@NonNull @NonNull CategoryDetails categoryDetails, @NonNull @NonNull CategoryDetailsContext categoryDetailsContext, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CategoryDetailsContributor
Contributes to the suppliedCategoryDetails
. This should not mutate the inputted details, but return a new one with the new contributions.- Specified by:
contribute
in interfaceCategoryDetailsContributor
- Parameters:
categoryDetails
- The details to which to contributecategoryDetailsContext
- The context containing information that may be important for contributors.contextInfo
- context information surrounding sandboxing/multitenant state- Returns:
- An version of the supplied
CategoryDetails
with the new contributions.
-