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 TypeMethodDescriptionorg.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 fromContextInfo
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 fromContextInfo
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 findcontextInfo
- context information surrounding multitenant state.- Returns:
- an
Optional
containing the requested order note if found within the tenant, orOptional.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 forfilters
- additional filters to apply in the query. Should beEmptyNode
if no additional filters should be applied.page
- the requested page of results from the databasecontextInfo
- context information around sandbox and multitenant state- Returns:
- a page of the notes associated with the given order context ID and tenant
-