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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionabstract booleandelete(ResourceIdentifier target) Deletes the resource.abstract booleandoesObjectExist(DigitalAsset asset) abstract List<com.orchestranetworks.addon.dama.ext.bean.DigitalAssetInformation>getAllDigitalAssetInformation(String driveId) abstract ResourceIdentifierFactoryReturns 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. 
- 
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
 
 -