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 Type
    Method
    Description
    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 given model.
    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
    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 all ContentItems that are currently inactive.
    findByCombinedModelAndItemUris(String uri, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Takes the given uri and returns the item where the combination of its URI and its ContentModel'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 given model.
      Parameters:
      nameQuery - the name of the content item to search for
      filters - the filters to apply to the query
      page - the page to return
      contextInfo - 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 all ContentItems that are currently inactive.
      Parameters:
      nameQuery - the name of the content item to search for
      filters - the filters to apply to the query
      page - the page to return
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      a list of all ContentItems that are currently inactive.
    • findByCombinedModelAndItemUris

      @Policy(operationTypes=READ) Optional<D> findByCombinedModelAndItemUris(String uri, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Takes the given uri and returns the item where the combination of its URI and its ContentModel's URI matches.
      Parameters:
      uri - The URI to match against
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      A ContentItem if the combination of its and its parent model's URIs match uri.
    • 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 for
      filters - the filters to apply to the query
      page - the page to return
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      A list of all content items that are associate with the given query