OSID Logo
OSID Specifications
installation package
Version 3.0.0
Interfaceosid.installation.PackageQuery
Implementsosid.OsidObjectQuery
osid.OsidSourceableQuery
Used Byosid.installation.DepotQuery
osid.installation.InstallationQuery
osid.installation.PackageQuery
osid.installation.PackageQuerySession
osid.installation.PackageSearchSession
osid.installation.PackageSmartDepotSession
Description

This is the query for searching packages. Each method match request produces an AND term while multiple invocations of a method produces a nested OR .

MethodmatchVersion
Description

Matches a version.

Parametersosid.installation.Versionversionthe version
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTversion or stringMatchType is null
UNSUPPORTEDversion type not supported
CompliancemandatoryThis method must be implemented.
MethodmatchAnyVersion
Description

Matches packages with any version.

Parametersbooleanmatchtrue for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearVersionTerms
Description

Clears the version query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchVersionSince
Description

Matches packages with versions including and more recent than the given version.

Parametersosid.installation.Versionversionthe version
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTversion or stringMatchType is null
UNSUPPORTEDversion type not supported
CompliancemandatoryThis method must be implemented.
MethodclearVersionSinceTerms
Description

Clears the version since query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCopyright
Description

Matches the copyright.

Parametersstringcopyrightcopyright string
osid.type.TypestringMatchTypestring match type
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTcopyright is not of stringMatchType
NULL_ARGUMENTcopyright or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyCopyright
Description

Matches packages with any copyright.

Parametersbooleanmatchtrue for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearCopyrightTerms
Description

Clears the copyright query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRequiresLicenseAcknowledgement
Description

Matches packages that require license acknowledgement.

Parametersbooleanmatchtrue for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodmatchAnyRequiresLicenseAcknowledgement
Description

Matches packages that have any acknowledgement value.

Parametersbooleanmatchtrue to match packages that have any acknowledgement value, false for to match packages that have no value
CompliancemandatoryThis method must be implemented.
MethodclearRequiresLicenseAcknowledgementTerms
Description

Clears the license acknowledgement query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCreatorId
Description

Sets the creator resource Id for this query.

Parametersosid.id.IdresourceIda resource Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTresourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearCreatorIdTerms
Description

Clears the creator Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCreatorQuery
Description

Tests if a ResourceQuery is available for querying creators.

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

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

Returnosid.resource.ResourceQuerythe creator resource query
ErrorsUNIMPLEMENTEDsupportsCreatorQuery() is false
ComplianceoptionalThis method must be implemented if supportsCreatorQuery() is true .
MethodmatchAnyCreator
Description

Matches packages with any creator.

Parametersbooleanmatchtrue for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearCreatorTerms
Description

Clears the creator query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchReleaseDate
Description

Matches the release date between the given times inclusive.

Parametersosid.calendaring.DateTimefromstarting range
osid.calendaring.DateTimetoending range
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTto is less than from
CompliancemandatoryThis method must be implemented.
MethodmatchAnyReleaseDate
Description

Matches packages that have any release date.

Parametersbooleanmatchtrue to match packages with any release date, false to match packages with no release date
CompliancemandatoryThis method must be implemented.
MethodclearReleaseDateTerms
Description

Clears the release date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDependencyId
Description

Sets the package Id to match packages on which a package depends.

Parametersosid.id.IdpackageIda state Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTstateId is null
CompliancemandatoryThis method must be implemented.
MethodclearDependencyIdTerms
Description

Clears the dependency Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDependencyQuery
Description

Tests if a PackageQuery is available.

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

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

Returnosid.installation.PackageQuerythe package query
ErrorsUNIMPLEMENTEDsupportsDependencyQuery() is false
ComplianceoptionalThis method must be implemented if supportsDependencyQuery() is true .
MethodmatchAnyDependency
Description

Matches packages that have any dependency.

Parametersbooleanmatchtrue to match packages with any dependency, false to match packages with no dependencies
CompliancemandatoryThis method must be implemented.
MethodclearDependencyTerms
Description

