Package com.yummynoodlebar.events.orders

Examples of com.yummynoodlebar.events.orders.RequestOrderDetailsEvent


  public static OrderCreatedEvent newOrder(UUID id) {
    return new OrderCreatedEvent(id, new OrderDetails());
  }
 
  public static RequestOrderDetailsEvent orderDetailsRequest(UUID id) {
  return new RequestOrderDetailsEvent(id);
 
}
View Full Code Here


    return "/order";
  }

  @ModelAttribute("orderStatus")
  private OrderStatus getOrderStatus(@PathVariable("orderId") String orderId) {
    OrderDetailsEvent orderDetailsEvent = orderService.requestOrderDetails(new RequestOrderDetailsEvent(UUID.fromString(orderId)));
    OrderStatusEvent orderStatusEvent = orderService.requestOrderStatus(new RequestOrderStatusEvent(UUID.fromString(orderId)));
    OrderStatus status = new OrderStatus();
    status.setName(orderDetailsEvent.getOrderDetails().getName());
    status.setOrderId(orderId);
    status.setStatus(orderStatusEvent.getOrderStatus().getStatus());
View Full Code Here

TOP

Related Classes of com.yummynoodlebar.events.orders.RequestOrderDetailsEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.