Class FreeDayOfWeek

java.lang.Object
ch.ivyteam.ivy.application.calendar.FreeDayOfWeek
All Implemented Interfaces:
ch.ivyteam.ivy.application.calendar.CalendarListEntry, Comparable<ch.ivyteam.ivy.application.calendar.CalendarListEntry>

public final class FreeDayOfWeek extends Object implements ch.ivyteam.ivy.application.calendar.CalendarListEntry
A free day recurring every week. A IBusinessCalendarConfiguration can contain multiple FreeDayOfWeeks to define free days recurring every week, usually the weekend.
API:
This is a public API.
  • Constructor Details

    • FreeDayOfWeek

      public FreeDayOfWeek(Weekday dayOfWeek)
      Parameters:
      dayOfWeek - the day of the week
      Throws:
      IllegalArgumentException - if dayOfWeek is null
      API:
      This public API is available in Java.
    • FreeDayOfWeek

      public FreeDayOfWeek(Weekday dayOfWeek, String description)
      Parameters:
      dayOfWeek - the day of the week
      description - the description
      Throws:
      IllegalArgumentException - if dayOfWeek or description is null
      API:
      This public API is available in Java.
  • Method Details

    • getDescription

      public String getDescription()
      Returns the description
      Returns:
      the description
      API:
      This public API is available in Java.
    • setDescription

      public void setDescription(String description)
      Sets the description to the given parameter
      Parameters:
      description - the description to set
      API:
      This public API is available in Java.
    • getDayOfWeek

      public Weekday getDayOfWeek()
      Returns the day of the week
      Returns:
      the day of the week. Never null
      API:
      This public API is available in Java.
    • setDayOfWeek

      public void setDayOfWeek(Weekday dayOfWeek)
      Sets the day of the week to the given parameter
      Parameters:
      dayOfWeek - the day of week to set
      Throws:
      IllegalArgumentException - if dayOfWeek is null
      API:
      This public API is available in Java.