Interface CanonicalUnitEnablerQuery

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

public interface CanonicalUnitEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledOfferingConstrainerId

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

      void clearRuledOfferingConstrainerIdTerms()
      Clears the offering constrainer Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledOfferingConstrainerQuery

      boolean supportsRuledOfferingConstrainerQuery()
      Tests if an OfferingConstrainerQuery is available.
      Returns:
      true if an offering constrainer query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledOfferingConstrainerQuery

      OfferingConstrainerQuery getRuledOfferingConstrainerQuery()
      Gets the query for an offering constrainer. Multiple retrievals produce a nested OR term.
      Returns:
      the offering constrainer query
      Throws:
      UnimplementedException - supportsRuledOfferingConstrainerQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledOfferingConstrainerQuery()} is {@code true} .
    • matchAnyRuledOfferingConstrainer

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

      void clearRuledOfferingConstrainerTerms()
      Clears the offering constrainer query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchCatalogueId

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

      void clearCatalogueIdTerms()
      Clears the catalogue Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsCatalogueQuery

      boolean supportsCatalogueQuery()
      Tests if a CatalogueQuery is available.
      Returns:
      true if a catalogue query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getCatalogueQuery

      CatalogueQuery getCatalogueQuery()
      Gets the query for a catalogue. Multiple retrievals produce a nested OR term.
      Returns:
      the catalogue query
      Throws:
      UnimplementedException - supportsCatalogueQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsCatalogueQuery()} is {@code true} .
    • clearCatalogueTerms

      void clearCatalogueTerms()
      Clears the catalogue query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getCanonicalUnitEnablerQueryRecord

      CanonicalUnitEnablerQueryRecord getCanonicalUnitEnablerQueryRecord(Type canonicalUnitEnablerRecordType) throws OperationFailedException
      Gets the canonical unit enabler query record corresponding to the given CanonicalUnitEnabler record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      canonicalUnitEnablerRecordType - a canonical unit enabler record type
      Returns:
      the canonical unit enabler query record
      Throws:
      NullArgumentException - canonicalUnitEnablerRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(canonicalUnitEnablerRecordType) is false
      Compliance:
      mandatory - This method must be implemented.