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