OSID Logo
OSID Specifications
repository package
Version 3.1.0
Interfaceosid.repository.AssetContentQuery
Implementsosid.OsidObjectQuery
osid.OsidSubjugateableQuery
Used Byosid.repository.AssetContentQuerySession
osid.repository.AssetContentSearchSession
osid.repository.AssetContentSmartRepositorySession
osid.repository.AssetQuery
osid.repository.RepositoryQuery
Description

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

MethodmatchAssetId
Description

Sets the asset Id for this query.

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

Clears the asset Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAssetQuery
Description

Tests if an AssetQuery is available.

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

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

Returnosid.repository.AssetQuery the asset query
ErrorsUNIMPLEMENTED supportsAssetQuery() is false
Complianceoptional This method must be implemented if supportsAssetQuery() is true.
MethodclearAssetTerms
Description

Clears the asset terms.

Compliancemandatory This method must be implemented.
MethodmatchDataLength
Description

Matches content whose length of the data in bytes are inclusive of the given range.

Parameterscardinallow low range
cardinalhigh high range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
Compliancemandatory This method must be implemented.
MethodmatchAnyDataLength
Description

Matches content that has any data length.

Parametersbooleanmatch true to match content with any data length, false to match content with no data length
Compliancemandatory This method must be implemented.
MethodclearDataLengthTerms
Description

Clears the data length terms.

Compliancemandatory This method must be implemented.
MethodmatchData
Description

Matches data in this content.

Parametersbyte[]data list of matching strings
booleanmatch true for a positive match, false for a negative match
booleanpartial true for a partial match, false for a complete match
ErrorsNULL_ARGUMENT data is null
Compliancemandatory This method must be implemented.
MethodmatchAnyData
Description

Matches content that has any data.

Parametersbooleanmatch true to match content with any data, false to match content with no data
Compliancemandatory This method must be implemented.
MethodclearDataTerms
Description

Clears the data terms.

Compliancemandatory This 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.

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

Matches content that has any url.

Parametersbooleanmatch true to match content with any url, false to match content with no url
Compliancemandatory This method must be implemented.
MethodclearURLTerms
Description

Clears the url terms.

Compliancemandatory This method must be implemented.
MethodgetAssetContentQueryRecord
Description

Gets the asset content query record corresponding to the given AssetContent record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypeassetContentRecordType an asset content record type
Returnosid.repository.records.AssetContentQueryRecord the asset content query record
ErrorsNULL_ARGUMENT assetContentRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(assetContentRecordType) is false
Compliancemandatory This method must be implemented.