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
Author:
Nathan Moore (nathandmoore)
  • Field Details

  • Constructor Details

    • RelatedPromotionalProductsCategoryDetailsContributor

      public RelatedPromotionalProductsCategoryDetailsContributor()
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.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 supplied CategoryDetails. This should not mutate the inputted details, but return a new one with the new contributions.
      Specified by:
      contribute in interface CategoryDetailsContributor
      Parameters:
      categoryDetails - The details to which to contribute
      categoryDetailsContext - 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.