Class ProductCharacteristicSkippingTranslationApplier

java.lang.Object
com.broadleafcommerce.catalog.service.translation.ProductCharacteristicSkippingTranslationApplier
All Implemented Interfaces:
com.broadleafcommerce.translation.mapping.EntityTranslationApplier, org.springframework.core.Ordered

public class ProductCharacteristicSkippingTranslationApplier extends Object implements com.broadleafcommerce.translation.mapping.EntityTranslationApplier
Since:
CatalogServices 2.3.0, ReleaseTrain 2.3.0
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(Object projection, com.broadleafcommerce.translation.domain.Translation translation)
    Should be applied only for product AND characteristics fields.
    void
    handle(Object projection, com.broadleafcommerce.translation.domain.Translation translation)
    Do nothing, as at the time this is invoked from TranslationPostMapperMember, the characteristics are not populated yet, as they are hydrated in ProductHydrationService

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.broadleafcommerce.translation.mapping.EntityTranslationApplier

    getOrder
  • Constructor Details

    • ProductCharacteristicSkippingTranslationApplier

      public ProductCharacteristicSkippingTranslationApplier()
  • Method Details

    • canHandle

      public boolean canHandle(Object projection, com.broadleafcommerce.translation.domain.Translation translation)
      Should be applied only for product AND characteristics fields.
      Specified by:
      canHandle in interface com.broadleafcommerce.translation.mapping.EntityTranslationApplier
      Parameters:
      projection - business domain projection
      translation - translation for that projection
      Returns:
      if this applier can handle the projection and translation
    • handle

      public void handle(Object projection, com.broadleafcommerce.translation.domain.Translation translation)
      Do nothing, as at the time this is invoked from TranslationPostMapperMember, the characteristics are not populated yet, as they are hydrated in ProductHydrationService
      Specified by:
      handle in interface com.broadleafcommerce.translation.mapping.EntityTranslationApplier
      Parameters:
      projection - business domain projection
      translation - translation for that projection