Interface ContentZoneService<P extends ContentZone>
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
- All Known Implementing Classes:
DefaultContentZoneService
public interface ContentZoneService<P extends ContentZone>
extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
Service responsible for
ContentZones
CRUD operations.- Author:
- Nathan Moore (nathandmoore)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
hydrateContentItems
(org.springframework.data.domain.Page<P> zones, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hydrates theContentItems for the ContentZoneItems
.void
hydrateContentItems
(P zone, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hydrates theContentItems for the ContentZoneItems
.org.springframework.data.domain.Page<P>
readAllByName
(String name, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads a page ofContentZones
with a name filter.readByName
(String name, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves the zone by name.Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll, readAll
-
Method Details
-
readAllByName
org.springframework.data.domain.Page<P> readAllByName(@Nullable String name, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads a page ofContentZones
with a name filter.- Parameters:
name
- Name to filter byfilters
- Additional field filterspage
- Pagination parameterscontext
- Additional sandbox and multitenant information- Returns:
- A page of
ContentZones
with a name filter applied.
-
readByName
Optional<P> readByName(String name, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves the zone by name.- Parameters:
name
- The name of the zone.contextInfo
- Additional sandbox and multitenant information- Returns:
- The zone matching
name
orOptional.empty()
.
-
hydrateContentItems
void hydrateContentItems(P zone, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hydrates theContentItems for the ContentZoneItems
.- Parameters:
zone
-ContentZone
to hydratecontextInfo
- Additional sandbox and multitenant info
-
hydrateContentItems
void hydrateContentItems(org.springframework.data.domain.Page<P> zones, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hydrates theContentItems for the ContentZoneItems
.- Parameters:
zones
- Page ofContentZones
to hydratecontextInfo
- Additional sandbox and multitenant info
-