Class CustomerNoteEndpoint


  • @FrameworkRestController
    @FrameworkMapping("/customers/{customerId}/customer-notes")
    @DataRouteByExample(Customer.class)
    public class CustomerNoteEndpoint
    extends Object
    Endpoint for management of CustomerNotes.
    • Method Detail

      • 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

        @Policy(permissionRoots="CUSTOMER_NOTE")
        @FrameworkDeleteMapping("/{id}")
        public void deleteCustomerNote​(@ContextOperation(DELETE)
                                       com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
                                       @PathVariable("customerId")
                                       String customerId,
                                       @PathVariable("id")
                                       String customerNoteId)