OSID Logo
OSID Specifications
repository package
Version 3.1.0
Interfaceosid.repository.AssetForm
Implementsosid.OsidObjectForm
osid.OsidAggregateableForm
osid.OsidSourceableForm
Implemented Byosid.repository.batch.AssetBatchForm
Used Byosid.repository.AssetAdminSession
Description

This is the form for creating and updating Assets. 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.

MethodgetTitleMetadata
Description

Gets the metadata for an asset title.

Returnosid.Metadata metadata for the title
Compliancemandatory This method must be implemented.
MethodsetTitle
Description

Sets the title.

Parametersstringtitle the new title
ErrorsINVALID_ARGUMENT title is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT title is null
Compliancemandatory This method must be implemented.
MethodclearTitle
Description

Removes the title.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetPublicDomainMetadata
Description

Gets the metadata for the public domain flag.

Returnosid.Metadata metadata for the public domain
Compliancemandatory This method must be implemented.
MethodsetPublicDomain
Description

Sets the public domain flag.

ParametersbooleanpublicDomain the public domain status
ErrorsNO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearPublicDomain
Description

Removes the public domain status.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetCopyrightMetadata
Description

Gets the metadata for the copyright.

Returnosid.Metadata metadata for the copyright
Compliancemandatory This method must be implemented.
MethodsetCopyright
Description

Sets the copyright.

Parametersstringcopyright the new copyright
ErrorsINVALID_ARGUMENT copyright is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT copyright is null
Compliancemandatory This method must be implemented.
MethodclearCopyright
Description

Removes the copyright.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetCopyrightRegistrationMetadata
Description

Gets the metadata for the copyright registration.

Returnosid.Metadata metadata for the copyright registration
Compliancemandatory This method must be implemented.
MethodsetCopyrightRegistration
Description

Sets the copyright registration.

Parametersstringregistration the new copyright registration
ErrorsINVALID_ARGUMENT copyright is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT copyright is null
Compliancemandatory This method must be implemented.
MethodclearCopyrightRegistration
Description

Removes the copyright registration.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetDistributeVerbatimMetadata
Description

Gets the metadata for the distribute verbatim rights flag.

Returnosid.Metadata metadata for the distribution rights fields
Compliancemandatory This method must be implemented.
MethodsetDistributeVerbatim
Description

Sets the distribution rights.

ParametersbooleandistributeVerbatim right to distribute verbatim copies
ErrorsINVALID_ARGUMENT distributeVerbatim is invalid
NO_ACCESS authorization failure
Compliancemandatory This method must be implemented.
MethodclearDistributeVerbatim
Description

Removes the distribution rights.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetDistributeAlterationsMetadata
Description

Gets the metadata for the distribute alterations rights flag.

Returnosid.Metadata metadata for the distribution rights fields
Compliancemandatory This method must be implemented.
MethodsetDistributeAlterations
Description

Sets the distribute alterations flag. This also sets distribute verbatim to true.

ParametersbooleandistributeMods right to distribute modifications
ErrorsINVALID_ARGUMENT distributeMods is invalid
NO_ACCESS authorization failure
Compliancemandatory This method must be implemented.
MethodclearDistributeAlterations
Description

Removes the distribution rights.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetDistributeCompositionsMetadata
Description

Gets the metadata for the distribute compositions rights flag.

Returnosid.Metadata metadata for the distribution rights fields
Compliancemandatory This method must be implemented.
MethodsetDistributeCompositions
Description

Sets the distribution rights. This sets distribute verbatim to true.

ParametersbooleandistributeComps right to distribute modifications
ErrorsINVALID_ARGUMENT distributeComps is invalid
NO_ACCESS authorization failure
Compliancemandatory This method must be implemented.
MethodclearDistributeCompositions
Description

Removes the distribution rights.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetSourceMetadata
Description

Gets the metadata for the source.

Returnosid.Metadata metadata for the source
Compliancemandatory This method must be implemented.
MethodsetSource
Description

Sets the source.

Parametersosid.id.IdsourceId the new publisher
ErrorsINVALID_ARGUMENT sourceId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT sourceId is null
Compliancemandatory This method must be implemented.
MethodclearSource
Description

Removes the source.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetProviderLinksMetadata
Description

Gets the metadata for the provider chain.

Returnosid.Metadata metadata for the provider chain
Compliancemandatory This method must be implemented.
MethodsetProviderLinks
Description

Sets a provider chain in order from the most recent source to the originating source.

Parametersosid.id.Id[]resourceIds the new source
ErrorsINVALID_ARGUMENT resourceIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT resourceIds is null
Compliancemandatory This method must be implemented.
MethodclearProviderLinks
Description

Removes the provider chain.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetCreatedDateMetadata
Description

Gets the metadata for the asset creation date.

Returnosid.Metadata metadata for the created date
Compliancemandatory This method must be implemented.
MethodsetCreatedDate
Description

Sets the created date.

Parametersosid.calendaring.DateTimecreatedDate the new created date
ErrorsINVALID_ARGUMENT createdDate is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT createdDate is null
Compliancemandatory This method must be implemented.
MethodclearCreatedDate
Description

Removes the created date.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetPublishedMetadata
Description

Gets the metadata for the published status.

Returnosid.Metadata metadata for the published field
Compliancemandatory This method must be implemented.
MethodsetPublished
Description

Sets the published status.

Parametersbooleanpublished the published status
ErrorsNO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearPublished
Description

Removes the published status.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetPublishedDateMetadata
Description

Gets the metadata for the published date.

Returnosid.Metadata metadata for the published date
Compliancemandatory This method must be implemented.
MethodsetPublishedDate
Description

Sets the published date.

Parametersosid.calendaring.DateTimepublishedDate the new published date
ErrorsINVALID_ARGUMENT publishedDate is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT publishedDate is null
Compliancemandatory This method must be implemented.
MethodclearPublishedDate
Description

Removes the puiblished date.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetPrincipalCreditStringMetadata
Description

Gets the metadata for the principal credit display text.

Returnosid.Metadata metadata for the credits
Compliancemandatory This method must be implemented.
MethodsetPrincipalCreditString
Description

Sets the principal credits display text.

Parametersstringcredits the new credits
ErrorsINVALID_ARGUMENT credits is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT credits is null
Compliancemandatory This method must be implemented.
MethodclearPrincipalCreditString
Description

Removes the principal credit text.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetCompositionMetadata
Description

Gets the metadata for linking this asset to a composition.

Returnosid.Metadata metadata for the composition
Compliancemandatory This method must be implemented.
MethodsetComposition
Description

Sets the composition.

Parametersosid.id.IdcompositionId a composition
ErrorsINVALID_ARGUMENT compositionId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT compositionId is null
Compliancemandatory This method must be implemented.
MethodclearComposition
Description

Removes the composition link.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetAssetFormRecord
Description

Gets the AssetFormRecord corresponding to the given Asset record Type.

Parametersosid.type.TypeassetRecordType an asset record type
Returnosid.repository.records.AssetFormRecord the asset form record
ErrorsNULL_ARGUMENT assetRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(assetRecordType) is false
Compliancemandatory This method must be implemented.