Interface CustomerNoteService<P extends CustomerNote>
- Type Parameters:
P
- The projection domain type, a subtype ofCustomerNote
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
- All Known Implementing Classes:
DefaultCustomerNoteService
public interface CustomerNoteService<P extends CustomerNote>
extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
Service API for
CustomerNotes
. Supported by CustomerNoteRepository
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<P>
readAllByCustomerId
(String customerId, 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 customer 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
-
readAllByCustomerId
@Policy(operationTypes=READ) org.springframework.data.domain.Page<P> readAllByCustomerId(String customerId, 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 customer ID.- Parameters:
customerId
- the ID of the customer 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 customer ID
-