Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.76 KB | None | 0 0
  1. /**
  2.  * Command object for running real time reports.
  3.  *
  4.  * @author conor@nogoodsoftware.com
  5.  */
  6. @Validateable
  7. class ReportQueryCommand extends BaseCommand {
  8.     Company company
  9.  
  10.     // period start
  11.     def startDate
  12.     def endDate
  13.     def interpreterBusinessUnit
  14.     def customerBusinessUnit
  15.  
  16.     static constraints = {
  17.         company(nullable: false)
  18.         startDate(nullable: false)
  19.         endDate(nullable: false)
  20.     }
  21.  
  22.     void setStartDate(def date){
  23.         startDate = convertDate(date, companyContext.configSettings.dateFormat, companyContext.configSettings.timeZone)
  24.     }
  25.  
  26.     void setEndDate(def date){
  27.         endDate = convertDate(date, companyContext.configSettings.dateFormat, companyContext.configSettings.timeZone)
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement