Representation to provide the following to the anonymous public and Customers:
68697071727374757677
// Validation Preconditions.checkNotNull(publicUser.getCustomer(), "customer"); Cart cart = publicUser.getCustomer().getCart(); Representation representation = new PublicCartRepresentation().get(cart); return ok(representation); }
9899100101102103104105106107
// Persist the updated cart cart = cartDao.saveOrUpdate(cart); // Provide a representation to the client Representation representation = new PublicCartRepresentation().get(cart); return ok(representation); }