Interface DriveManager
-
public interface DriveManager
Defines aDriveManager
to perform operations on digital assets.- Since:
- 1.6.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Folder
create(FolderSpec folderSpec)
Creates the newFolder
followingFolderSpec
.DigitalAsset
create(GeneralDigitalAssetSpec assetSpec)
Creates the newDigitalAsset
following theDigitalAssetSpec
or theRemoteDigitalAssetSpec
.DigitalAssetVersion
create(GeneralDigitalAssetVersionSpec versionSpec)
Creates the newDigitalAssetVersion
followingDigitalAssetVersionSpec
or theRemoteDigitalAssetVersionSpec
.OperationExecutionStatus
delete(DigitalAssetKey key)
Deletes a digital asset.OperationExecutionStatus
delete(DigitalAssetVersionKey key)
Deletes a digital asset version.OperationExecutionStatus
delete(FolderKey key)
Updates a digital asset version.OperationExecutionStatus
delete(java.util.List<DigitalAssetKey> keys)
Deletes digital assets.DigitalAsset
getDigitalAsset(DigitalAssetKey key)
Returns the digital asset by digital asset key.java.util.List<DigitalAsset>
getDigitalAssets()
Returns the active digital assets in the drive.MediaContent
getMediaContent(DigitalAsset asset)
Gets the media content of a digital asset.MediaContent
getMediaContent(DigitalAssetVersion version)
Gets the media content of a version.java.util.List<DigitalAsset>
search(SearchFilter searchFilter)
Searches for a digital asset using a search filter.OperationExecutionStatus
update(DigitalAsset asset)
Updates a digital asset.OperationExecutionStatus
update(DigitalAssetVersion version)
Updates a digital asset version.OperationExecutionStatus
update(com.orchestranetworks.addon.dama.ext.bean.ModifyFolderSpec modifyFolderSpec)
Updates a folder.
-
-
-
Method Detail
-
create
DigitalAsset create(GeneralDigitalAssetSpec assetSpec) throws DAMException
Creates the newDigitalAsset
following theDigitalAssetSpec
or theRemoteDigitalAssetSpec
.- Parameters:
assetSpec
- the specification of the new digital asset- Returns:
- the digital asset
- Throws:
DAMException
-
create
DigitalAssetVersion create(GeneralDigitalAssetVersionSpec versionSpec) throws DAMException
Creates the newDigitalAssetVersion
followingDigitalAssetVersionSpec
or theRemoteDigitalAssetVersionSpec
.- Parameters:
versionSpec
- the specification of the new digital asset version- Returns:
- the digital asset version
- Throws:
DAMException
-
delete
OperationExecutionStatus delete(DigitalAssetKey key)
Deletes a digital asset.- Parameters:
key
- the digital asset key- Returns:
- the operation execution status
-
delete
OperationExecutionStatus delete(java.util.List<DigitalAssetKey> keys)
Deletes digital assets.- Parameters:
keys
- the list of digital asset key- Returns:
- the operation execution status
-
delete
OperationExecutionStatus delete(DigitalAssetVersionKey key)
Deletes a digital asset version.- Parameters:
key
- the digital asset version key- Returns:
- the operation execution status
-
update
OperationExecutionStatus update(DigitalAsset asset)
Updates a digital asset.- Parameters:
asset
- the asset- Returns:
- the operation execution status
-
update
OperationExecutionStatus update(DigitalAssetVersion version)
Updates a digital asset version.- Parameters:
version
- the version- Returns:
- the operation execution status
-
search
java.util.List<DigitalAsset> search(SearchFilter searchFilter) throws DAMException
Searches for a digital asset using a search filter.- Parameters:
searchFilter
- the search filter- Returns:
- the list of digital assets
- Throws:
DAMException
-
getDigitalAssets
java.util.List<DigitalAsset> getDigitalAssets() throws DAMException
Returns the active digital assets in the drive.- Throws:
DAMException
-
getDigitalAsset
DigitalAsset getDigitalAsset(DigitalAssetKey key) throws DAMException
Returns the digital asset by digital asset key.- Parameters:
key
- the key- Returns:
- the digital asset
- Throws:
DAMException
-
getMediaContent
MediaContent getMediaContent(DigitalAsset asset) throws DAMException
Gets the media content of a digital asset.- Parameters:
asset
- the digital asset- Returns:
- the media content
- Throws:
DAMException
-
getMediaContent
MediaContent getMediaContent(DigitalAssetVersion version) throws DAMException
Gets the media content of a version.- Parameters:
version
- the digital asset version- Returns:
- the media content
- Throws:
DAMException
-
create
Folder create(FolderSpec folderSpec) throws DAMException
Creates the newFolder
followingFolderSpec
.- Parameters:
folderSpec
- the specification of the new digital asset version- Returns:
- the Folder
- Throws:
DAMException
- Since:
- 6.1.1
-
update
OperationExecutionStatus update(com.orchestranetworks.addon.dama.ext.bean.ModifyFolderSpec modifyFolderSpec)
Updates a folder.- Parameters:
modifyFolderSpec
- the folder- Returns:
- the operation execution status
- Since:
- 6.1.1
-
delete
OperationExecutionStatus delete(FolderKey key)
Updates a digital asset version.- Parameters:
key
- of Folder- Returns:
- the operation execution status
- Since:
- 6.1.1
-
-