OSID Logo
OSID Specifications
repository package
Version 3.1.0
Interfaceosid.repository.AssetContent
Implementsosid.OsidObject
osid.Subjugateable
Used Byosid.repository.AssetAdminSession
osid.repository.AssetContentAdminSession
osid.repository.AssetContentList
osid.repository.AssetContentLookupSession
Description

AssetContent represents a version of content represented by an Asset. Although AssetContent is a separate OsidObject with its own Id to distuinguish it from other content inside an Asset, AssetContent can only be accessed through an Asset.

Once an Asset is selected, multiple contents should be negotiated using the size, fidelity requirements, or application evnironment.

MethodgetAssetId
Description

Gets the Asset Id corresponding to this content.

Returnosid.id.Id the asset Id
Compliancemandatory This method must be implemented.
MethodgetAsset
Description

Gets the Asset corresponding to this content.

Returnosid.repository.Asset the asset
Compliancemandatory This method must be implemented.
MethodhasDataLength
Description

Tests if a data length is available.

Returnboolean true if a length is available for this content, false otherwise.
Compliancemandatory This method must be implemented.
MethodgetDataLength
Description

Gets the length of the data represented by this content in bytes.

Returncardinal the length of the data stream
ErrorsILLEGAL_STATE hasDataLength() is false
Compliancemandatory This method must be implemented.
MethodgetData
Description

Gets the asset content data.

Returnosid.transport.DataInputStream the length of the content data
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodhasURL
Description

Tests if a URL is associated with this content.

Returnboolean true if a URL is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetURL
Description

Gets the URL associated with this content for web-based retrieval.

Returnstring the url for this data
ErrorsILLEGAL_STATE hasURL() is false
Compliancemandatory This method must be implemented.
MethodgetAssetContentRecord
Description

Gets the asset content record corresponding to the given AssetContent record Type. This method is used to retrieve an object implementing the requested record. The assetRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(assetRecordType) is true.

Parametersosid.type.TypeassetContentContentRecordType the type of the record to retrieve
Returnosid.repository.records.AssetContentRecord the asset content record
ErrorsNULL_ARGUMENT assetContentRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(assetContentRecordType) is false
Compliancemandatory This method must be implemented.