Interface PriceEnablerQuery

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

public interface PriceEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledPriceId

      void matchRuledPriceId(Id priceId, boolean match)
      Matches enablers mapped to the price.
      Parameters:
      priceId - the price Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - priceId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledPriceIdTerms

      void clearRuledPriceIdTerms()
      Clears the price Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledPriceQuery

      boolean supportsRuledPriceQuery()
      Tests if a PriceQuery is available.
      Returns:
      true if a price query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledPriceQuery

      PriceQuery getRuledPriceQuery()
      Gets the query for a price. Multiple retrievals produce a nested OR term.
      Returns:
      the price query
      Throws:
      UnimplementedException - supportsRuledPriceQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledPriceQuery()} is {@code true} .
    • matchAnyRuledPrice

      void matchAnyRuledPrice(boolean match)
      Matches enablers mapped to any price.
      Parameters:
      match - true for enablers mapped to any price, false to match enablers mapped to no price
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledPriceTerms

      void clearRuledPriceTerms()
      Clears the price query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchMinimumQuantity

      void matchMinimumQuantity(long low, long high, boolean match)
      Matches the minimum quantity between the given range inclusive.
      Parameters:
      low - start of range
      high - end of range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - low is greater than high
      Compliance:
      mandatory - This method must be implemented.
    • clearMinimumQuantityTerms

      void clearMinimumQuantityTerms()
      Clears the minimum quantity terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchMaximumQuantity

      void matchMaximumQuantity(long low, long high, boolean match)
      Matches the maximum quantity between the given range inclusive.
      Parameters:
      low - start of range
      high - end of range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - low is greater than high
      Compliance:
      mandatory - This method must be implemented.
    • clearMaximumQuantityTerms

      void clearMaximumQuantityTerms()
      Clears the maximum quantity terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchStoreId

      void matchStoreId(Id storeId, boolean match)
      Matches enablers mapped to the store.
      Parameters:
      storeId - the store Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - storeId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearStoreIdTerms

      void clearStoreIdTerms()
      Clears the store Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsStoreQuery

      boolean supportsStoreQuery()
      Tests if a StoreQuery is available.
      Returns:
      true if a store query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getStoreQuery

      StoreQuery getStoreQuery()
      Gets the query for a store. Multiple retrievals produce a nested OR term.
      Returns:
      the store query
      Throws:
      UnimplementedException - supportsStoreQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsStoreQuery()} is {@code true} .
    • clearStoreTerms

      void clearStoreTerms()
      Clears the store query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getPriceEnablerQueryRecord

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