Interface DispatchConstrainerQuery

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

public interface DispatchConstrainerQuery extends OsidConstrainerQuery

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

  • Method Details

    • matchRuledDispatchId

      void matchRuledDispatchId(Id dispatchId, boolean match)
      Matches enablers mapped to the dispatch.
      Parameters:
      dispatchId - the dispatch Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - dispatchId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledDispatchIdTerms

      void clearRuledDispatchIdTerms()
      Clears the dispatch Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledDispatchQuery

      boolean supportsRuledDispatchQuery()
      Tests if a DispatchQuery is available.
      Returns:
      true if a dispatch query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledDispatchQuery

      DispatchQuery getRuledDispatchQuery()
      Gets the query for a dispatch. Multiple retrievals produce a nested OR term.
      Returns:
      the dispatch query
      Throws:
      UnimplementedException - supportsRuledDispatchQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledDispatchQuery()} is {@code true} .
    • matchAnyRuledDispatch

      void matchAnyRuledDispatch(boolean match)
      Matches dispatch constrainers mapped to any dispatch.
      Parameters:
      match - true for dispatch constraienrs mapped to any dispatch, false to match dispatch constrainers mapped to no dispatch
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledDispatchTerms

      void clearRuledDispatchTerms()
      Clears the dispatch enabler query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchPublisherId

      void matchPublisherId(Id publisherId, boolean match)
      Sets the publisher Id for this query to match dispatches assigned to publishers.
      Parameters:
      publisherId - the publisher Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - publisherId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearPublisherIdTerms

      void clearPublisherIdTerms()
      Clears the publisher Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsPublisherQuery

      boolean supportsPublisherQuery()
      Tests if a PublisherQuery is available.
      Returns:
      true if a publisher query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getPublisherQuery

      PublisherQuery getPublisherQuery()
      Gets the query for a publisher. Multiple retrievals produce a nested OR term.
      Returns:
      the publisher query
      Throws:
      UnimplementedException - supportsPublisherQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsPublisherQuery()} is {@code true} .
    • clearPublisherTerms

      void clearPublisherTerms()
      Clears the publisher query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getDispatchConstrainerQueryRecord

      DispatchConstrainerQueryRecord getDispatchConstrainerQueryRecord(Type dispatchConstrainerRecordType) throws OperationFailedException
      Gets the dispatch constrainer query record corresponding to the given DispatchConstrainer record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      dispatchConstrainerRecordType - a dispatch constrainer record type
      Returns:
      the dispatch constrainer query record
      Throws:
      NullArgumentException - dispatchConstrainerRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(dispatchConstrainerRecordType) is false
      Compliance:
      mandatory - This method must be implemented.