Interface AssetForm
- All Superinterfaces:
Extensible, Identifiable, OsidAggregateableForm, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidSourceableForm, Suppliable
- All Known Subinterfaces:
AssetBatchForm
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the composition link.voidRemoves the copyright.voidRemoves the copyright registration.voidRemoves the created date.voidRemoves the distribution rights.voidRemoves the distribution rights.voidRemoves the distribution rights.voidRemoves the principal credit text.voidRemoves the provider chain.voidRemoves the public domain status.voidRemoves the published status.voidRemoves the puiblished date.voidRemoves the source.voidRemoves the title.getAssetFormRecord(Type assetRecordType) Gets theAssetFormRecordcorresponding to the givenAssetrecordType.Gets the metadata for linking this asset to a composition.Gets the metadata for the copyright.Gets the metadata for the copyright registration.Gets the metadata for the asset creation date.Gets the metadata for the distribute alterations rights flag.Gets the metadata for the distribute compositions rights flag.Gets the metadata for the distribute verbatim rights flag.Gets the metadata for the principal credit display text.Gets the metadata for the provider chain.Gets the metadata for the public domain flag.Gets the metadata for the published date.Gets the metadata for the published status.Gets the metadata for the source.Gets the metadata for an asset title.voidsetComposition(Id compositionId) Sets the composition.voidsetCopyright(String copyright) Sets the copyright.voidsetCopyrightRegistration(String registration) Sets the copyright registration.voidsetCreatedDate(DateTime createdDate) Sets the created date.voidsetDistributeAlterations(boolean distributeMods) Sets the distribute alterations flag.voidsetDistributeCompositions(boolean distributeComps) Sets the distribution rights.voidsetDistributeVerbatim(boolean distributeVerbatim) Sets the distribution rights.voidsetPrincipalCreditString(String credits) Sets the principal credits display text.voidsetProviderLinks(Id[] resourceIds) Sets a provider chain in order from the most recent source to the originating source.voidsetPublicDomain(boolean publicDomain) Sets the public domain flag.voidsetPublished(boolean published) Sets the published status.voidsetPublishedDate(DateTime publishedDate) Sets the published date.voidSets the source.voidSets the title.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidExtensibleForm
getRequiredRecordTypesModifier and TypeMethodDescriptionGets the minimum required record types for successful submission of thisOsidForm.Methods inherited from interface OsidForm
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocaleModifier and TypeMethodDescriptionGets a default locale for the form.Metadata[]Gets a list of metadata for the elements in this form which are not valid.Gets the metadata for the comment corresponding to this form submission.Gets the locales available for this form.Gets text messages corresponding to additional instructions to pass form validation.booleanTests if this form is for an update operation.booleanisValid()Tests if this form is in a valid state for submission.voidsetJournalComment(String comment) Sets a comment.voidSpecifies a language and script type for the form.Methods inherited from interface OsidObjectForm
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypeModifier and TypeMethodDescriptionvoidClears the description.voidClears the display name.voidClears the genus type.Gets the metadata for a description.Gets the metadata for a display name.Gets the metadata for a genus type.voidsetDescription(String description) Sets a description.voidsetDisplayName(String displayName) Sets a display name.voidsetGenusType(Type genusType) Sets a genus.Methods inherited from interface OsidSourceableForm
clearBranding, clearLicense, clearProvider, getBrandingMetadata, getLicenseMetadata, getProviderMetadata, setBranding, setLicense, setProviderModifier and TypeMethodDescriptionvoidRemoves the branding.voidRemoves the license.voidRemoves the provider.Gets the metadata for the asset branding.Gets the metadata for the license.Gets the metadata for a provider.voidsetBranding(Id[] assetIds) Sets the branding.voidsetLicense(String license) Sets the license.voidsetProvider(Id providerId) Sets a provider.
-
Method Details
-
getTitleMetadata
Metadata getTitleMetadata()Gets the metadata for an asset title.- Returns:
- metadata for the title
- Compliance:
mandatory- This method must be implemented.
-
setTitle
Sets the title.- Parameters:
title- the new title- Throws:
InvalidArgumentException-titleis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-titleisnull- Compliance:
mandatory- This method must be implemented.
-
clearTitle
void clearTitle()Removes the title.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getPublicDomainMetadata
Metadata getPublicDomainMetadata()Gets the metadata for the public domain flag.- Returns:
- metadata for the public domain
- Compliance:
mandatory- This method must be implemented.
-
setPublicDomain
void setPublicDomain(boolean publicDomain) Sets the public domain flag.- Parameters:
publicDomain- the public domain status- Throws:
NoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearPublicDomain
void clearPublicDomain()Removes the public domain status.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCopyrightMetadata
Metadata getCopyrightMetadata()Gets the metadata for the copyright.- Returns:
- metadata for the copyright
- Compliance:
mandatory- This method must be implemented.
-
setCopyright
Sets the copyright.- Parameters:
copyright- the new copyright- Throws:
InvalidArgumentException-copyrightis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-copyrightisnull- Compliance:
mandatory- This method must be implemented.
-
clearCopyright
void clearCopyright()Removes the copyright.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCopyrightRegistrationMetadata
Metadata getCopyrightRegistrationMetadata()Gets the metadata for the copyright registration.- Returns:
- metadata for the copyright registration
- Compliance:
mandatory- This method must be implemented.
-
setCopyrightRegistration
Sets the copyright registration.- Parameters:
registration- the new copyright registration- Throws:
InvalidArgumentException-copyrightis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-copyrightisnull- Compliance:
mandatory- This method must be implemented.
-
clearCopyrightRegistration
void clearCopyrightRegistration()Removes the copyright registration.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getDistributeVerbatimMetadata
Metadata getDistributeVerbatimMetadata()Gets the metadata for the distribute verbatim rights flag.- Returns:
- metadata for the distribution rights fields
- Compliance:
mandatory- This method must be implemented.
-
setDistributeVerbatim
void setDistributeVerbatim(boolean distributeVerbatim) Sets the distribution rights.- Parameters:
distributeVerbatim- right to distribute verbatim copies- Throws:
InvalidArgumentException-distributeVerbatimis invalidNoAccessException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
clearDistributeVerbatim
void clearDistributeVerbatim()Removes the distribution rights.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getDistributeAlterationsMetadata
Metadata getDistributeAlterationsMetadata()Gets the metadata for the distribute alterations rights flag.- Returns:
- metadata for the distribution rights fields
- Compliance:
mandatory- This method must be implemented.
-
setDistributeAlterations
void setDistributeAlterations(boolean distributeMods) Sets the distribute alterations flag. This also sets distribute verbatim totrue.- Parameters:
distributeMods- right to distribute modifications- Throws:
InvalidArgumentException-distributeModsis invalidNoAccessException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
clearDistributeAlterations
void clearDistributeAlterations()Removes the distribution rights.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getDistributeCompositionsMetadata
Metadata getDistributeCompositionsMetadata()Gets the metadata for the distribute compositions rights flag.- Returns:
- metadata for the distribution rights fields
- Compliance:
mandatory- This method must be implemented.
-
setDistributeCompositions
void setDistributeCompositions(boolean distributeComps) Sets the distribution rights. This sets distribute verbatim totrue.- Parameters:
distributeComps- right to distribute modifications- Throws:
InvalidArgumentException-distributeCompsis invalidNoAccessException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
clearDistributeCompositions
void clearDistributeCompositions()Removes the distribution rights.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getSourceMetadata
Metadata getSourceMetadata()Gets the metadata for the source.- Returns:
- metadata for the source
- Compliance:
mandatory- This method must be implemented.
-
setSource
Sets the source.- Parameters:
sourceId- the new publisher- Throws:
InvalidArgumentException-sourceIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-sourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearSource
void clearSource()Removes the source.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getProviderLinksMetadata
Metadata getProviderLinksMetadata()Gets the metadata for the provider chain.- Returns:
- metadata for the provider chain
- Compliance:
mandatory- This method must be implemented.
-
setProviderLinks
Sets a provider chain in order from the most recent source to the originating source.- Parameters:
resourceIds- the new source- Throws:
InvalidArgumentException-resourceIdsis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-resourceIdsisnull- Compliance:
mandatory- This method must be implemented.
-
clearProviderLinks
void clearProviderLinks()Removes the provider chain.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCreatedDateMetadata
Metadata getCreatedDateMetadata()Gets the metadata for the asset creation date.- Returns:
- metadata for the created date
- Compliance:
mandatory- This method must be implemented.
-
setCreatedDate
Sets the created date.- Parameters:
createdDate- the new created date- Throws:
InvalidArgumentException-createdDateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-createdDateisnull- Compliance:
mandatory- This method must be implemented.
-
clearCreatedDate
void clearCreatedDate()Removes the created date.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getPublishedMetadata
Metadata getPublishedMetadata()Gets the metadata for the published status.- Returns:
- metadata for the published field
- Compliance:
mandatory- This method must be implemented.
-
setPublished
void setPublished(boolean published) Sets the published status.- Parameters:
published- the published status- Throws:
NoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearPublished
void clearPublished()Removes the published status.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getPublishedDateMetadata
Metadata getPublishedDateMetadata()Gets the metadata for the published date.- Returns:
- metadata for the published date
- Compliance:
mandatory- This method must be implemented.
-
setPublishedDate
Sets the published date.- Parameters:
publishedDate- the new published date- Throws:
InvalidArgumentException-publishedDateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-publishedDateisnull- Compliance:
mandatory- This method must be implemented.
-
clearPublishedDate
void clearPublishedDate()Removes the puiblished date.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getPrincipalCreditStringMetadata
Metadata getPrincipalCreditStringMetadata()Gets the metadata for the principal credit display text.- Returns:
- metadata for the credits
- Compliance:
mandatory- This method must be implemented.
-
setPrincipalCreditString
Sets the principal credits display text.- Parameters:
credits- the new credits- Throws:
InvalidArgumentException-creditsis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-creditsisnull- Compliance:
mandatory- This method must be implemented.
-
clearPrincipalCreditString
void clearPrincipalCreditString()Removes the principal credit text.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCompositionMetadata
Metadata getCompositionMetadata()Gets the metadata for linking this asset to a composition.- Returns:
- metadata for the composition
- Compliance:
mandatory- This method must be implemented.
-
setComposition
Sets the composition.- Parameters:
compositionId- a composition- Throws:
InvalidArgumentException-compositionIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-compositionIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearComposition
void clearComposition()Removes the composition link.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getAssetFormRecord
Gets theAssetFormRecordcorresponding to the givenAssetrecordType.- Parameters:
assetRecordType- an asset record type- Returns:
- the asset form record
- Throws:
NullArgumentException-assetRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(assetRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-