OSID Logo
OSID Specifications
repository package
Version 3.0.0
Release Candidate Preview
Interfaceosid.repository.AssetForm
Implementsosid.OsidObjectForm
osid.OsidAggregateableForm
osid.OsidSourceableForm
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.Metadatametadata for the title
CompliancemandatoryThis method must be implemented.
MethodsetTitle
Description

Sets the title.

Parametersstringtitlethe new title
ErrorsINVALID_ARGUMENT title is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT title is null
CompliancemandatoryThis method must be implemented.
MethodclearTitle
Description

Removes the title.

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

Gets the metadata for the public domain flag.

Returnosid.Metadatametadata for the public domain
CompliancemandatoryThis method must be implemented.
MethodsetPublicDomain
Description

Sets the public domain flag.

ParametersbooleanpublicDomainthe public domain status
ErrorsNO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearPublicDomain
Description

Removes the public domain status.

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

Gets the metadata for the copyright.

Returnosid.Metadatametadata for the copyright
CompliancemandatoryThis method must be implemented.
MethodsetCopyright
Description

Sets the copyright.

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

Removes the copyright.

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

Gets the metadata for the copyright registration.

Returnosid.Metadatametadata for the copyright registration
CompliancemandatoryThis method must be implemented.
MethodsetCopyrightRegistration
Description

Sets the copyright registration.

Parametersstringregistrationthe new copyright registration
ErrorsINVALID_ARGUMENT copyright is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT copyright is null
CompliancemandatoryThis method must be implemented.
MethodclearCopyrightRegistration
Description

Removes the copyright registration.

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

Gets the metadata for the distribute verbatim rights flag.

Returnosid.Metadatametadata for the distribution rights fields
CompliancemandatoryThis method must be implemented.
MethodsetDistributeVerbatim
Description

Sets the distribution rights.

ParametersbooleandistributeVerbatimright to distribute verbatim copies
ErrorsINVALID_ARGUMENT distributeVerbatim is invalid
NO_ACCESSauthorization failure
CompliancemandatoryThis method must be implemented.
MethodclearDistributeVerbatim
Description

Removes the distribution rights.

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

Gets the metadata for the distribute alterations rights flag.

Returnosid.Metadatametadata for the distribution rights fields
CompliancemandatoryThis method must be implemented.
MethodsetDistributeAlterations
Description

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

ParametersbooleandistributeModsright to distribute modifications
ErrorsINVALID_ARGUMENT distributeMods is invalid
NO_ACCESSauthorization failure
CompliancemandatoryThis method must be implemented.
MethodclearDistributeAlterations
Description

Removes the distribution rights.

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

Gets the metadata for the distribute compositions rights flag.

Returnosid.Metadatametadata for the distribution rights fields
CompliancemandatoryThis method must be implemented.
MethodsetDistributeCompositions
Description

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

ParametersbooleandistributeCompsright to distribute modifications
ErrorsINVALID_ARGUMENT distributeComps is invalid
NO_ACCESSauthorization failure
CompliancemandatoryThis method must be implemented.
MethodclearDistributeCompositions
Description

Removes the distribution rights.

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

Gets the metadata for the source.

Returnosid.Metadatametadata for the source
CompliancemandatoryThis method must be implemented.
MethodsetSource
Description

Sets the source.

Parametersosid.id.IdsourceIdthe new publisher
ErrorsINVALID_ARGUMENT sourceId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT sourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearSource
Description

Removes the source.

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

Gets the metadata for the provider chain.

Returnosid.Metadatametadata for the provider chain
CompliancemandatoryThis method must be implemented.
MethodsetProviderLinks
Description

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

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

Removes the provider chain.

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

Gets the metadata for the asset creation date.

Returnosid.Metadatametadata for the created date
CompliancemandatoryThis method must be implemented.
MethodsetCreatedDate
Description

Sets the created date.

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

Removes the created date.

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

Gets the metadata for the published status.

Returnosid.Metadatametadata for the published field
CompliancemandatoryThis method must be implemented.
MethodsetPublished
Description

Sets the published status.

Parametersbooleanpublishedthe published status
ErrorsNO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearPublished
Description

Removes the published status.

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

Gets the metadata for the published date.

Returnosid.Metadatametadata for the published date
CompliancemandatoryThis method must be implemented.
MethodsetPublishedDate
Description

Sets the published date.

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

Removes the puiblished date.

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

Gets the metadata for the principal credit string.

Returnosid.Metadatametadata for the credit string
CompliancemandatoryThis method must be implemented.
MethodsetPrincipalCreditString
Description

Sets the principal credit string.

ParametersstringcreditStringthe new credit string
ErrorsINVALID_ARGUMENT creditString is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT creditString is null
CompliancemandatoryThis method must be implemented.
MethodclearPrincipalCreditString
Description

Removes the principal credit string.

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

Gets the metadata for linking this asset to a composition.

Returnosid.Metadatametadata for the composition
CompliancemandatoryThis method must be implemented.
MethodsetComposition
Description

Sets the composition.

Parametersosid.id.IdcompositionIda composition
ErrorsINVALID_ARGUMENT compositionId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT compositionId is null
CompliancemandatoryThis method must be implemented.
MethodclearComposition
Description

Removes the composition link.

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

Gets the AssetFormRecord corresponding to the given Asset record Type.

Parametersosid.type.TypeassetRecordTypean asset record type
Returnosid.repository.records.AssetFormRecordthe asset form record
ErrorsNULL_ARGUMENT assetRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(assetRecordType) is false
CompliancemandatoryThis method must be implemented.