public final class DigitalAssetVersionSpec extends Object implements com.orchestranetworks.addon.dama.ext.bean.GeneralDigitalAssetVersionSpec
Constructor and Description |
---|
DigitalAssetVersionSpec(DigitalAssetKey assetKey,
Resource resource)
Specifies the new digital asset version's information.
|
Modifier and Type | Method and Description |
---|---|
String |
getComment()
Returns the comment.
|
List<String> |
getDataspaceName() |
DigitalAssetKey |
getKey()
Returns the digital asset key.
|
com.orchestranetworks.addon.dama.models.ModificationAction |
getModificationAction() |
Resource |
getResource()
Returns the resource.
|
String |
getVersionName()
Returns the version name.
|
boolean |
isCandidate() |
boolean |
isCurrentVersion()
Checks whether this is the current version.
|
void |
setCandidate(boolean candidate) |
void |
setComment(String comment)
Specifies the comment.
|
void |
setCurrentVersion(boolean currentVersion)
Specifies whether the new version of the asset is the current version.
|
void |
setDataspaceName(List<String> dataspaceName) |
void |
setModificationAction(com.orchestranetworks.addon.dama.models.ModificationAction modificationAction) |
void |
setVersionName(String versionName)
Specifies the version name.
|
public DigitalAssetVersionSpec(DigitalAssetKey assetKey, Resource resource)
assetKey
- the asset key that will be created for the new versionresource
- the resource to uploadpublic boolean isCurrentVersion()
isCurrentVersion
in interface com.orchestranetworks.addon.dama.ext.bean.GeneralDigitalAssetVersionSpec
public void setCurrentVersion(boolean currentVersion)
setCurrentVersion
in interface com.orchestranetworks.addon.dama.ext.bean.GeneralDigitalAssetVersionSpec
public String getVersionName()
getVersionName
in interface com.orchestranetworks.addon.dama.ext.bean.GeneralDigitalAssetVersionSpec
public void setVersionName(String versionName)
setVersionName
in interface com.orchestranetworks.addon.dama.ext.bean.GeneralDigitalAssetVersionSpec
public String getComment()
getComment
in interface com.orchestranetworks.addon.dama.ext.bean.GeneralDigitalAssetVersionSpec
public void setComment(String comment)
setComment
in interface com.orchestranetworks.addon.dama.ext.bean.GeneralDigitalAssetVersionSpec
public DigitalAssetKey getKey()
getKey
in interface com.orchestranetworks.addon.dama.ext.bean.GeneralDigitalAssetVersionSpec
public Resource getResource()
public boolean isCandidate()
public void setCandidate(boolean candidate)
public com.orchestranetworks.addon.dama.models.ModificationAction getModificationAction()
public void setModificationAction(com.orchestranetworks.addon.dama.models.ModificationAction modificationAction)