Class OrderFulfillmentViewMappingService<P extends OrderFulfillmentView>
- java.lang.Object
-
- com.broadleafcommerce.order.service.OrderFulfillmentViewMappingService<P>
-
public class OrderFulfillmentViewMappingService<P extends OrderFulfillmentView> extends Object
A specialized component that understands how to take data fromOrderFulfillment
and build aOrderFulfillmentView
from it, hydrating additional data as necessary.
-
-
Constructor Summary
Constructors Constructor Description OrderFulfillmentViewMappingService(com.broadleafcommerce.common.extension.TypeFactory typeFactory, List<OrderFulfillmentViewMappingContributor<P>> mappingContributors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<OrderFulfillmentViewMappingContributor<P>>
getMappingContributors()
protected com.broadleafcommerce.common.extension.TypeFactory
getTypeFactory()
protected P
initializeFulfillmentView()
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.List<P>
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 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 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
protected P initializeFulfillmentView()
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-
getMappingContributors
protected List<OrderFulfillmentViewMappingContributor<P>> getMappingContributors()
-
-