OSID Logo
OSID Specifications
offering package
Version 3.0.0
Release Candidate Preview
Interfaceosid.offering.CatalogueQuery
Implementsosid.OsidCatalogQuery
Description

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

MethodmatchCanonicalUnitId
Description

Sets the canonical unit Id for this query to match canonical units assigned to catalogues.

Parametersosid.id.IdcanonicalUnitIda canonical unit Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT canonicalUnitId is null
CompliancemandatoryThis method must be implemented.
MethodclearCanonicalUnitIdTerms
Description

Clears all canonical unit Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCanonicalUnitQuery
Description

Tests if a canonical unit query is available.

Returnboolean true if a canonical unit query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCanonicalUnitQuery
Description

Gets the query for a catalogue.

Returnosid.offering.CanonicalUnitQuerythe canonical unit query
ErrorsUNIMPLEMENTED supportsCanonicalUnitQuery() is false
ComplianceoptionalThis method must be implemented if supportsCanonicalUnitQuery() is true.
MethodmatchAnyCanonicalUnit
Description

Matches catalogues with any canonical unit.

Parametersbooleanmatch true to match catalogues with any canonical unit, false to match catalogues with no canonical units
CompliancemandatoryThis method must be implemented.
MethodclearCanonicalUnitTerms
Description

Clears all canonical unit terms.

CompliancemandatoryThis method must be implemented.
MethodmatchOfferingId
Description

Sets the offering Id for this query to match offerings assigned to catalogues.

Parametersosid.id.IdofferingIdan offering Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT offeringId is null
CompliancemandatoryThis method must be implemented.
MethodclearOfferingIdTerms
Description

Clears all offering Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsOfferingQuery
Description

Tests if an offering query is available.

Returnboolean true if an offering query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetOfferingQuery
Description

Gets the query for an offering.

Returnosid.offering.OfferingQuerythe offering query
ErrorsUNIMPLEMENTED supportsOfferingQuery() is false
ComplianceoptionalThis method must be implemented if supportsOfferingQuery() is true.
MethodmatchAnyOffering
Description

Matches catalogues with any offering.

Parametersbooleanmatch true to match catalogues with any offering, false to match catalogues with no offerings
CompliancemandatoryThis method must be implemented.
MethodclearOfferingTerms
Description

Clears all offering terms.

CompliancemandatoryThis method must be implemented.
MethodmatchParticipantId
Description

Sets the participant Id for this query to match participants assigned to catalogues.

Parametersosid.id.IdparticipantIda participant Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT participantId is null
CompliancemandatoryThis method must be implemented.
MethodclearParticipantIdTerms
Description

Clears all participant Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsParticipantQuery
Description

Tests if a participant query is available.

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

Gets the query for a participant.

Returnosid.offering.ParticipantQuerythe participant query
ErrorsUNIMPLEMENTED supportsParticipantQuery() is false
ComplianceoptionalThis method must be implemented if supportsParticipantQuery() is true.
MethodmatchAnyParticipant
Description

Matches catalogues with any participant.

Parametersbooleanmatch true to match catalogues with any participant, false to match catalogues with no participants
CompliancemandatoryThis method must be implemented.
MethodclearParticipantTerms
Description

Clears all participant terms.

CompliancemandatoryThis method must be implemented.
MethodmatchResultId
Description

Sets the result Id for this query to match results.

Parametersosid.id.IdresultIdan result Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT resultId is null
CompliancemandatoryThis method must be implemented.
MethodclearResultIdTerms
Description

Clears all result Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsResultQuery
Description

Tests if an result query is available.

Returnboolean true if an result query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetResultQuery
Description

Gets the query for an result.

Returnosid.offering.ResultQuerythe result query
ErrorsUNIMPLEMENTED supportsResultQuery() is false
ComplianceoptionalThis method must be implemented if supportsResultQuery() is true.
MethodmatchAnyResult
Description

Matches catalogues with any result.

Parametersbooleanmatch true to match catalogues with any result, false to match catalogues with no results
CompliancemandatoryThis method must be implemented.
MethodclearResultTerms
Description

Clears all result terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorCatalogueId
Description

Sets the catalogue Id for this query to match catalogues that have the specified catalogue as an ancestor.

Parametersosid.id.IdcatalogueIda catalogue Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT catalogueId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorCatalogueIdTerms
Description

Clears all ancestor catalogue Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorCatalogueQuery
Description

Tests if a CatalogueQuery is available.

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

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

Returnosid.offering.CatalogueQuerythe catalogue query
ErrorsUNIMPLEMENTED supportsAncestorCatalogueQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorCatalogueQuery() is true.
MethodmatchAnyAncestorCatalogue
Description

Matches catalogues with any ancestor.

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

Clears all ancestor catalogue terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantCatalogueId
Description

Sets the catalogue Id for this query to match catalogues that have the specified catalogue as a descendant.

Parametersosid.id.IdcatalogueIda catalogue Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT catalogueId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantCatalogueIdTerms
Description

Clears all descendant catalogue Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantCatalogueQuery
Description

Tests if a CatalogueQuery is available.

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

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

Returnosid.offering.CatalogueQuerythe catalogue query
ErrorsUNIMPLEMENTED supportsDescendantCatalogueQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantCatalogueQuery() is true.
MethodmatchAnyDescendantCatalogue
Description

Matches catalogues with any descendant.

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

Clears all descendant catalogue terms.

CompliancemandatoryThis method must be implemented.
MethodgetCatalogueQueryRecord
Description

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

Parametersosid.type.TypecatalogueRecordTypea catalogue record type
Returnosid.offering.records.CatalogueQueryRecordthe catalogue query record
ErrorsNULL_ARGUMENT catalogueRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(catalogueRecordType) is false
CompliancemandatoryThis method must be implemented.