Class CustomerNoteEndpoint
java.lang.Object
com.broadleafcommerce.customer.web.endpoint.CustomerNoteEndpoint
@FrameworkRestController
@FrameworkMapping("/customers/{customerId}/customer-notes")
@DataRouteByExample(Customer.class)
public class CustomerNoteEndpoint
extends Object
Endpoint for management of
CustomerNotes
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCustomerNote
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String customerId, CustomerNote customerNote) void
deleteCustomerNote
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String customerId, String customerNoteId) protected CustomerNoteService<CustomerNote>
org.springframework.data.domain.Page<CustomerNote>
readAllCustomerNotes
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String customerId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page) readCustomerNoteById
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String customerId, String customerNoteId)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
CustomerNoteEndpoint
-
-
Method Details
-
readAllCustomerNotes
@Policy(permissionRoots="CUSTOMER_NOTE") @FrameworkGetMapping public org.springframework.data.domain.Page<CustomerNote> readAllCustomerNotes(@ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("customerId") String customerId, cz.jirutka.rsql.parser.ast.Node filters, @PageableDefault(size=50) org.springframework.data.domain.Pageable page) -
readCustomerNoteById
@Policy(permissionRoots="CUSTOMER_NOTE") @FrameworkGetMapping("/{id}") public CustomerNote readCustomerNoteById(@ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("customerId") String customerId, @PathVariable("id") String customerNoteId) -
createCustomerNote
@Policy(permissionRoots="CUSTOMER_NOTE") @FrameworkPostMapping(consumes="application/json") public CustomerNote createCustomerNote(@ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("customerId") String customerId, @RequestBody CustomerNote customerNote) -
deleteCustomerNote
-
getCustomerNoteService
-