OSID Logo
OSID Specifications
installation package
Version 3.1.0
Interfaceosid.installation.DepotQuery
Implementsosid.OsidCatalogQuery
Used Byosid.installation.DepotQuery
osid.installation.DepotQuerySession
osid.installation.DepotSearchSession
osid.installation.InstallationPackageQuery
Description

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

MethodmatchInstallationPackageId
Description

Sets the package Id for this query.

Parametersosid.id.IdinstallationPackageId a package Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT installationPackageId is null
Compliancemandatory This method must be implemented.
MethodclearInstallationPackageIdTerms
Description

Clears the package Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsInstallationPackageQuery
Description

Tests if a InstallationPackageQuery is available.

Returnboolean true if a package query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetInstallationPackageQuery
Description

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

Returnosid.installation.InstallationPackageQuery the package query
ErrorsUNIMPLEMENTED supportsInstallationPackageQuery() is false
Complianceoptional This method must be implemented if supportsInstallationPackageQuery() is true.
MethodmatchAnyInstallationPackage
Description

Matches depots that have any package.

Parametersbooleanmatch true to match depots with any packages, false to match depots with no packages
Compliancemandatory This method must be implemented.
MethodclearInstallationPackageTerms
Description

Clears the package query terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorDepotId
Description

Sets the depot Id for this query to match depots that have the specified depot as an ancestor.

Parametersosid.id.IddepotId a depot Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT depotId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorDepotIdTerms
Description

Clears the ancestor depot Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorDepotQuery
Description

Tests if a DepotQuery is available.

Returnboolean true if a depot query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAncestorDepotQuery
Description

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

Returnosid.installation.DepotQuery the depot query
ErrorsUNIMPLEMENTED supportsAncestorDepotQuery() is false
Complianceoptional This method must be implemented if supportsAncestorDepotQuery() is true.
MethodmatchAnyAncestorDepot
Description

Matches depots with any ancestor.

Parametersbooleanmatch true to match depots with any ancestor, false to match root depots
Compliancemandatory This method must be implemented.
MethodclearAncestorDepotTerms
Description

Clears the ancestor depot query terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantDepotId
Description

Sets the depot Id for this query to match depots that have the specified depot as a descendant.

Parametersosid.id.IddepotId a depot Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT depotId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantDepotIdTerms
Description

Clears the descendant depot Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantDepotQuery
Description

Tests if a DepotQuery is available.

Returnboolean true if a depot query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetDescendantDepotQuery
Description

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

Returnosid.installation.DepotQuery the depot query
ErrorsUNIMPLEMENTED supportsDescendantDepotQuery() is false
Complianceoptional This method must be implemented if supportsDescendantDepotQuery() is true.
MethodmatchAnyDescendantDepot
Description

Matches depots with any descendant.

Parametersbooleanmatch true to match depots with any descendant, false to match leaf depots
Compliancemandatory This method must be implemented.
MethodclearDescendantDepotTerms
Description

Clears the descendant depot query terms.

Compliancemandatory This method must be implemented.
MethodgetDepotQueryRecord
Description

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

Parametersosid.type.TypedepotRecordType a depot record type
Returnosid.installation.records.DepotQueryRecord the depot query record
ErrorsNULL_ARGUMENT depotRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(depotRecordType) is false
Compliancemandatory This method must be implemented.