Package org.jasig.portal.events.aggr.dao.jpa

Examples of org.jasig.portal.events.aggr.dao.jpa.QuarterDetailImpl


    /**
     * Create a new set of quarter details in the standard 1/1-4/1, 4/1-7/1, 7/1-10/1, 10/1-1/1 arrangement
     */
    public static List<QuarterDetail> createStandardQuarters() {
        return ImmutableList.<QuarterDetail>of(
                new QuarterDetailImpl(new MonthDay(1, 1), new MonthDay(4, 1), 0),
                new QuarterDetailImpl(new MonthDay(4, 1), new MonthDay(7, 1), 1),
                new QuarterDetailImpl(new MonthDay(7, 1), new MonthDay(10, 1), 2),
                new QuarterDetailImpl(new MonthDay(10, 1), new MonthDay(1, 1), 3)
                );
    }
View Full Code Here


  }
 
  protected List<QuarterDetail> convertQuarterDetail(List<ExternalQuarterDetail> externalQuarterDetails) {
      final List<QuarterDetail> quarterDetails = new ArrayList<QuarterDetail>(4);
      for (final ExternalQuarterDetail externalQuarterDetail : externalQuarterDetails) {
          quarterDetails.add(new QuarterDetailImpl(
                  MonthDay.parse(externalQuarterDetail.getStart()),
                  MonthDay.parse(externalQuarterDetail.getEnd()),
                  externalQuarterDetail.getId()));
      }
      return quarterDetails;
View Full Code Here

TOP

Related Classes of org.jasig.portal.events.aggr.dao.jpa.QuarterDetailImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.