Interface AssetStore
- All Superinterfaces:
StorageUsage
- All Known Subinterfaces:
RemoteAssetStore
- All Known Implementing Classes:
AbstractFileSystemAssetStore,AwsAbstractArchive,AwsS3AssetStore,OsgiFileSystemAssetStore
Versioned storage for binary resources.
The ElementStore is designed to be as simple as possible, so that it must not have any additional logic or persistent storage of metadata.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(StoragePath path) Check if a resource exists.booleancopy(StoragePath from, StoragePath to) Copy a resource to a new location.booleandelete(DeletionSelector sel) Delete all selected resources.get(StoragePath path) Get an input stream to a resource.Returns the store.type propertyvoidput(StoragePath path, Source source) Add the content ofsoureunder the given path.Methods inherited from interface org.opencastproject.storage.StorageUsage
getTotalSpace, getUsableSpace, getUsedSpace
-
Field Details
-
STORE_TYPE_PROPERTY
- See Also:
-
-
Method Details
-
put
Add the content ofsoureunder the given path.- Throws:
AssetStoreException
-
copy
Copy a resource to a new location.- Returns:
- true, if the selected resource could be found and copied
- Throws:
AssetStoreException
-
get
Get an input stream to a resource.- Throws:
AssetStoreException
-
contains
Check if a resource exists.- Throws:
AssetStoreException
-
delete
Delete all selected resources.- Returns:
- true, if the selected resources could be found and deleted
- Throws:
AssetStoreException
-
getStoreType
String getStoreType()Returns the store.type property- Returns:
- store type
-