Interface CommitmentEnablerQuery

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

public interface CommitmentEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledCommitmentId

      void matchRuledCommitmentId(Id commitmentId, boolean match)
      Matches enablers mapped to the commitment.
      Parameters:
      commitmentId - the commitment book Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - commitmentBookId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledCommitmentIdTerms

      void clearRuledCommitmentIdTerms()
      Clears the commitment Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledCommitmentQuery

      boolean supportsRuledCommitmentQuery()
      Tests if a CommitmentBookQuery is available.
      Returns:
      true if a commitment query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledCommitmentQuery

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

      void matchAnyRuledCommitment(boolean match)
      Matches enablers mapped to any commitment.
      Parameters:
      match - true for enablers mapped to any commitment, false to match enablers mapped to no commitment
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledCommitmentTerms

      void clearRuledCommitmentTerms()
      Clears the commitment 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.
    • getCommitmentEnablerQueryRecord

      CommitmentEnablerQueryRecord getCommitmentEnablerQueryRecord(Type commitmentEnablerRecordType) throws OperationFailedException
      Gets the commitment enabler query record corresponding to the given CommitmentEnabler record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      commitmentEnablerRecordType - a commitment enabler record type
      Returns:
      the commitment enabler query record
      Throws:
      NullArgumentException - commitmentEnablerRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(commitmentEnablerRecordType) is false
      Compliance:
      mandatory - This method must be implemented.