コード例 #1
0
ファイル: BaseCalendarModel.java プロジェクト: Kuew/libreplan
 private static void loadingExceptionsWithTheirTypes(
         BaseCalendar baseCalendar) {
     Set<CalendarException> exceptions = baseCalendar.getExceptions();
     for (CalendarException each : exceptions) {
         each.getType().getName();
     }
 }
コード例 #2
0
 private void forceLoadCalendar(BaseCalendar baseCalendar) {
   for (CalendarData calendarData : baseCalendar.getCalendarDataVersions()) {
     calendarData.getHoursPerDay().size();
     if (calendarData.getParent() != null) {
       forceLoadCalendar(calendarData.getParent());
     }
   }
   baseCalendar.getExceptions().size();
 }
コード例 #3
0
ファイル: BaseCalendarModel.java プロジェクト: Kuew/libreplan
 @Override
 public Set<IntegrationEntity> getChildren() {
     Set<IntegrationEntity> children = new HashSet<IntegrationEntity>();
     if (baseCalendar != null) {
         children.addAll(baseCalendar.getExceptions());
         children.addAll(baseCalendar.getCalendarDataVersions());
         children.addAll(baseCalendar.getCalendarAvailabilities());
     }
     return children;
 }
コード例 #4
0
ファイル: BaseCalendarModel.java プロジェクト: Kuew/libreplan
 /**
  * Don't pose as transient anymore calendar and all data hanging from
  * calendar (data versions, availabilities and exceptions)
  *
  * @param calendar
  */
 private void dontPoseAsTransientObjectAnymore(BaseCalendar calendar) {
     calendar.dontPoseAsTransientObjectAnymore();
     for (CalendarData each: calendar.getCalendarDataVersions()) {
         each.dontPoseAsTransientObjectAnymore();
     }
     for (CalendarAvailability each : calendar.getCalendarAvailabilities()) {
         each.dontPoseAsTransientObjectAnymore();
     }
     for (CalendarException each : calendar.getExceptions()) {
         each.dontPoseAsTransientObjectAnymore();
     }
 }