OSID Logo
OSID Specifications
osid package
Version 3.1.0
Interfaceosid.OsidSourceableQuery
Implementsosid.OsidQuery
Implemented Byosid.OsidCatalogQuery
osid.OsidGovernatorQuery
osid.installation.InstallationPackageQuery
osid.repository.AssetQuery
osid.repository.CompositionQuery
osid.recipe.RecipeQuery
osid.blogging.EntryQuery
Description

The OsidSourceableQuery is used to assemble search queries for sourceables.

MethodmatchProviderId
Description

Match the Id of the provider resource.

Parametersosid.id.IdresourceId Id to match
booleanmatch true if for a positive match, false for a negative match
ErrorsNULL_ARGUMENT resourceId is null
Compliancemandatory This method must be implemented.
MethodclearProviderIdTerms
Description

Clears all provider Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsProviderQuery
Description

Tests if a ResourceQuery for the provider is available.

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

Gets the query for the provider. Each retrieval performs a boolean OR.

Parametersbooleanmatch true if for a positive match, false for a negative match
Returnosid.resource.ResourceQuery the provider query
ErrorsUNIMPLEMENTED supportsProviderQuery() is false
Complianceoptional This method must be implemented if supportsProviderQuery() is true.
MethodmatchAnyProvider
Description

Match sourceables with a provider value.

Parametersbooleanmatch true to match sourceables with any provider, false to match sourceables with no providers
Compliancemandatory This method must be implemented.
MethodclearProviderTerms
Description

Clears all provider terms.

Compliancemandatory This method must be implemented.
MethodmatchBrandingId
Description

Match the Id of an asset used for branding.

Parametersosid.id.IdassetId Id to match
booleanmatch true if for a positive match, false for a negative match
ErrorsNULL_ARGUMENT assetId is null
Compliancemandatory This method must be implemented.
MethodclearBrandingIdTerms
Description

Clears all asset Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsBrandingQuery
Description

Tests if an AssetQuery for the branding is available.

Returnboolean true if an asset query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetBrandingQuery
Description

Gets the query for an asset. Each retrieval performs a boolean OR.

Parametersbooleanmatch true if for a positive match, false for a negative match
Returnosid.repository.AssetQuery the asset query
ErrorsUNIMPLEMENTED supportsBrandingQuery() is false
Complianceoptional This method must be implemented if supportsBrandingQuery() is true.
MethodmatchAnyBranding
Description

Match sourceables with any branding.

Parametersbooleanmatch true to match any asset, false to match no assets
Compliancemandatory This method must be implemented.
MethodclearBrandingTerms
Description

Clears all branding terms.

Compliancemandatory This method must be implemented.
MethodmatchLicense
Description

Adds a license to match. Multiple license matches can be added to perform a boolean OR among them.

Parametersstringlicense a string to match
osid.type.TypestringMatchType the string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT license is not of stringMatchType
NULL_ARGUMENT license or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
Compliancemandatory This method must be implemented.
MethodmatchAnyLicense
Description

Matches any object with a license.

Parametersbooleanmatch true to match any license, false to match objects with no license
Compliancemandatory This method must be implemented.
MethodclearLicenseTerms
Description

Clears all license terms.

Compliancemandatory This method must be implemented.