Interface CartHydrationService
- All Known Implementing Classes:
DefaultCartHydrationService
public interface CartHydrationService
Responsible for hydrating fields within a
Cart
that require information from other
domains-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart>
hydrateLastUpdated
(org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart> unhydratedCarts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hydrates theCart#lastUpdate
of each cart in the given page.
-
Method Details
-
hydrateLastUpdated
org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart> hydrateLastUpdated(org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart> unhydratedCarts, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hydrates theCart#lastUpdate
of each cart in the given page.- Parameters:
unhydratedCarts
- the page of unhydrated carts whose lastUpdate should be hydratedcontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- the page of the hydrated carts
-