Clears the dependency query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchURL
Description

Sets the url for this query. Supplying multiple strings behaves like a boolean OR among the elements each which must correspond to the stringMatchType .

Parametersstringurlurl string to match
osid.type.TypestringMatchTypethe string match type
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTurl not of stringMatchType
NULL_ARGUMENTurl or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(url) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyURL
Description

Matches packages that have any url.

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

Clears the url query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchInstallationId
Description

Sets the installation Id for this query.

Parametersosid.id.IdinstallationIdan installation Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTinstallationId is null
CompliancemandatoryThis method must be implemented.
MethodclearInstallationIdTerms
Description

Clears the installation Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsInstallationQuery
Description

Tests if an InstallationQuery is available.

Returnbooleantrue if an installation query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetInstallationQuery
Description

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

Returnosid.installation.InstallationQuerythe installation query
ErrorsUNIMPLEMENTEDsupportsInstallationQuery() is false
ComplianceoptionalThis method must be implemented if supportsInstallationQuery() is true .
MethodmatchAnyInstallation
Description

Matches any packages that are installed.

Parametersbooleanmatchtrue to match installed packages, false for uninstalled packages
CompliancemandatoryThis method must be implemented.
MethodclearInstallationTerms
Description

Clears the installation query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDependentId
Description

Sets the package Id to match packages on which other packages depend.

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

Clears the dependent Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDependentQuery
Description

Tests if a PackageQuery is available.

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

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

Returnosid.installation.PackageQuerythe package query
ErrorsUNIMPLEMENTEDsupportsDependentQuery() is false
ComplianceoptionalThis method must be implemented if supportsDependentQuery() is true .
MethodmatchAnyDependent
Description

Matches packages that have any depenents.

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

Clears the dependent query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchVersionedPackageId
Description

Sets the package Id to match packages in the version chain.

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

Clears the versioned package Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsVersionedPackageQuery
Description

Tests if a PackageQuery is available.

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

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

Returnosid.installation.PackageQuerythe package query
ErrorsUNIMPLEMENTEDsupportsVersionQuery() is false
ComplianceoptionalThis method must be implemented if supportsVersionQuery() is true .
MethodmatchAnyVersionedPackage
Description

Matches packages that have any versions.

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

Clears the versioned package query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchInstallationContentId
Description

Sets the installation content Id for this query.

Parametersosid.id.IdinstallationContentIdthe installation content Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTinstallationContentId is null
CompliancemandatoryThis method must be implemented.
MethodclearInstallationContentIdTerms
Description

Clears the installation content Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsInstallationContentQuery
Description

Tests if an InstallationContentQuery is available.

Returnbooleantrue if an installation content query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetInstallationContentQuery
Description

Gets the query for the installation content. Multiple queries can be retrieved for a nested OR term.

Returnosid.installation.InstallationContentQuerythe installation content query
ErrorsUNIMPLEMENTEDsupportsInstallationContentQuery() is false
ComplianceoptionalThis method must be implemented if supportsInstallationContentQuery() is true .
MethodmatchAnyInstallationContent
Description

Matches packages with any content.

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

Clears the installation content terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDepotId
Description

Sets the depot Id for this query.

Parametersosid.id.IddepotIda depot Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTdepotId is null
CompliancemandatoryThis method must be implemented.
MethodclearDepotIdTerms
Description

Clears the depot Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDepotQuery
Description

Tests if a DepotQuery is available for querying resources.

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

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

Returnosid.installation.DepotQuerythe depot query
ErrorsUNIMPLEMENTEDsupportsDepotQuery() is false
ComplianceoptionalThis method must be implemented if supportsDepotQuery() is true .
MethodclearDepotTerms
Description

Clears the depot query terms.

CompliancemandatoryThis method must be implemented.
MethodgetPackageQueryRecord
Description

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

Parametersosid.type.TypepackageRecordTypea package query record type
Returnosid.installation.records.PackageQueryRecordthe package query record
ErrorsNULL_ARGUMENTpackageRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(packageRecordType) is false
CompliancemandatoryThis method must be implemented.