public interface AssetForm extends OsidObjectForm, OsidAggregateableForm, OsidSourceableForm
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.
Modifier and Type | Method and Description |
---|---|
void |
clearComposition()
Removes the composition link.
|
void |
clearCopyright()
Removes the copyright.
|
void |
clearCopyrightRegistration()
Removes the copyright registration.
|
void |
clearCreatedDate()
Removes the created date.
|
void |
clearDistributeAlterations()
Removes the distribution rights.
|
void |
clearDistributeCompositions()
Removes the distribution rights.
|
void |
clearDistributeVerbatim()
Removes the distribution rights.
|
void |
clearPrincipalCreditString()
Removes the principal credit string.
|
void |
clearProviderLinks()
Removes the provider chain.
|
void |
clearPublicDomain()
Removes the public domain status.
|
void |
clearPublished()
Removes the published status.
|
void |
clearPublishedDate()
Removes the puiblished date.
|
void |
clearSource()
Removes the source.
|
void |
clearTitle()
Removes the title.
|
AssetFormRecord |
getAssetFormRecord(Type assetRecordType)
Gets the
AssetFormRecord corresponding to the given
Asset record Type. |
Metadata |
getCompositionMetadata()
Gets the metadata for linking this asset to a composition.
|
Metadata |
getCopyrightMetadata()
Gets the metadata for the copyright.
|
Metadata |
getCopyrightRegistrationMetadata()
Gets the metadata for the copyright registration.
|
Metadata |
getCreatedDateMetadata()
Gets the metadata for the asset creation date.
|
Metadata |
getDistributeAlterationsMetadata()
Gets the metadata for the distribute alterations rights flag.
|
Metadata |
getDistributeCompositionsMetadata()
Gets the metadata for the distribute compositions rights flag.
|
Metadata |
getDistributeVerbatimMetadata()
Gets the metadata for the distribute verbatim rights flag.
|
Metadata |
getPrincipalCreditStringMetadata()
Gets the metadata for the principal credit string.
|
Metadata |
getProviderLinksMetadata()
Gets the metadata for the provider chain.
|
Metadata |
getPublicDomainMetadata()
Gets the metadata for the public domain flag.
|
Metadata |
getPublishedDateMetadata()
Gets the metadata for the published date.
|
Metadata |
getPublishedMetadata()
Gets the metadata for the published status.
|
Metadata |
getSourceMetadata()
Gets the metadata for the source.
|
Metadata |
getTitleMetadata()
Gets the metadata for an asset title.
|
void |
setComposition(Id compositionId)
Sets the composition.
|
void |
setCopyright(java.lang.String copyright)
Sets the copyright.
|
void |
setCopyrightRegistration(java.lang.String registration)
Sets the copyright registration.
|
void |
setCreatedDate(DateTime createdDate)
Sets the created date.
|
void |
setDistributeAlterations(boolean distributeMods)
Sets the distribute alterations flag.
|
void |
setDistributeCompositions(boolean distributeComps)
Sets the distribution rights.
|
void |
setDistributeVerbatim(boolean distributeVerbatim)
Sets the distribution rights.
|
void |
setPrincipalCreditString(java.lang.String creditString)
Sets the principal credit string.
|
void |
setProviderLinks(Id[] resourceIds)
Sets a provider chain in order from the most recent source to the
originating source.
|
void |
setPublicDomain(boolean publicDomain)
Sets the public domain flag.
|
void |
setPublished(boolean published)
Sets the published status.
|
void |
setPublishedDate(DateTime publishedDate)
Sets the published date.
|
void |
setSource(Id sourceId)
Sets the source.
|
void |
setTitle(java.lang.String title)
Sets the title.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
clearBranding, clearLicense, clearProvider, getBrandingMetadata, getLicenseMetadata, getProviderMetadata, setBranding, setLicense, setProvider
Metadata getTitleMetadata()
mandatory
- This method must be implemented. void setTitle(java.lang.String title)
title
- the new titleInvalidArgumentException
- title
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- title
is
null
mandatory
- This method must be implemented. void clearTitle()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getPublicDomainMetadata()
mandatory
- This method must be implemented. void setPublicDomain(boolean publicDomain)
publicDomain
- the public domain statusNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearPublicDomain()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getCopyrightMetadata()
mandatory
- This method must be implemented. void setCopyright(java.lang.String copyright)
copyright
- the new copyrightInvalidArgumentException
- copyright
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- copyright
is
null
mandatory
- This method must be implemented. void clearCopyright()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getCopyrightRegistrationMetadata()
mandatory
- This method must be implemented. void setCopyrightRegistration(java.lang.String registration)
registration
- the new copyright registrationInvalidArgumentException
- copyright
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- copyright
is
null
mandatory
- This method must be implemented. void clearCopyrightRegistration()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getDistributeVerbatimMetadata()
mandatory
- This method must be implemented. void setDistributeVerbatim(boolean distributeVerbatim)
distributeVerbatim
- right to distribute verbatim copiesInvalidArgumentException
- distributeVerbatim
is invalidNoAccessException
- authorization failuremandatory
- This method must be implemented. void clearDistributeVerbatim()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getDistributeAlterationsMetadata()
mandatory
- This method must be implemented. void setDistributeAlterations(boolean distributeMods)
true.
distributeMods
- right to distribute modificationsInvalidArgumentException
- distributeMods
is invalidNoAccessException
- authorization failuremandatory
- This method must be implemented. void clearDistributeAlterations()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getDistributeCompositionsMetadata()
mandatory
- This method must be implemented. void setDistributeCompositions(boolean distributeComps)
true.
distributeComps
- right to distribute modificationsInvalidArgumentException
- distributeComps
is invalidNoAccessException
- authorization failuremandatory
- This method must be implemented. void clearDistributeCompositions()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getSourceMetadata()
mandatory
- This method must be implemented. void setSource(Id sourceId)
sourceId
- the new publisherInvalidArgumentException
- sourceId
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- sourceId
is
null
mandatory
- This method must be implemented. void clearSource()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getProviderLinksMetadata()
mandatory
- This method must be implemented. void setProviderLinks(Id[] resourceIds)
resourceIds
- the new sourceInvalidArgumentException
- resourceIds
is invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- resourceIds
is
null
mandatory
- This method must be implemented. void clearProviderLinks()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getCreatedDateMetadata()
mandatory
- This method must be implemented. void setCreatedDate(DateTime createdDate)
createdDate
- the new created dateInvalidArgumentException
- createdDate
is invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- createdDate
is
null
mandatory
- This method must be implemented. void clearCreatedDate()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getPublishedMetadata()
mandatory
- This method must be implemented. void setPublished(boolean published)
published
- the published statusNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearPublished()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getPublishedDateMetadata()
mandatory
- This method must be implemented. void setPublishedDate(DateTime publishedDate)
publishedDate
- the new published dateInvalidArgumentException
- publishedDate
is invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- publishedDate
is
null
mandatory
- This method must be implemented. void clearPublishedDate()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getPrincipalCreditStringMetadata()
mandatory
- This method must be implemented. void setPrincipalCreditString(java.lang.String creditString)
creditString
- the new credit stringInvalidArgumentException
- creditString
is invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- creditString
is
null
mandatory
- This method must be implemented. void clearPrincipalCreditString()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getCompositionMetadata()
mandatory
- This method must be implemented. void setComposition(Id compositionId)
compositionId
- a compositionInvalidArgumentException
- compositionId
is invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- compositionId
is
null
mandatory
- This method must be implemented. void clearComposition()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. AssetFormRecord getAssetFormRecord(Type assetRecordType) throws OperationFailedException
AssetFormRecord
corresponding to the given
Asset
record Type.
assetRecordType
- an asset record typeNullArgumentException
- assetRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(assetRecordType)
is false
mandatory
- This method must be implemented.