private boolean checkOccupationPeriod( Date evaluationDate, ExecutionSemester executionSemester, MarkSheetType markSheetType) { OccupationPeriod occupationPeriod = getOccupationPeriodFor(executionSemester, markSheetType); return evaluationDate != null && occupationPeriod != null && occupationPeriod.nestedOccupationPeriodsContainsDay( YearMonthDay.fromDateFields(evaluationDate)); }
@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); }
public boolean intersects(final Date begin, final Date end) { return intersects(YearMonthDay.fromDateFields(begin), YearMonthDay.fromDateFields(end)); }