Class OrderService

java.lang.Object
io.github.mspr4_2025.orders_service.service.OrderService

@Service public class OrderService extends Object
  • Constructor Details

    • OrderService

      public OrderService()
  • Method Details

    • getAllOrders

      public List<OrderEntity> getAllOrders()
    • getOrderByUid

      public OrderEntity getOrderByUid(UUID uid) throws org.springframework.web.server.ResponseStatusException
      Throws:
      org.springframework.web.server.ResponseStatusException - when no entity exist with the given uid. This exception is handled by the controllers, returning a response with the corresponding http status.
    • createOrder

      public OrderEntity createOrder(OrderCreateDto orderCreate)
    • deleteOrderByUid

      public void deleteOrderByUid(UUID uid)
    • updateOrderByUid

      public void updateOrderByUid(UUID uid, OrderUpdateDto orderUpdate)