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.String
getComment()
Returns the comment.java.util.List<java.lang.String>
getDataspaceName()
DigitalAssetKey
getKey()
Returns the digital asset key.com.orchestranetworks.addon.dama.models.ModificationAction
getModificationAction()
Resource
getResource()
Returns the resource.java.lang.String
getVersionName()
Returns the version name.boolean
isCandidate()
boolean
isCurrentVersion()
Checks whether this is the current version.void
setCandidate(boolean candidate)
void
setComment(java.lang.String comment)
Specifies the comment.void
setCurrentVersion(boolean currentVersion)
Specifies whether the new version of the asset is the current version.void
setDataspaceName(java.util.List<java.lang.String> dataspaceName)
void
setModificationAction(com.orchestranetworks.addon.dama.models.ModificationAction modificationAction)
void
setVersionName(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:
isCurrentVersion
in interfaceGeneralDigitalAssetVersionSpec
-
setCurrentVersion
public void setCurrentVersion(boolean currentVersion)
Specifies whether the new version of the asset is the current version.- Specified by:
setCurrentVersion
in interfaceGeneralDigitalAssetVersionSpec
-
getVersionName
public java.lang.String getVersionName()
Returns the version name.- Specified by:
getVersionName
in interfaceGeneralDigitalAssetVersionSpec
-
setVersionName
public void setVersionName(java.lang.String versionName)
Specifies the version name.- Specified by:
setVersionName
in interfaceGeneralDigitalAssetVersionSpec
-
getComment
public java.lang.String getComment()
Returns the comment.- Specified by:
getComment
in interfaceGeneralDigitalAssetVersionSpec
-
setComment
public void setComment(java.lang.String comment)
Specifies the comment.- Specified by:
setComment
in interfaceGeneralDigitalAssetVersionSpec
-
getKey
public DigitalAssetKey getKey()
Returns the digital asset key.- Specified by:
getKey
in 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)
-
-