Interface CustomizedContentItemRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Known Subinterfaces:
ContentItemRepository<D>
,JpaContentItemRepository<D>
- All Known Implementing Classes:
JpaCustomizedContentItemRepository
public interface CustomizedContentItemRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<D>
findAllActiveByName
(String nameQuery, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of all active content items that are associated with the givenmodel
.org.springframework.data.domain.Page<D>
findAllByQuery
(String query, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of all content items that are associate with the given queryorg.springframework.data.domain.Page<D>
findAllInactiveByName
(String nameQuery, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of allContentItem
s that are currently inactive.findByCombinedModelAndItemUris
(String uri, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Takes the givenuri
and returns the item where the combination ofits URI
and itsContentModel's URI
matches.
-
Method Details
-
findAllActiveByName
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllActiveByName(String nameQuery, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of all active content items that are associated with the givenmodel
.- Parameters:
nameQuery
- the name of the content item to search forfilters
- the filters to apply to the querypage
- the page to returncontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- A list of all active content items that are associated with the given
model
.
-
findAllInactiveByName
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllInactiveByName(String nameQuery, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of allContentItem
s that are currently inactive.- Parameters:
nameQuery
- the name of the content item to search forfilters
- the filters to apply to the querypage
- the page to returncontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- a list of all
ContentItem
s that are currently inactive.
-
findByCombinedModelAndItemUris
@Policy(operationTypes=READ) Optional<D> findByCombinedModelAndItemUris(String uri, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Takes the givenuri
and returns the item where the combination ofits URI
and itsContentModel's URI
matches.- Parameters:
uri
- The URI to match againstcontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- A
ContentItem
if the combination of its and its parent model's URIs matchuri
.
-
findAllByQuery
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByQuery(String query, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of all content items that are associate with the given query- Parameters:
query
- the name of the content item to search forfilters
- the filters to apply to the querypage
- the page to returncontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- A list of all content items that are associate with the given query
-