Interface CyclicEventQuery

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

public interface CyclicEventQuery extends OsidObjectQuery

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

  • Method Details

    • matchEventId

      void matchEventId(Id eventId, boolean match)
      Matches cyclic events that are related to the given event.
      Parameters:
      eventId - an Id for an event
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - eventId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearEventIdTerms

      void clearEventIdTerms()
      Clears the event terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsEventQuery

      boolean supportsEventQuery()
      Tests if an EventQuery is available.
      Returns:
      true if an event query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getEventQuery

      EventQuery getEventQuery()
      Gets the query for an event. Multiple retrievals produce a nested OR term.
      Returns:
      the event query
      Throws:
      UnimplementedException - supportsEventQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsEventQuery()} is {@code true} .
    • matchAnyEvent

      void matchAnyEvent(boolean match)
      Matches a cyclic event that has any related event.
      Parameters:
      match - true to match cyclic events with any event, false to match cyclic events with no related events
      Compliance:
      mandatory - This method must be implemented.
    • clearEventTerms

      void clearEventTerms()
      Clears the event 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.
    • getCyclicEventQueryRecord

      CyclicEventQueryRecord getCyclicEventQueryRecord(Type cyclicEventRecordType) throws OperationFailedException
      Gets the cyclic event query record corresponding to the given CyclicEvent record Type . Multiple retrievals produce a nested OR term.
      Parameters:
      cyclicEventRecordType - a cyclic event query record type
      Returns:
      the cyclic event query record
      Throws:
      NullArgumentException - cyclicEventRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(cyclicEventRecordType) is false
      Compliance:
      mandatory - This method must be implemented.