Interface QueueEnablerQuery

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

public interface QueueEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledQueueId

      void matchRuledQueueId(Id queueId, boolean match)
      Matches mapped to a queue.
      Parameters:
      queueId - the queue Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - queueId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledQueueIdTerms

      void clearRuledQueueIdTerms()
      Clears the queue Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledQueueQuery

      boolean supportsRuledQueueQuery()
      Tests if a QueueQuery is available.
      Returns:
      true if a queue query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledQueueQuery

      QueueQuery getRuledQueueQuery()
      Gets the query for a queue. Multiple retrievals produce a nested OR term.
      Returns:
      the queue query
      Throws:
      UnimplementedException - supportsRuledQueueQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledQueueQuery()} is {@code true} .
    • matchAnyRuledQueue

      void matchAnyRuledQueue(boolean match)
      Matches mapped to any queue.
      Parameters:
      match - true for mapped to any queue, false to match mapped to no queues
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledQueueTerms

      void clearRuledQueueTerms()
      Clears the queue query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchDistributorId

      void matchDistributorId(Id distributorId, boolean match)
      Sets the distributor Id for this query to match queues assigned to distributors.
      Parameters:
      distributorId - the distributor Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - distributorId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearDistributorIdTerms

      void clearDistributorIdTerms()
      Clears the distributor Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsDistributorQuery

      boolean supportsDistributorQuery()
      Tests if a DistributorQuery is available.
      Returns:
      true if a distributor query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getDistributorQuery

      DistributorQuery getDistributorQuery()
      Gets the query for a distributor. Multiple retrievals produce a nested OR term.
      Returns:
      the distributor query
      Throws:
      UnimplementedException - supportsDistributorQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsDistributorQuery()} is {@code true} .
    • clearDistributorTerms

      void clearDistributorTerms()
      Clears the distributor query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getQueueEnablerQueryRecord

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