Class TenantContextRequestConverter

java.lang.Object
com.broadleafcommerce.data.tracking.core.web.ContextRequestConverter
com.broadleafcommerce.tenant.web.endpoint.TenantContextRequestConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String,com.broadleafcommerce.data.tracking.core.context.ContextRequest>, org.springframework.core.Ordered

public class TenantContextRequestConverter extends com.broadleafcommerce.data.tracking.core.web.ContextRequestConverter
Special ContextRequestConverter that still fulfills the ContextRequest.getApplication() contract for policy validation
Author:
Jeff Fischer
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    TenantContextRequestConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper, List<com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator> hydrators, ApplicationService<Application> applicationService, com.broadleafcommerce.common.extension.data.DataRouteReference reference)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.broadleafcommerce.data.tracking.core.context.ContextRequest
    convert(String source)
     
    int
     

    Methods inherited from class com.broadleafcommerce.data.tracking.core.web.ContextRequestConverter

    getObjectMapper, validateRequestTenant

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.springframework.core.convert.converter.Converter

    andThen
  • Constructor Details

    • TenantContextRequestConverter

      public TenantContextRequestConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper, List<com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator> hydrators, ApplicationService<Application> applicationService, com.broadleafcommerce.common.extension.data.DataRouteReference reference)
  • Method Details

    • convert

      public com.broadleafcommerce.data.tracking.core.context.ContextRequest convert(String source)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<String,com.broadleafcommerce.data.tracking.core.context.ContextRequest>
      Overrides:
      convert in class com.broadleafcommerce.data.tracking.core.web.ContextRequestConverter
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
      Overrides:
      getOrder in class com.broadleafcommerce.data.tracking.core.web.ContextRequestConverter