OSID Logo
OSID Specifications
cataloging rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.cataloging.rules.CatalogEnablerQuery
Implementsosid.OsidEnablerQuery
Description

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.

MethodmatchRuledCatalogId
Description

Matches enablers mapped to the catalog.

Parametersosid.id.IdcatalogIdthe catalog Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT catalogId is null
CompliancemandatoryThis method must be implemented.
MethodclearRuledCatalogIdTerms
Description

Clears the catalog Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRuledCatalogQuery
Description

Tests if a CatalogQuery is available.

Returnboolean true if a catalog query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRuledCatalogQuery
Description

Gets the query for a catalog. Multiple retrievals produce a nested OR term.

Returnosid.cataloging.CatalogQuerythe catalog query
ErrorsUNIMPLEMENTED supportsRuledCatalogQuery() is false
ComplianceoptionalThis method must be implemented if supportsRuledCatalogQuery() is true.
MethodmatchAnyRuledCatalog
Description

Matches enablers mapped to any catalog.

Parametersbooleanmatch true for enablers mapped to any catalog, false to match enablers mapped to no catalog
CompliancemandatoryThis method must be implemented.
MethodclearRuledCatalogTerms
Description

Clears the catalog query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCatalogId
Description

Matches enablers mapped to the catalog.

Parametersosid.id.IdcatalogIdthe catalog Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT catalogId is null
CompliancemandatoryThis method must be implemented.
MethodclearCatalogIdTerms
Description

Clears the catalog Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCatalogQuery
Description

Tests if a CatalogQuery is available.

Returnboolean true if a catalog query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCatalogQuery
Description

Gets the query for a catalog. Multiple retrievals produce a nested OR term.

Returnosid.cataloging.CatalogQuerythe catalog query
ErrorsUNIMPLEMENTED supportsCatalogQuery() is false
ComplianceoptionalThis method must be implemented if supportsCatalogQuery() is true.
MethodclearCatalogTerms
Description

Clears the catalog query terms.

CompliancemandatoryThis method must be implemented.
MethodgetCatalogEnablerQueryRecord
Description

Gets the catalog enabler query record corresponding to the given CatalogEnabler record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypecatalogEnablerRecordTypea catalog enabler record type
Returnosid.cataloging.rules.records.CatalogEnablerQueryRecordthe catalog enabler query record
ErrorsNULL_ARGUMENT catalogEnablerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(catalogEnablerRecordType) is false
CompliancemandatoryThis method must be implemented.