Class StorageManager
java.lang.Object
com.orchestranetworks.addon.dama.ext.StorageManager
Defines the
StorageManager
to perform actions on physical files based on the drive type.- Since:
- 1.6.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
delete
(ResourceIdentifier target) Deletes the resource.abstract boolean
doesObjectExist
(DigitalAsset asset) abstract List<com.orchestranetworks.addon.dama.ext.bean.DigitalAssetInformation>
getAllDigitalAssetInformation
(String driveId) abstract ResourceIdentifierFactory
Returns the resource identifier factory.abstract MediaContent
getMediaContent
(DigitalAsset asset) Returns the media content of a digital asset.abstract MediaContent
getMediaContent
(DigitalAssetVersion version) Returns the media content of a version.abstract ResourceIdentifier
upload
(Resource resource, ResourceIdentifier target) Uploads a resource to a target source.
-
Constructor Details
-
StorageManager
public StorageManager()
-
-
Method Details
-
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
Deletes the resource.- Parameters:
target
- the target- Returns:
- true, if successful
- Throws:
DAMException
-
getMediaContent
Returns the media content of a digital asset.- Throws:
DAMException
-
getMediaContent
Returns the media content of a version.- Throws:
DAMException
-
getIdentifierFactory
Returns the resource identifier factory.- Throws:
DAMException
-
doesObjectExist
- Throws:
DAMException
-
getAllDigitalAssetInformation
public abstract List<com.orchestranetworks.addon.dama.ext.bean.DigitalAssetInformation> getAllDigitalAssetInformation(String driveId) throws DAMException - Throws:
DAMException
-