Package com.yummynoodlebar.events.orders

Examples of com.yummynoodlebar.events.orders.OrderDetailsEvent


  return new RequestOrderDetailsEvent(id);
 
}
 
  public static OrderDetailsEvent orderDetailsEvent(UUID id) {
  return new OrderDetailsEvent(id, standardOrderDetails(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());
    return status;
  }
View Full Code Here

TOP

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

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.