Class StorageManager
- java.lang.Object
-
- com.orchestranetworks.addon.dama.ext.StorageManager
-
public abstract class StorageManager extends java.lang.ObjectDefines theStorageManagerto perform actions on physical files based on the drive type.- Since:
- 1.6.0
-
-
Constructor Summary
Constructors Constructor Description StorageManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract booleandelete(ResourceIdentifier target)Deletes the resource.abstract booleandoesObjectExist(DigitalAsset asset)abstract java.util.List<com.orchestranetworks.addon.dama.ext.bean.DigitalAssetInformation>getAllDigitalAssetInformation(java.lang.String driveId)abstract ResourceIdentifierFactorygetIdentifierFactory()Returns the resource identifier factory.abstract MediaContentgetMediaContent(DigitalAsset asset)Returns the media content of a digital asset.abstract MediaContentgetMediaContent(DigitalAssetVersion version)Returns the media content of a version.abstract ResourceIdentifierupload(Resource resource, ResourceIdentifier target)Uploads a resource to a target source.
-
-
-
Method Detail
-
upload
public abstract ResourceIdentifier upload(Resource resource, ResourceIdentifier target) throws DAMException
Uploads a resource to a target source.- Parameters:
resource- the resourcetarget- the target- Returns:
- the resource identifier
- Throws:
DAMException
-
delete
public abstract boolean delete(ResourceIdentifier target) throws DAMException
Deletes the resource.- Parameters:
target- the target- Returns:
- true, if successful
- Throws:
DAMException
-
getMediaContent
public abstract MediaContent getMediaContent(DigitalAsset asset) throws DAMException
Returns the media content of a digital asset.- Throws:
DAMException
-
getMediaContent
public abstract MediaContent getMediaContent(DigitalAssetVersion version) throws DAMException
Returns the media content of a version.- Throws:
DAMException
-
getIdentifierFactory
public abstract ResourceIdentifierFactory getIdentifierFactory() throws DAMException
Returns the resource identifier factory.- Throws:
DAMException
-
doesObjectExist
public abstract boolean doesObjectExist(DigitalAsset asset) throws DAMException
- Throws:
DAMException
-
getAllDigitalAssetInformation
public abstract java.util.List<com.orchestranetworks.addon.dama.ext.bean.DigitalAssetInformation> getAllDigitalAssetInformation(java.lang.String driveId) throws DAMException- Throws:
DAMException
-
-