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