Interface CartNoteService<P extends com.broadleafcommerce.cart.client.domain.CartNote>
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
- All Known Implementing Classes:
DefaultCartNoteService
public interface CartNoteService<P extends com.broadleafcommerce.cart.client.domain.CartNote>
extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
Service for management of
Notes
.- Author:
- Sunny Yu
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<P>
readAllByCartId
(String cartId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads allCartNotes
by cart id.org.springframework.data.domain.Page<P>
readAllByCartIdAndCartItemIdIsNull
(String cartId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads allCartNotes
by cart id and has anull
cart item id.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
-
readAllByCartId
org.springframework.data.domain.Page<P> readAllByCartId(String cartId, cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads allCartNotes
by cart id.- Parameters:
cartId
- the cart id to filterfilters
- additional filters to apply in the query.pageable
- the page information being requestedcontextInfo
- the context of the request- Returns:
- the
CartNotes
with the provided cart id
-
readAllByCartIdAndCartItemIdIsNull
org.springframework.data.domain.Page<P> readAllByCartIdAndCartItemIdIsNull(String cartId, cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads allCartNotes
by cart id and has anull
cart item id.This is typically used to retrieve Cart-level notes.
- Parameters:
cartId
- the cart id to filterfilters
- additional filters to apply in the query.pageable
- the page information being requestedcontextInfo
- the context of the request- Returns:
- the
CartNotes
with the provided cart id and has anull
cart item id
-