Interface ProvisionableEnablerQuery

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

public interface ProvisionableEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledProvisionableId

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

      void clearRuledProvisionableIdTerms()
      Clears the provisionable Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledProvisionableQuery

      boolean supportsRuledProvisionableQuery()
      Tests if a ProvisionableQuery is available.
      Returns:
      true if a provisionable query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledProvisionableQuery

      ProvisionableQuery getRuledProvisionableQuery()
      Gets the query for a provisionable. Multiple retrievals produce a nested OR term.
      Returns:
      the provisionable query
      Throws:
      UnimplementedException - supportsRuledProvisionableQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledProvisionableQuery()} is {@code true} .
    • matchAnyRuledProvisionable

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

      void clearRuledProvisionableTerms()
      Clears the provisionable 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 provisionables 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.
    • getProvisionableEnablerQueryRecord

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