Class OrderFulfillmentViewMappingService<P extends OrderFulfillmentView>


  • public class OrderFulfillmentViewMappingService<P extends OrderFulfillmentView>
    extends Object
    A specialized component that understands how to take data from OrderFulfillment and build a OrderFulfillmentView from it, hydrating additional data as necessary.
    • Constructor Detail

      • OrderFulfillmentViewMappingService

        public OrderFulfillmentViewMappingService​(com.broadleafcommerce.common.extension.TypeFactory typeFactory,
                                                  List<OrderFulfillmentViewMappingContributor<P>> mappingContributors)
    • Method Detail

      • mapFrom

        public P mapFrom​(@NonNull
                         @NonNull com.broadleafcommerce.order.client.domain.OrderFulfillment orderFulfillment,
                         @Nullable
                         com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Build a OrderFulfillmentView from the given orderFulfillment, hydrating any additional data as necessary.
        Parameters:
        orderFulfillment - the order fulfillment to map into a vendor order fulfillment
        contextInfo - context information surrounding multitenant state
        Returns:
        a new vendor order fulfillment representing the given order fulfillment
      • mapFrom

        public List<P> mapFrom​(@NonNull
                               @NonNull List<com.broadleafcommerce.order.client.domain.OrderFulfillment> orderFulfillments,
                               @Nullable
                               com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Build OrderFulfillmentViews from the given orderFulfillments, hydrating any additional data as necessary.
        Parameters:
        orderFulfillments - the order fulfillments to map into order fulfillment views
        contextInfo - context information surrounding multitenant state
        Returns:
        new order fulfillment views representing the given order fulfillments
      • initializeFulfillmentView

        protected P initializeFulfillmentView()
      • getTypeFactory

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