示例#1
0
 private boolean checkOccupationPeriod(
     Date evaluationDate, ExecutionSemester executionSemester, MarkSheetType markSheetType) {
   OccupationPeriod occupationPeriod = getOccupationPeriodFor(executionSemester, markSheetType);
   return evaluationDate != null
       && occupationPeriod != null
       && occupationPeriod.nestedOccupationPeriodsContainsDay(
           YearMonthDay.fromDateFields(evaluationDate));
 }
示例#2
0
 @Deprecated
 public void setEnd(java.util.Date date) {
   if (date == null) {
     setEndYearMonthDay(null);
   } else {
     setEndYearMonthDay(org.joda.time.YearMonthDay.fromDateFields(date));
   }
 }
  public static SchoolUnit createNewSchoolUnit(
      MultiLanguageString schoolName,
      String schoolNameCard,
      Unit parentUnit,
      Boolean official,
      String code,
      AcademicalInstitutionType institutionType) {

    SchoolUnit schoolUnit = new SchoolUnit();
    schoolUnit.setPartyName(schoolName);
    schoolUnit.setIdentificationCardLabel(schoolNameCard);
    schoolUnit.setOfficial(official);
    schoolUnit.setCode(code);
    schoolUnit.setInstitutionType(institutionType);
    schoolUnit.setBeginDateYearMonthDay(
        YearMonthDay.fromDateFields(new GregorianCalendar().getTime()));
    schoolUnit.setCanBeResponsibleOfSpaces(Boolean.FALSE);
    return createNewUnit(parentUnit, schoolUnit, Boolean.FALSE);
  }
示例#4
0
 public boolean intersects(final Date begin, final Date end) {
   return intersects(YearMonthDay.fromDateFields(begin), YearMonthDay.fromDateFields(end));
 }