* Sets all the links appropriately, for each kind of representation based on state
* @param orderRep
*/
private void setLinks(OrderRepresentation orderRep) {
// Set up the activities that can be performed on orders
Link confirm = new Link("confirm", "http://localhost:8080/COMP433_-_Project_4/services/bookstore/order/" + orderRep.getId());
Link pay = new Link("pay", "http://localhost:8080/COMP433_-_Project_4/services/bookstore/order/" + orderRep.getId());
Link ship = new Link("ship", "http://localhost:8080/COMP433_-_Project_4/services/bookstore/order/" + orderRep.getId());
Link deliver = new Link("deliver", "http://localhost:8080/COMP433_-_Project_4/services/bookstore/order/" + orderRep.getId());
Link cancel = new Link("cancel", "http://localhost:8080/COMP433_-_Project_4/services/bookstore/order/" + orderRep.getId());
switch (orderRep.getOrderState()) {
case "Open":
if (orderRep.isPaymentReceived())
orderRep.setLinks(confirm, cancel);