public String retrieve() { product = productBusiness.retrieve(productId); Pair<DateTime, DateTime> schedule = productBusiness.calculateProductSchedule(product); // Round the dates this.scheduleEnd = DateTimeUtils.roundToNearestMidnight(schedule.second); this.scheduleStart = DateTimeUtils.roundToNearestMidnight(schedule.first); return Action.SUCCESS; }
public void initializePrefetchedData(int objectId) { product = productBusiness.retrieve(objectId); }
public String retrieveAll() { products = productBusiness.retrieveAll(); return Action.SUCCESS; }
public String retrieveLeafStories() { Product product = productBusiness.retrieve(productId); this.product = productBusiness.retrieveLeafStoriesOnly(product); return Action.SUCCESS; }
public String delete() { productBusiness.delete(productId); return Action.SUCCESS; }