コード例 #1
0
ファイル: ProductAction.java プロジェクト: seanws/agilefant
 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;
 }