OSID Logo
OSID Specifications
cataloging package
Version 3.0.0
Release Candidate Preview
Interfaceosid.cataloging.CatalogQuery
Implementsosid.OsidCatalogQuery
Description

This is the query for searching catalogs. Each method specifies an AND term while multiple invocations of the same method produces a nested OR.

MethodmatchId
Description

Matches an Id in this catalog. Multiple Ids are treated as a boolean OR.

Parametersosid.id.Idid Id to match
booleanmatch true if for a positive match, false for a negative match
ErrorsNULL_ARGUMENT id is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyId
Description

Matches catalogs that have any Id mapping.

Parametersbooleanmatch true to match catalogs with any Id mapping, false to match catalogs with no Id mapping
CompliancemandatoryThis method must be implemented.
MethodclearIdTerms
Description

Clears the Id query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorCatalogId
Description

Sets the catalog Id for this query to match catalogs that have the specified catalog as an ancestor.

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

Clears the ancestor Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorCatalogQuery
Description

Tests if a CatalogQuery is available.

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

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

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

Matches catalogs with any ancestor.

Parametersbooleanmatch true to match catalogs with any ancestor, false to match root catalogs
CompliancemandatoryThis method must be implemented.
MethodclearAncestorCatalogTerms
Description

Clears the ancestor query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantCatalogId
Description

Sets the catalog Id for this query to match catalogs that have the specified catalog as an descendant.

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

Clears the descendant Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantCatalogQuery
Description

Tests if a CatalogQuery is available.

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

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

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

Matches catalogs with any descendant.

Parametersbooleanmatch true to match catalogs with any descendant, false to match leaf catalogs
CompliancemandatoryThis method must be implemented.
MethodclearDescendantCatalogTerms
Description

Clears the descendant query terms.

CompliancemandatoryThis method must be implemented.
MethodgetCatalogQueryRecord
Description

Gets the catalog query record corresponding to the given Catalog record Type. Multiple record retrievals produce a boolean OR term.

Parametersosid.type.TypecatalogRecordTypea catalog record type
Returnosid.cataloging.records.CatalogQueryRecordthe catalog query record
ErrorsNULL_ARGUMENT catalogRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(catalogRecordType) is false
CompliancemandatoryThis method must be implemented.