Interface CustomizedOrderNoteRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>

All Known Subinterfaces:
JpaOrderNoteRepository<D>, OrderNoteRepository<D>
All Known Implementing Classes:
JpaCustomizedOrderNoteRepository

public interface CustomizedOrderNoteRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
Advanced functionality related to OrderNote.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<D>
    findAllByOrderIdAndMatchingTenant(String orderContextId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Retrieve notes for the given order context ID.
    findByContextIdAndMatchingTenant(String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Retrieves the order note matching the provided ID and the tenant from ContextInfo if present.
  • Method Details

    • findByContextIdAndMatchingTenant

      @Policy(operationTypes=READ) Optional<D> findByContextIdAndMatchingTenant(String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Retrieves the order note matching the provided ID and the tenant from ContextInfo if present.

      This implementation finds all records within the tenant regardless of whether they're associated to an application.

      Parameters:
      id - the id of the order note to find
      contextInfo - context information surrounding multitenant state.
      Returns:
      an Optional containing the requested order note if found within the tenant, or Optional.empty() otherwise
    • findAllByOrderIdAndMatchingTenant

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByOrderIdAndMatchingTenant(String orderContextId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Retrieve notes for the given order context ID.

      This implementation finds all records within the tenant regardless of whether they're associated to an application.

      Parameters:
      orderContextId - the context ID of the order to search for
      filters - additional filters to apply in the query. Should be EmptyNode if no additional filters should be applied.
      page - the requested page of results from the database
      contextInfo - context information around sandbox and multitenant state
      Returns:
      a page of the notes associated with the given order context ID and tenant