Interface OffsetEventEnablerQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidEnablerQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidRuleQuery, OsidTemporalQuery, Suppliable

public interface OffsetEventEnablerQuery extends OsidEnablerQuery

This is the query for searching offset event enablers. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR .

  • Method Details

    • matchRuledOffsetEventId

      void matchRuledOffsetEventId(Id offsetEventId, boolean match)
      Matches enablers mapped to the offset event.
      Parameters:
      offsetEventId - the offset event Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - offsetEventId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledOffsetEventIdTerms

      void clearRuledOffsetEventIdTerms()
      Clears the offset event Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledOffsetEventQuery

      boolean supportsRuledOffsetEventQuery()
      Tests if an OffsetEventQuery is available.
      Returns:
      true if an offset event query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledOffsetEventQuery

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

      void matchAnyRuledOffsetEvent(boolean match)
      Matches enablers mapped to any offset event.
      Parameters:
      match - true for enablers mapped to any offset event, false to match enablers mapped to no offset events
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledOffsetEventTerms

      void clearRuledOffsetEventTerms()
      Clears the offset event query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchCalendarId

      void matchCalendarId(Id calendarId, boolean match)
      Matches enablers mapped to the calendar.
      Parameters:
      calendarId - the 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 query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsCalendarQuery

      boolean supportsCalendarQuery()
      Tests if a CalendarQuery is available.
      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 query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getOffsetEventEnablerQueryRecord

      OffsetEventEnablerQueryRecord getOffsetEventEnablerQueryRecord(Type offsetEventEnablerRecordType) throws OperationFailedException
      Gets the offset event enabler query record corresponding to the given OffsetEventEnabler record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      offsetEventEnablerRecordType - an offset event enabler record type
      Returns:
      the offset event enabler query record
      Throws:
      NullArgumentException - offsetEventEnablerRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(offsetEventEnablerRecordType) is false
      Compliance:
      mandatory - This method must be implemented.