OSID Logo
OSID Specifications
installation package
Version 3.0.0
Interfaceosid.installation.DepotQuery
Implementsosid.OsidCatalogQuery
Used Byosid.installation.DepotQuery
osid.installation.DepotQuerySession
osid.installation.DepotSearchSession
osid.installation.PackageQuery
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 .

MethodmatchPackageId
Description

Sets the package Id for this query.

Parametersosid.id.IdpackageIda package Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTpackageId is null
CompliancemandatoryThis method must be implemented.
MethodclearPackageIdTerms
Description

Clears the package Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsPackageQuery
Description

Tests if a PackageQuery is available.

Returnbooleantrue if a package query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPackageQuery
Description

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

Returnosid.installation.PackageQuerythe package query
ErrorsUNIMPLEMENTEDsupportsPackageQuery() is false
ComplianceoptionalThis method must be implemented if supportsPackageQuery() is true .
MethodmatchAnyPackage
Description

Matches depots that have any package.

Parametersbooleanmatchtrue to match depots with any packages, false to match depots with no packages
CompliancemandatoryThis method must be implemented.
MethodclearPackageTerms
Description

Clears the package query terms.

CompliancemandatoryThis 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.IddepotIda depot Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTdepotId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorDepotIdTerms
Description

Clears the ancestor depot Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorDepotQuery
Description

Tests if a DepotQuery is available.

Returnbooleantrue if a depot query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAncestorDepotQuery
Description

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

Returnosid.installation.DepotQuerythe depot query
ErrorsUNIMPLEMENTEDsupportsAncestorDepotQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorDepotQuery() is true .
MethodmatchAnyAncestorDepot
Description

Matches depots with any ancestor.

Parametersbooleanmatchtrue to match depots with any ancestor, false to match root depots
CompliancemandatoryThis method must be implemented.
MethodclearAncestorDepotTerms
Description

Clears the ancestor depot query terms.

CompliancemandatoryThis 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.IddepotIda depot Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTdepotId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantDepotIdTerms
Description

Clears the descendant depot Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantDepotQuery
Description

Tests if a DepotQuery is available.

Returnbooleantrue if a depot query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDescendantDepotQuery
Description

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

Returnosid.installation.DepotQuerythe depot query
ErrorsUNIMPLEMENTEDsupportsDescendantDepotQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantDepotQuery() is true .
MethodmatchAnyDescendantDepot
Description

Matches depots with any descendant.

Parametersbooleanmatchtrue to match depots with any descendant, false to match leaf depots
CompliancemandatoryThis method must be implemented.
MethodclearDescendantDepotTerms
Description

Clears the descendant depot query terms.

CompliancemandatoryThis 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.TypedepotRecordTypea depot record type
Returnosid.installation.records.DepotQueryRecordthe depot query record
ErrorsNULL_ARGUMENTdepotRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(depotRecordType) is false
CompliancemandatoryThis method must be implemented.