Interface DriveManager
-
public interface DriveManagerDefines aDriveManagerto perform operations on digital assets.- Since:
- 1.6.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Foldercreate(FolderSpec folderSpec)Creates the newFolderfollowingFolderSpec.DigitalAssetcreate(GeneralDigitalAssetSpec assetSpec)Creates the newDigitalAssetfollowing theDigitalAssetSpecor theRemoteDigitalAssetSpec.DigitalAssetVersioncreate(GeneralDigitalAssetVersionSpec versionSpec)Creates the newDigitalAssetVersionfollowingDigitalAssetVersionSpecor theRemoteDigitalAssetVersionSpec.OperationExecutionStatusdelete(DigitalAssetKey key)Deletes a digital asset.OperationExecutionStatusdelete(DigitalAssetVersionKey key)Deletes a digital asset version.OperationExecutionStatusdelete(FolderKey key)Updates a digital asset version.OperationExecutionStatusdelete(java.util.List<DigitalAssetKey> keys)Deletes digital assets.DigitalAssetgetDigitalAsset(DigitalAssetKey key)Returns the digital asset by digital asset key.java.util.List<DigitalAsset>getDigitalAssets()Returns the active digital assets in the drive.MediaContentgetMediaContent(DigitalAsset asset)Gets the media content of a digital asset.MediaContentgetMediaContent(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.OperationExecutionStatusupdate(DigitalAsset asset)Updates a digital asset.OperationExecutionStatusupdate(DigitalAssetVersion version)Updates a digital asset version.OperationExecutionStatusupdate(com.orchestranetworks.addon.dama.ext.bean.ModifyFolderSpec modifyFolderSpec)Updates a folder.
-
-
-
Method Detail
-
create
DigitalAsset create(GeneralDigitalAssetSpec assetSpec) throws DAMException
Creates the newDigitalAssetfollowing theDigitalAssetSpecor 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 newDigitalAssetVersionfollowingDigitalAssetVersionSpecor 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 newFolderfollowingFolderSpec.- 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
-
-