Interface BrokerConstrainerEnablerQuery

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

public interface BrokerConstrainerEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledBrokerConstrainerId

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

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

      boolean supportsRuledBrokerConstrainerQuery()
      Tests if a BrokerConstrainerQuery is available.
      Returns:
      true if a broker constrainer query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledBrokerConstrainerQuery

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

      void matchAnyRuledBrokerConstrainer(boolean match)
      Matches enablers mapped to any broker constrainer.
      Parameters:
      match - true for enablers mapped to any broker constrainer, false to match enablers mapped to no broker constrainers
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledBrokerConstrainerTerms

      void clearRuledBrokerConstrainerTerms()
      Clears the broker constrainer 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.
    • getBrokerConstrainerEnablerQueryRecord

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