Interface BusinessCalendarRepository

All Known Implementing Classes:
BusinessCalendarRepositoryImpl

public interface BusinessCalendarRepository
Defines convenient methods to fetch configured in the system business calendars.
  • Method Details

    • getBusinessCalendarByCode

      BusinessCalendar getBusinessCalendarByCode(String code)
      Finds business calendar by it code.
      Parameters:
      code - of business calendar.
      Returns:
      business calendar with provided code
      Throws:
      NullPointerException - if there is no calendar with such code.
    • findBusinessCalendarByCode

      @Nullable BusinessCalendar findBusinessCalendarByCode(String code)
      Finds business calendar by it code.
      Parameters:
      code - of business calendar.
      Returns:
      business calendar with provided code or null if there is no calendar with such code.
    • getAllBusinessCalendars

      Collection<BusinessCalendar> getAllBusinessCalendars()
      Fetches all business calendars.
      Returns:
      all configured in the system business calendars.