public ShoppingCartSelection getShoppingCartSelection() { final Set<BookSelection> selections = shoppingCart.getSelections(); final ShoppingCartSelection cartSelection = new ShoppingCartSelection(); cartSelection.setSelections(selections); cartSelection.setPrice(priceCalculator.calculateTotal(selections)); return cartSelection; }
public BookSelection getSelection(long selectionId) { return shoppingCart.getSelection(selectionId); }
public void updateBookSelection(long selectionId, int quantity) { shoppingCart.updateBookSelection(selectionId, quantity); }
public void addBookSelection(BookSelection selection) { shoppingCart.addBookSelection(selection); }