Class DefaultCustomerOrderInfoHydrationService
java.lang.Object
com.broadleafcommerce.order.service.hydration.DefaultCustomerOrderInfoHydrationService
- All Implemented Interfaces:
CustomerOrderInfoHydrationService
public class DefaultCustomerOrderInfoHydrationService
extends Object
implements CustomerOrderInfoHydrationService
The default implementation for the
CustomerOrderInfoHydrationService
.- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCustomerOrderInfoHydrationService
(List<CustomerOrderInfoContributor> customerOrderInfoContributors) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<CustomerOrderInfoContributor>
org.springframework.data.domain.Page<CustomerOrderInfo>
hydrateCustomerOrderInfo
(@NonNull org.springframework.data.domain.Page<CustomerOrderInfo> customerOrderInfos, @NonNull ReadCustomerOrdersRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Uses theCustomerOrderInfoContributor
to hydrate the additional data for the Orders to theCustomerOrderInfo
.
-
Constructor Details
-
DefaultCustomerOrderInfoHydrationService
public DefaultCustomerOrderInfoHydrationService(@Nullable List<CustomerOrderInfoContributor> customerOrderInfoContributors)
-
-
Method Details
-
hydrateCustomerOrderInfo
public org.springframework.data.domain.Page<CustomerOrderInfo> hydrateCustomerOrderInfo(@NonNull @NonNull org.springframework.data.domain.Page<CustomerOrderInfo> customerOrderInfos, @NonNull @NonNull ReadCustomerOrdersRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomerOrderInfoHydrationService
Uses theCustomerOrderInfoContributor
to hydrate the additional data for the Orders to theCustomerOrderInfo
.- Specified by:
hydrateCustomerOrderInfo
in interfaceCustomerOrderInfoHydrationService
- Parameters:
customerOrderInfos
- the page of theCustomerOrderInfo
request
- the request to read the Orders and the related datacontextInfo
- context information around sandbox and multitenant state- Returns:
- the page of the
CustomerOrderInfo
with the additional requested data if any
-
getCustomerOrderInfoContributors
-