create default work week of non-derived calendar
FEA: AnA08S09CalendarAdminInterface
This commit is contained in:
parent
68f3593670
commit
cf2bba29c9
1 changed files with 12 additions and 0 deletions
|
|
@ -237,4 +237,16 @@ public class CalendarData extends IntegrationEntity {
|
|||
return Registry.getCalendarDataDAO();
|
||||
}
|
||||
|
||||
public static void resetDefaultCapacities(CalendarData calendar) {
|
||||
Capacity eightHours = Capacity.create(hours(8))
|
||||
.overAssignableWithoutLimit();
|
||||
calendar.setCapacityAt(Days.MONDAY, eightHours);
|
||||
calendar.setCapacityAt(Days.TUESDAY, eightHours);
|
||||
calendar.setCapacityAt(Days.WEDNESDAY, eightHours);
|
||||
calendar.setCapacityAt(Days.THURSDAY, eightHours);
|
||||
calendar.setCapacityAt(Days.FRIDAY, eightHours);
|
||||
calendar.setCapacityAt(Days.SATURDAY, Capacity.zero());
|
||||
calendar.setCapacityAt(Days.SUNDAY, Capacity.zero());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue