Interface BrokerEnablerQuery

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

public interface BrokerEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledBrokerId

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

      void clearRuledBrokerIdTerms()
      Clears the broker Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledBrokerQuery

      boolean supportsRuledBrokerQuery()
      Tests if a BrokerQuery is available.
      Returns:
      true if a broker query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledBrokerQuery

      BrokerQuery getRuledBrokerQuery()
      Gets the query for a broker. Multiple retrievals produce a nested OR term.
      Returns:
      the broker query
      Throws:
      UnimplementedException - supportsRuledBrokerQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledBrokerQuery()} is {@code true} .
    • matchAnyRuledBroker

      void matchAnyRuledBroker(boolean match)
      Matches mapped to any broker.
      Parameters:
      match - true for mapped to any broker, false to match mapped to no brokers
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledBrokerTerms

      void clearRuledBrokerTerms()
      Clears the broker 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 brokers 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.
    • getBrokerEnablerQueryRecord

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