Beispiel #1
0
 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;
 }
Beispiel #2
0
 public void initializePrefetchedData(int objectId) {
   product = productBusiness.retrieve(objectId);
 }
Beispiel #3
0
 public String retrieveAll() {
   products = productBusiness.retrieveAll();
   return Action.SUCCESS;
 }
Beispiel #4
0
 public String retrieveLeafStories() {
   Product product = productBusiness.retrieve(productId);
   this.product = productBusiness.retrieveLeafStoriesOnly(product);
   return Action.SUCCESS;
 }
Beispiel #5
0
 public String delete() {
   productBusiness.delete(productId);
   return Action.SUCCESS;
 }