Class AuthTranslationPostMapperMember

java.lang.Object
com.broadleafcommerce.translation.mapping.TranslationPostMapperMember
com.broadleafcommerce.auth.i18n.service.AuthTranslationPostMapperMember
All Implemented Interfaces:
com.broadleafcommerce.common.extension.data.DataRoutePartitionAware, com.broadleafcommerce.data.tracking.core.mapping.PostMapper, com.broadleafcommerce.data.tracking.core.mapping.PostMapperMember, org.springframework.core.Ordered

public class AuthTranslationPostMapperMember extends com.broadleafcommerce.translation.mapping.TranslationPostMapperMember
Customization of default translation post mapper member to support translations in auth.
  • Field Summary

    Fields inherited from interface com.broadleafcommerce.common.extension.data.DataRoutePartitionAware

    ALL_MATCH

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    AuthTranslationPostMapperMember(com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, com.broadleafcommerce.translation.mapping.ContextLocaleHelper contextLocaleHelper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil
     
    protected com.broadleafcommerce.translation.mapping.ContextLocaleHelper
     
    protected com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation>
     
    void
    setTranslationService(com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationService)
     
    <P, D> void
    transform(List<P> projections, List<D> entities, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     

    Methods inherited from class com.broadleafcommerce.translation.mapping.TranslationPostMapperMember

    applyTranslations, getDataRoutePartition, setTranslatedValueOnField, updateField

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.PostMapper

    transform

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.PostMapperMember

    getOrder
  • Constructor Details

    • AuthTranslationPostMapperMember

      public AuthTranslationPostMapperMember(com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, com.broadleafcommerce.translation.mapping.ContextLocaleHelper contextLocaleHelper)
  • Method Details

    • setTranslationService

      @Autowired @Lazy public void setTranslationService(com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationService)
      Overrides:
      setTranslationService in class com.broadleafcommerce.translation.mapping.TranslationPostMapperMember
    • transform

      public <P, D> void transform(List<P> projections, List<D> entities, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Specified by:
      transform in interface com.broadleafcommerce.data.tracking.core.mapping.PostMapper
      Overrides:
      transform in class com.broadleafcommerce.translation.mapping.TranslationPostMapperMember
    • getBehaviorUtil

      protected com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil getBehaviorUtil()
    • getContextLocaleHelper

      protected com.broadleafcommerce.translation.mapping.ContextLocaleHelper getContextLocaleHelper()
    • getTranslationService

      protected com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> getTranslationService()