Class OrderFulfillmentNoteEndpoint

java.lang.Object
com.broadleafcommerce.order.web.endpoint.OrderFulfillmentNoteEndpoint

@FrameworkRestController @FrameworkMapping("/order-fulfillments/{orderFulfillmentId}/notes") @DataRouteByExample(OrderFulfillmentNote.class) public class OrderFulfillmentNoteEndpoint extends Object
Endpoint for management of OrderFulfillmentNotes.
  • Field Details

  • Constructor Details

  • Method Details

    • readAllOrderFulfillmentNotes

      @Policy(permissionRoots="ORDER_FULFILLMENT_NOTE") @FrameworkGetMapping public org.springframework.data.domain.Page<OrderFulfillmentNote> readAllOrderFulfillmentNotes(@ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("orderFulfillmentId") String orderFulfillmentId, cz.jirutka.rsql.parser.ast.Node filters, @PageableDefault(size=50) org.springframework.data.domain.Pageable page)
    • readOrderFulfillmentNoteById

      @Policy(permissionRoots="ORDER_FULFILLMENT_NOTE") @FrameworkGetMapping("/{id}") public OrderFulfillmentNote readOrderFulfillmentNoteById(@ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("orderFulfillmentId") String orderFulfillmentId, @PathVariable("id") String orderFulfillmentNoteId)
    • createOrderFulfillmentNote

      @Policy(permissionRoots="ORDER_FULFILLMENT_NOTE") @FrameworkPostMapping(consumes="application/json") public OrderFulfillmentNote createOrderFulfillmentNote(@ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("orderFulfillmentId") String orderFulfillmentId, @RequestBody OrderFulfillmentNote orderFulfillmentNote)
    • deleteOrderFulfillmentNote

      @Policy(permissionRoots="ORDER_FULFILLMENT_NOTE") @FrameworkDeleteMapping("/{id}") public void deleteOrderFulfillmentNote(@ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("orderFulfillmentId") String orderFulfillmentId, @PathVariable("id") String orderFulfillmentNoteId)
    • ensureOrderFulfillmentExists

      protected void ensureOrderFulfillmentExists(@NonNull @NonNull String orderFulfillmentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Ensures that the OrderFulfillment exists before we manage OrderFulfillmentNotes in that fulfillment.
      Parameters:
      orderFulfillmentId - ID of the fulfillment to check for existence
      contextInfo - context information around sandbox and multitenant state
    • ensureNoteBelongsToOrderFulfillmentAndReturn

      protected OrderFulfillmentNote ensureNoteBelongsToOrderFulfillmentAndReturn(@NonNull @NonNull String orderFulfillmentId, @NonNull @NonNull String orderFulfillmentNoteId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Ensures that the OrderFulfillmentNote is associated with the specified order fulfillment ID. Also retrieves the order fulfillment note.
      Parameters:
      orderFulfillmentId - ID of the order fulfillment to check for association
      orderFulfillmentNoteId - ID of the order fulfillment note to check for association
      contextInfo - context information around sandbox and multitenant state
      Returns:
      the found order fulfillment note
      Throws:
      com.broadleafcommerce.data.tracking.core.exception.EntityMissingException - if the order fulfillment note is not associated to the fulfillment
    • getOrderFulfillmentNoteService

      protected OrderFulfillmentNoteService<OrderFulfillmentNote> getOrderFulfillmentNoteService()
    • getOrderFulfillmentService

      protected OrderFulfillmentService<com.broadleafcommerce.order.client.domain.OrderFulfillment> getOrderFulfillmentService()