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 Details

  • Constructor Details

  • 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

      @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)
    • getCustomerNoteService

      protected CustomerNoteService<CustomerNote> getCustomerNoteService()