public final class DigitalAssetVersionSpec extends Object implements 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 GeneralDigitalAssetVersionSpec
public void setCurrentVersion(boolean currentVersion)
setCurrentVersion
in interface GeneralDigitalAssetVersionSpec
public String getVersionName()
getVersionName
in interface GeneralDigitalAssetVersionSpec
public void setVersionName(String versionName)
setVersionName
in interface GeneralDigitalAssetVersionSpec
public String getComment()
getComment
in interface GeneralDigitalAssetVersionSpec
public void setComment(String comment)
setComment
in interface GeneralDigitalAssetVersionSpec
public DigitalAssetKey getKey()
getKey
in interface 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)