Interface BrokerQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidGovernatorQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidSourceableQuery, Suppliable

public interface BrokerQuery extends OsidGovernatorQuery

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

  • Method Details

    • matchBrokerageId

      void matchBrokerageId(Id brokerageId, boolean match)
      Sets the brokerage Id for this query.
      Parameters:
      brokerageId - the brokerage Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - brokerageId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearBrokerageIdTerms

      void clearBrokerageIdTerms()
      Clears the brokerage Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsBrokerageQuery

      boolean supportsBrokerageQuery()
      Tests if a ResourceQuery is available.
      Returns:
      true if a brokerage query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getBrokerageQuery

      ResourceQuery getBrokerageQuery()
      Gets the query for a brokerage. Multiple retrievals produce a nested OR term.
      Returns:
      the brokerage query
      Throws:
      UnimplementedException - supportsBrokerageQuery() is false
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyBrokerage

      void matchAnyBrokerage(boolean match)
      Matches brokers that have any brokerage.
      Parameters:
      match - true to match brokers with any brokerage, false to match brokers with no brokerage
      Compliance:
      mandatory - This method must be implemented.
    • clearBrokerageTerms

      void clearBrokerageTerms()
      Clears the brokerage query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchQueueId

      void matchQueueId(Id queueId, boolean match)
      Sets the queue Id for this query.
      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.
    • clearQueueIdTerms

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

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

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

      void matchAnyQueue(boolean match)
      Matches brokers with any queue.
      Parameters:
      match - true to match brokers with any queue, false to match brokers with no queue
      Compliance:
      mandatory - This method must be implemented.
    • clearQueueTerms

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

      void matchPoolId(Id poolId, boolean match)
      Sets the pool Id for this query.
      Parameters:
      poolId - the pool Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - poolId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearPoolIdTerms

      void clearPoolIdTerms()
      Clears the pool Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsPoolQuery

      boolean supportsPoolQuery()
      Tests if a PoolQuery is available.
      Returns:
      true if a pool query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getPoolQuery

      PoolQuery getPoolQuery()
      Gets the query for a pool. Multiple retrievals produce a nested OR term.
      Returns:
      the pool query
      Throws:
      UnimplementedException - supportsPoolQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsPoolQuery()} is {@code true} .
    • matchAnyPool

      void matchAnyPool(boolean match)
      Matches brokers with any pool.
      Parameters:
      match - true to match brokers with any pool, false to match brokers with no pool
      Compliance:
      mandatory - This method must be implemented.
    • clearPoolTerms

      void clearPoolTerms()
      Clears the pool 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.
    • getBrokerQueryRecord

      BrokerQueryRecord getBrokerQueryRecord(Type brokerRecordType) throws OperationFailedException
      Gets the broker query record corresponding to the given Broker record Type .Multiple record retrievals produce a nested OR term.
      Parameters:
      brokerRecordType - a broker record type
      Returns:
      the broker query record
      Throws:
      NullArgumentException - brokerRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(brokerRecordType) is false
      Compliance:
      mandatory - This method must be implemented.