Class DefaultOrderLinksService

java.lang.Object
com.broadleafcommerce.orderoperation.service.messaging.DefaultOrderLinksService
All Implemented Interfaces:
OrderLinksService

public class DefaultOrderLinksService extends Object implements OrderLinksService
The default implementation for OrderLinksService.
Author:
Dima Myroniuk (dmyroniuk)
  • Constructor Details

    • DefaultOrderLinksService

      public DefaultOrderLinksService(ExternalOrderProperties externalOrderProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
  • Method Details

    • buildReadOrderLink

      public OrderLink buildReadOrderLink(@NonNull @NonNull com.broadleafcommerce.order.client.domain.Order order, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: OrderLinksService
      Builds the link to read the Order by id.
      Specified by:
      buildReadOrderLink in interface OrderLinksService
      Parameters:
      order - the order to build the link for
      contextInfo - context information surrounding sandboxing/multitenant state
      Returns:
    • buildReadOrderFulfillmentsLink

      public OrderLink buildReadOrderFulfillmentsLink(@NonNull @NonNull com.broadleafcommerce.order.client.domain.Order order, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: OrderLinksService
      Builds the link to read the Order fulfillments by order id.
      Specified by:
      buildReadOrderFulfillmentsLink in interface OrderLinksService
      Parameters:
      order - the order to build the link for
      contextInfo - context information surrounding sandboxing/multitenant state
      Returns:
    • getOrderBaseUrl

      protected org.springframework.web.util.UriComponentsBuilder getOrderBaseUrl()
    • getExternalOrderProperties

      protected ExternalOrderProperties getExternalOrderProperties()
    • getTypeFactory

      protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()