public class SingleDayLengthSchedule extends SimpleWeeklySchedule
Constructor and Description |
---|
SingleDayLengthSchedule()
Constructor.
|
SingleDayLengthSchedule(DayOfWeek firstDay,
LocalTime logonTime,
DayOfWeek lastDay,
LocalTime logoutTime)
Constructor.
|
SingleDayLengthSchedule(DayOfWeek firstDay,
LocalTime logonTime,
ZoneId logonTimeZone,
DayOfWeek lastDay,
LocalTime logoutTime,
ZoneId logoutTimeZone)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
WeeklyIntervalList |
getIntervalList() |
SimpleWeeklySchedule |
validate()
Validates scheduled intervals.
|
getFirstDay, getLastDay, getLogonTime, getLogonTimeZone, getLogoutTime, getLogoutTimeZone, setFirstDay, setLastDay, setLogonTime, setLogonTimeZone, setLogoutTime, setLogoutTimeZone
public SingleDayLengthSchedule()
public SingleDayLengthSchedule(DayOfWeek firstDay, LocalTime logonTime, DayOfWeek lastDay, LocalTime logoutTime)
firstDay
- first daylogonTime
- logon timelastDay
- last daylogoutTime
- logout timepublic SingleDayLengthSchedule(DayOfWeek firstDay, LocalTime logonTime, ZoneId logonTimeZone, DayOfWeek lastDay, LocalTime logoutTime, ZoneId logoutTimeZone)
firstDay
- first daylogonTime
- logon timelogonTimeZone
- logon timezonelastDay
- last daylogoutTime
- logout timelogoutTimeZone
- logout timezonepublic WeeklyIntervalList getIntervalList() throws ScheduleValidationException
ScheduleValidationException
public SimpleWeeklySchedule validate() throws ScheduleValidationException
SessionSchedule
validate
in interface SessionSchedule
validate
in class SimpleWeeklySchedule
ScheduleValidationException
- if the interval(s) is(are) invalid.Copyright © 2005–2024 Onix Solutions. All rights reserved.