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 Type
    Method
    Description
    org.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 the Cart#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 the Cart#lastUpdate of each cart in the given page.
      Parameters:
      unhydratedCarts - the page of unhydrated carts whose lastUpdate should be hydrated
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      the page of the hydrated carts