Interface ProvisionEnablerQuery

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

public interface ProvisionEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledProvisionId

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

      void clearRuledProvisionIdTerms()
      Clears the provision Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledProvisionQuery

      boolean supportsRuledProvisionQuery()
      Tests if a ProvisionQuery is available.
      Returns:
      true if a provision query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledProvisionQuery

      ProvisionQuery getRuledProvisionQuery()
      Gets the query for a provision. Multiple retrievals produce a nested OR term.
      Returns:
      the provision query
      Throws:
      UnimplementedException - supportsRuledProvisionQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledProvisionQuery()} is {@code true} .
    • matchAnyRuledProvision

      void matchAnyRuledProvision(boolean match)
      Matches mapped to any provision.
      Parameters:
      match - true for mapped to any provision, false to match mapped to no provision
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledProvisionTerms

      void clearRuledProvisionTerms()
      Clears the provision 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 provision 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.
    • getProvisionEnablerQueryRecord

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