Class OrderFulfillmentViewMappingService<P extends OrderFulfillmentView>
java.lang.Object
com.broadleafcommerce.order.service.OrderFulfillmentViewMappingService<P>
A specialized component that understands how to take data from
OrderFulfillment
and build
a OrderFulfillmentView
from it, hydrating additional data as necessary.-
Constructor Summary
ConstructorsConstructorDescriptionOrderFulfillmentViewMappingService
(com.broadleafcommerce.common.extension.TypeFactory typeFactory, List<OrderFulfillmentViewMappingContributor<P>> mappingContributors) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<OrderFulfillmentViewMappingContributor<P>>
protected com.broadleafcommerce.common.extension.TypeFactory
protected P
mapFrom
(@NonNull com.broadleafcommerce.order.client.domain.OrderFulfillment orderFulfillment, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Build aOrderFulfillmentView
from the givenorderFulfillment
, hydrating any additional data as necessary.mapFrom
(@NonNull List<com.broadleafcommerce.order.client.domain.OrderFulfillment> orderFulfillments, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) BuildOrderFulfillmentViews
from the givenorderFulfillments
, hydrating any additional data as necessary.
-
Constructor Details
-
OrderFulfillmentViewMappingService
public OrderFulfillmentViewMappingService(com.broadleafcommerce.common.extension.TypeFactory typeFactory, List<OrderFulfillmentViewMappingContributor<P>> mappingContributors)
-
-
Method Details
-
mapFrom
public P mapFrom(@NonNull @NonNull com.broadleafcommerce.order.client.domain.OrderFulfillment orderFulfillment, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Build aOrderFulfillmentView
from the givenorderFulfillment
, hydrating any additional data as necessary.- Parameters:
orderFulfillment
- the order fulfillment to map into a vendor order fulfillmentcontextInfo
- 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) BuildOrderFulfillmentViews
from the givenorderFulfillments
, hydrating any additional data as necessary.- Parameters:
orderFulfillments
- the order fulfillments to map into order fulfillment viewscontextInfo
- context information surrounding multitenant state- Returns:
- new order fulfillment views representing the given order fulfillments
-
initializeFulfillmentView
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() -
getMappingContributors
-