Interface CatalogEnablerQuery

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

public interface CatalogEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledCatalogId

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

      void clearRuledCatalogIdTerms()
      Clears the catalog Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledCatalogQuery

      boolean supportsRuledCatalogQuery()
      Tests if a CatalogQuery is available.
      Returns:
      true if a catalog query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledCatalogQuery

      CatalogQuery getRuledCatalogQuery()
      Gets the query for a catalog. Multiple retrievals produce a nested OR term.
      Returns:
      the catalog query
      Throws:
      UnimplementedException - supportsRuledCatalogQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledCatalogQuery()} is {@code true} .
    • matchAnyRuledCatalog

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

      void clearRuledCatalogTerms()
      Clears the catalog query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchCatalogId

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

      void clearCatalogIdTerms()
      Clears the catalog Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsCatalogQuery

      boolean supportsCatalogQuery()
      Tests if a CatalogQuery is available.
      Returns:
      true if a catalog query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getCatalogQuery

      CatalogQuery getCatalogQuery()
      Gets the query for a catalog. Multiple retrievals produce a nested OR term.
      Returns:
      the catalog query
      Throws:
      UnimplementedException - supportsCatalogQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsCatalogQuery()} is {@code true} .
    • clearCatalogTerms

      void clearCatalogTerms()
      Clears the catalog query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getCatalogEnablerQueryRecord

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