Interface ScheduleSlotQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidContainableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, Suppliable

public interface ScheduleSlotQuery extends OsidObjectQuery, OsidContainableQuery

This is the query for searching schedule slots. Each method match request produces an AND term while multiple invocations of a method produces a nested OR .

  • Method Details

    • matchScheduleSlotId

      void matchScheduleSlotId(Id scheduleSlotId, boolean match)
      Sets the schedule Id for this query for matching nested schedule slots.
      Parameters:
      scheduleSlotId - a schedule slot Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - scheduleSlotId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearScheduleSlotIdTerms

      void clearScheduleSlotIdTerms()
      Clears the schedule slot Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsScheduleSlotQuery

      boolean supportsScheduleSlotQuery()
      Tests if a ScheduleSlotQuery is available for querying sechedule slots.
      Returns:
      true if a schedule slot query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getScheduleSlotQuery

      ScheduleSlotQuery getScheduleSlotQuery()
      Gets the query for a schedul slot. Multiple retrievals produce a nested OR term.
      Returns:
      the schedule slot query
      Throws:
      UnimplementedException - supportsScheduleSlotQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsScheduleSlotQuery()} is {@code true} .
    • matchAnyScheduleSlot

      void matchAnyScheduleSlot(boolean match)
      Matches a schedule that has any schedule slot assigned.
      Parameters:
      match - true to match schedule with any schedule slots, false to match schedules with no schedule slots
      Compliance:
      mandatory - This method must be implemented.
    • clearScheduleSlotTerms

      void clearScheduleSlotTerms()
      Clears the schedule slot terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchWeekday

      void matchWeekday(long weekday, boolean match)
      Matches schedules that have the given weekday.
      Parameters:
      weekday - a weekday
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyWeekday

      void matchAnyWeekday(boolean match)
      Matches schedules with any weekday set.
      Parameters:
      match - true to match schedules with any weekday, false to match schedules with no weekday
      Compliance:
      mandatory - This method must be implemented.
    • clearWeekdayTerms

      void clearWeekdayTerms()
      Clears the weekday terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchWeeklyInterval

      void matchWeeklyInterval(long from, long to, boolean match)
      Matches schedules that have the given weekly interval in the given range inclusive.
      Parameters:
      from - start range
      to - end range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - to is less than from
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyWeeklyInterval

      void matchAnyWeeklyInterval(boolean match)
      Matches schedules with any weekly interval set.
      Parameters:
      match - true to match schedules with any weekly interval, false to match schedules with no weekly interval
      Compliance:
      mandatory - This method must be implemented.
    • clearWeeklyIntervalTerms

      void clearWeeklyIntervalTerms()
      Clears the weekly interval terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchWeekOfMonth

      void matchWeekOfMonth(long from, long to, boolean match)
      Matches schedules that have a week of month in the given range inclusive.
      Parameters:
      from - start range
      to - end range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - to is less than from
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyWeekOfMonth

      void matchAnyWeekOfMonth(boolean match)
      Matches schedules with any month week set.
      Parameters:
      match - true to match schedules with any week of month, false to match schedules with no month week
      Compliance:
      mandatory - This method must be implemented.
    • clearWeekOfMonthTerms

      void clearWeekOfMonthTerms()
      Clears the week of month terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchWeekdayTime

      void matchWeekdayTime(Time from, Time to, boolean match)
      Matches schedules that have a weekday time in the given range inclusive.
      Parameters:
      from - start range
      to - end range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - to is less than from
      NullArgumentException - from or to null
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyWeekdayTime

      void matchAnyWeekdayTime(boolean match)
      Matches schedules with any weekday time.
      Parameters:
      match - true to match schedules with any weekday time, false to match schedules with no weekday time
      Compliance:
      mandatory - This method must be implemented.
    • clearWeekdayTimeTerms

      void clearWeekdayTimeTerms()
      Clears the weekday time terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchFixedInterval

      void matchFixedInterval(Duration from, Duration to, boolean match)
      Matches schedules that have the given fixed interval in the given range inclusive.
      Parameters:
      from - start range
      to - end range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - to is less than from
      NullArgumentException - from or to null
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyFixedInterval

      void matchAnyFixedInterval(boolean match)
      Matches schedules with any fixed interval.
      Parameters:
      match - true to match schedules with any fixed interval, false to match schedules with no fixed interval
      Compliance:
      mandatory - This method must be implemented.
    • clearFixedIntervalTerms

      void clearFixedIntervalTerms()
      Clears the fixed interval terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchDuration

      void matchDuration(Duration low, Duration high, boolean match)
      Matches the duration between the given range inclusive.
      Parameters:
      low - low duration range
      high - high duration range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - high is less than low
      NullArgumentException - high or low is null
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyDuration

      void matchAnyDuration(boolean match)
      Matches a schedule slot that has any duration.
      Parameters:
      match - true to match schedules with any duration, false to match schedules with no start time
      Compliance:
      mandatory - This method must be implemented.
    • clearDurationTerms

      void clearDurationTerms()
      Clears the duration terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchCalendarId

      void matchCalendarId(Id calendarId, boolean match)
      Sets the calendar Id for this query.
      Parameters:
      calendarId - a calendar Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - calendarId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearCalendarIdTerms

      void clearCalendarIdTerms()
      Clears the calendar Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsCalendarQuery

      boolean supportsCalendarQuery()
      Tests if a CalendarQuery is available for querying calendars.
      Returns:
      true if a calendar query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getCalendarQuery

      CalendarQuery getCalendarQuery()
      Gets the query for a calendar. Multiple retrievals produce a nested OR term.
      Returns:
      the calendar query
      Throws:
      UnimplementedException - supportsCalendarQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsCalendarQuery()} is {@code true} .
    • clearCalendarTerms

      void clearCalendarTerms()
      Clears the calendar terms.
      Compliance:
      mandatory - This method must be implemented.
    • getScheduleSlotQueryRecord

      ScheduleSlotQueryRecord getScheduleSlotQueryRecord(Type scheduleSlotRecordType) throws OperationFailedException
      Gets the schedule slot query record corresponding to the given ScheduleSlot record Type . Multiple retrievals produce a nested OR term.
      Parameters:
      scheduleSlotRecordType - a schedule slot query record type
      Returns:
      the schedule slot query record
      Throws:
      NullArgumentException - scheduleSlotRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(scheduleSlotRecordType) is false
      Compliance:
      mandatory - This method must be implemented.