java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.systemsettings.bl.calendar.holiday.BOHoliday
All Implemented Interfaces:
ConstraintValidator<DynO.Valid,DynO>, Serializable, overit.geocall.timezone.model.TimeZoned

public class BOHoliday extends DynO
Business Object representing a holiday day.
Since:
17.0
See Also:
GCApi:
bo
  • Constructor Details

    • BOHoliday

      public BOHoliday()
  • Method Details

    • getId

      public Long getId()
      Returns the holiday id.
      Returns:
      the the holiday id
    • setId

      public void setId(Long id)
      Sets the holiday id.
      Parameters:
      id - the holiday id
    • getHolidayDate

      public Date getHolidayDate()
      Returns the holiday date.
      Returns:
      the holiday date
    • setHolidayDate

      public void setHolidayDate(Date holidayDate)
      Sets the holiday holiday date.
      Parameters:
      holidayDate - the holiday date
    • isBankHoliday

      public Boolean isBankHoliday()
      Checks if the holiday is a bank holiday.
      Returns:
      true if is the holiday is a bank holiday, false otherwise
    • setBankHoliday

      public void setBankHoliday(Boolean bankHoliday)
      Sets the holiday to bank holiday.
      Parameters:
      bankHoliday - true if the holiday must be a bank holiday, false otherwise
    • getDescription

      public String getDescription()
      Returns the holiday description.
      Returns:
      the holiday description
    • setDescription

      public void setDescription(String description)
      Sets the holiday description.
      Parameters:
      description - the holiday description
    • getWeekDay

      public Long getWeekDay()
      Returns the week day.
      Returns:
      the week day
    • setWeekDay

      public void setWeekDay(Long weekDay)
      Sets the week day.
      Parameters:
      weekDay - the week day
    • getOperationCenter

      public Long getOperationCenter()
      Returns the operation center id.
      Returns:
      the operation center id
    • setOperationCenter

      public void setOperationCenter(Long operationCenter)
      Sets the operation center id.
      Parameters:
      operationCenter - the operation center id
    • getYear

      public Long getYear()
      Returns the holiday year.
      Returns:
      the holiday year
    • setYear

      public void setYear(Long year)
      Sets the holiday year.
      Parameters:
      year - the year
    • getHolidayType

      public String getHolidayType()
      Returns the holiday type.
      Returns:
      the holiday type
    • setHolidayType

      public void setHolidayType(String holidayType)
      Sets the holiday holiday type.
      Parameters:
      holidayType - the holiday type
    • getDayOfWeek

      public DayOfWeek getDayOfWeek()
      Returns the holiday day of week.
      Returns:
      the holiday day of week
    • getHolidayDates

      public Collection<Date> getHolidayDates()
      In the case of a bank holiday, it returns the specific day; In the case of a day of the week, it returns all the days of the year on which that holiday falls.
      Returns:
      the date holiday list