DigitalAssetVersion
instead.public final class Version extends Object
Version
of the DigitalAsset
.Constructor and Description |
---|
Version(DigitalAssetVersionKey versionKey,
String versionName,
String comment,
String url)
Deprecated.
Instantiates the new
Version . |
Modifier and Type | Method and Description |
---|---|
String |
getComment()
Deprecated.
Returns the comment.
|
File |
getFile(File targetFolder,
Context context)
Deprecated.
Gets the physical file of the digital asset.
|
String |
getURL()
Deprecated.
Returns the URL.
|
DigitalAssetVersionKey |
getVersionKey()
Deprecated.
Returns the version key.
|
String |
getVersionName()
Deprecated.
Returns the version name.
|
void |
setComment(String comment)
Deprecated.
Specifies the comment.
|
void |
setURL(String url)
Deprecated.
Specifies the URL.
|
void |
setVersionName(String versionName)
Deprecated.
Specifies the version name.
|
public Version(DigitalAssetVersionKey versionKey, String versionName, String comment, String url)
Version
.versionKey
- the version key of digital asset versionversionName
- the version name of versioncomment
- the comment of versionurl
- the URL of the physical file of the digital asset versionpublic DigitalAssetVersionKey getVersionKey()
public String getVersionName()
public void setVersionName(String versionName)
public String getComment()
public void setComment(String comment)
public String getURL()
public void setURL(String url)
public File getFile(File targetFolder, Context context) throws DAMException
targetFolder
- the target folder you want to copy to. Note that this must be a folder, not a file.context
- the context of execution of operationDAMException
- error when getting file from target folder