Class DigitalAssetVersionSpec
- java.lang.Object
-
- com.orchestranetworks.addon.dama.ext.bean.DigitalAssetVersionSpec
-
- All Implemented Interfaces:
GeneralDigitalAssetVersionSpec
public final class DigitalAssetVersionSpec extends java.lang.Object implements GeneralDigitalAssetVersionSpec
Defines the specification of the new digital asset version to upload.- Since:
- 1.6.0
-
-
Constructor Summary
Constructors Constructor Description DigitalAssetVersionSpec(DigitalAssetKey assetKey, Resource resource)Specifies the new digital asset version's information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetComment()Returns the comment.java.util.List<java.lang.String>getDataspaceName()DigitalAssetKeygetKey()Returns the digital asset key.com.orchestranetworks.addon.dama.models.ModificationActiongetModificationAction()ResourcegetResource()Returns the resource.java.lang.StringgetVersionName()Returns the version name.booleanisCandidate()booleanisCurrentVersion()Checks whether this is the current version.voidsetCandidate(boolean candidate)voidsetComment(java.lang.String comment)Specifies the comment.voidsetCurrentVersion(boolean currentVersion)Specifies whether the new version of the asset is the current version.voidsetDataspaceName(java.util.List<java.lang.String> dataspaceName)voidsetModificationAction(com.orchestranetworks.addon.dama.models.ModificationAction modificationAction)voidsetVersionName(java.lang.String versionName)Specifies the version name.
-
-
-
Constructor Detail
-
DigitalAssetVersionSpec
public DigitalAssetVersionSpec(DigitalAssetKey assetKey, Resource resource)
Specifies the new digital asset version's information.- Parameters:
assetKey- the asset key that will be created for the new versionresource- the resource to upload
-
-
Method Detail
-
isCurrentVersion
public boolean isCurrentVersion()
Checks whether this is the current version.- Specified by:
isCurrentVersionin interfaceGeneralDigitalAssetVersionSpec
-
setCurrentVersion
public void setCurrentVersion(boolean currentVersion)
Specifies whether the new version of the asset is the current version.- Specified by:
setCurrentVersionin interfaceGeneralDigitalAssetVersionSpec
-
getVersionName
public java.lang.String getVersionName()
Returns the version name.- Specified by:
getVersionNamein interfaceGeneralDigitalAssetVersionSpec
-
setVersionName
public void setVersionName(java.lang.String versionName)
Specifies the version name.- Specified by:
setVersionNamein interfaceGeneralDigitalAssetVersionSpec
-
getComment
public java.lang.String getComment()
Returns the comment.- Specified by:
getCommentin interfaceGeneralDigitalAssetVersionSpec
-
setComment
public void setComment(java.lang.String comment)
Specifies the comment.- Specified by:
setCommentin interfaceGeneralDigitalAssetVersionSpec
-
getKey
public DigitalAssetKey getKey()
Returns the digital asset key.- Specified by:
getKeyin interfaceGeneralDigitalAssetVersionSpec
-
getResource
public Resource getResource()
Returns the resource.
-
isCandidate
public boolean isCandidate()
-
setCandidate
public void setCandidate(boolean candidate)
-
getDataspaceName
public java.util.List<java.lang.String> getDataspaceName()
-
setDataspaceName
public void setDataspaceName(java.util.List<java.lang.String> dataspaceName)
-
getModificationAction
public com.orchestranetworks.addon.dama.models.ModificationAction getModificationAction()
-
setModificationAction
public void setModificationAction(com.orchestranetworks.addon.dama.models.ModificationAction modificationAction)
-
-