Interface ContentItemHydrationService
- All Known Implementing Classes:
DefaultContentItemHydrationService
public interface ContentItemHydrationService
Service responsible for hydrating
ContentItem.getModel() and missing
ContentItem.getFields() if the model has been updated since the last request for an item
or items.-
Method Summary
Modifier and TypeMethodDescription<C extends ContentItem>
org.springframework.data.domain.Page<C>hydrate(@NonNull org.springframework.data.domain.Page<C> unhydrated, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, boolean hydrateNested) Hydrates the page ofContentItems.hydrate(ContentItem unhydrated, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hydrates the individualContentItem.<C extends ContentItem>
List<C>hydrate(List<C> unhydrated, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hydrates the list ofContentItems.<C extends ContentItem>
org.springframework.data.domain.Page<C>hydrate(org.springframework.data.domain.Page<C> unhydrated, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hydrates the page ofContentItems.
-
Method Details
-
hydrate
ContentItem hydrate(ContentItem unhydrated, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hydrates the individualContentItem.- Parameters:
unhydrated- The unhydrated item.contextInfo- Sandbox and multitenant info- Returns:
- The hydrated
ContentItem
-
hydrate
<C extends ContentItem> org.springframework.data.domain.Page<C> hydrate(@NonNull @NonNull org.springframework.data.domain.Page<C> unhydrated, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, boolean hydrateNested) Hydrates the page ofContentItems.- Parameters:
unhydrated- The unhydrated items.contextInfo- Sandbox and multitenant infohydrateNested- Whether to hydrate nested items- Returns:
- The hydrated
ContentItem
-
hydrate
<C extends ContentItem> org.springframework.data.domain.Page<C> hydrate(org.springframework.data.domain.Page<C> unhydrated, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hydrates the page ofContentItems.- Parameters:
unhydrated- The unhydrated items.contextInfo- Sandbox and multitenant info- Returns:
- The hydrated
ContentItem
-
hydrate
<C extends ContentItem> List<C> hydrate(List<C> unhydrated, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hydrates the list ofContentItems.- Parameters:
unhydrated- The unhydrated items.contextInfo- Sandbox and multitenant info- Returns:
- The hydrated
ContentItem
-