OSID Logo
OSID Specifications
osid package
Version 3.0.0
Release Candidate Preview
Interfaceosid.OsidSourceableQuery
Implementsosid.OsidQuery
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
CompliancemandatoryThis method must be implemented.
MethodclearProviderIdTerms
Description

Clears all provider Id terms.

CompliancemandatoryThis 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
CompliancemandatoryThis 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.ResourceQuerythe provider query
ErrorsUNIMPLEMENTED supportsProviderQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearProviderTerms
Description

Clears all provider terms.

CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodclearBrandingIdTerms
Description

Clears all asset Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsBrandingQuery
Description

Tests if an AssetQuery for the branding is available.

Returnboolean true if a asset query is available, false otherwise
CompliancemandatoryThis 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.AssetQuerythe asset query
ErrorsUNIMPLEMENTED supportsBrandingQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearBrandingTerms
Description

Clears all branding terms.

CompliancemandatoryThis method must be implemented.
MethodmatchLicense
Description

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

Parametersstringlicensea string to match
osid.type.TypestringMatchTypethe 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
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodclearLicenseTerms
Description

Clears all license terms.

CompliancemandatoryThis method must be implemented.