OSID Logo
OSID Specifications
repository package
Version 3.0.0
Release Candidate Preview
Interfaceosid.repository.AssetContent
Implementsosid.OsidObject
osid.Subjugateable
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, accessibility requirements or application evnironment.

MethodgetAssetId
Description

Gets the Asset Id corresponding to this content.

Returnosid.id.Idthe asset Id
CompliancemandatoryThis method must be implemented.
MethodgetAsset
Description

Gets the Asset corresponding to this content.

Returnosid.repository.Assetthe asset
CompliancemandatoryThis method must be implemented.
MethodgetAccessibilityTypes
Description

Gets the accessibility types associated with this content.

Returnosid.type.TypeListlist of content accessibility types
CompliancemandatoryThis 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.
CompliancemandatoryThis method must be implemented.
MethodgetDataLength
Description

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

Returncardinalthe length of the data stream
ErrorsILLEGAL_STATE hasDataLength() is false
CompliancemandatoryThis method must be implemented.
MethodgetData
Description

Gets the asset content data.

Returnosid.transport.DataInputStreamthe length of the content data
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodhasURL
Description

Tests if a URL is associated with this content.

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

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

Returnstringthe url for this data
ErrorsILLEGAL_STATE hasURL() is false
CompliancemandatoryThis 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.TypeassetContentContentRecordTypethe type of the record to retrieve
Returnosid.repository.records.AssetContentRecordthe asset content record
ErrorsNULL_ARGUMENT assetContentRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(assetContentRecordType) is false
CompliancemandatoryThis method must be implemented.