OSID Logo
OSID Specifications
repository package
Version 3.0.0
Release Candidate Preview
Interfaceosid.repository.AssetContentForm
Implementsosid.OsidObjectForm
osid.OsidSubjugateableForm
Description

This is the form for creating and updating content for AssetContent. Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the AssetAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetAccessibilityTypeMetadata
Description

Gets the metadata for an accessibility type.

Returnosid.Metadatametadata for the accessibility types
CompliancemandatoryThis method must be implemented.
MethodaddAccessibilityType
Description

Adds an accessibility type. Multiple types can be added.

Parametersosid.type.TypeaccessibilityTypea new accessibility type
ErrorsINVALID_ARGUMENT accessibilityType is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT accessibilityTYpe is null
CompliancemandatoryThis method must be implemented.
MethodremoveAccessibilityType
Description

Removes an accessibility type.

Parametersosid.type.TypeaccessibilityTypeaccessibility type to remove
ErrorsNO_ACCESS Metadata.isReadOnly() is true
NOT_FOUNDacessibility type not found
NULL_ARGUMENT accessibilityType is null
CompliancemandatoryThis method must be implemented.
MethodclearAccessibilityTypes
Description

Removes all accessibility types.

ErrorsNO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetDataMetadata
Description

Gets the metadata for the content data.

Returnosid.Metadatametadata for the content data
CompliancemandatoryThis method must be implemented.
MethodsetData
Description

Sets the content data.

Parametersosid.transport.DataInputStreamdatathe content data
ErrorsINVALID_ARGUMENT data is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT data is null
CompliancemandatoryThis method must be implemented.
MethodclearData
Description

Removes the content data.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetURLMetadata
Description

Gets the metadata for the url.

Returnosid.Metadatametadata for the url
CompliancemandatoryThis method must be implemented.
MethodsetURL
Description

Sets the url.

Parametersstringurlthe new copyright
ErrorsINVALID_ARGUMENT url is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT url is null
CompliancemandatoryThis method must be implemented.
MethodclearURL
Description

Removes the url.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetAssetContentFormRecord
Description

Gets the AssetContentFormRecord corresponding to the given asset content record Type.

Parametersosid.type.TypeassetContentRecordTypean asset content record type
Returnosid.repository.records.AssetContentFormRecordthe asset content form record
ErrorsNULL_ARGUMENT assetContentRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(assetContentRecordType) is false
CompliancemandatoryThis method must be implemented.