Interface AssetStore
-
- All Superinterfaces:
org.opencastproject.storage.StorageUsage
- All Known Subinterfaces:
RemoteAssetStore
public interface AssetStore extends org.opencastproject.storage.StorageUsageVersioned 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 Modifier and Type Field Description static StringSTORE_TYPE_PROPERTY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(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.com.entwinemedia.fn.data.Opt<InputStream>get(StoragePath path)Get an input stream to a resource.StringgetStoreType()Returns the store.type propertyvoidput(StoragePath path, Source source)Add the content ofsoureunder the given path.
-
-
-
Field Detail
-
STORE_TYPE_PROPERTY
static final String STORE_TYPE_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
put
void put(StoragePath path, Source source) throws AssetStoreException
Add the content ofsoureunder the given path.- Throws:
AssetStoreException
-
copy
boolean copy(StoragePath from, StoragePath to) throws AssetStoreException
Copy a resource to a new location.- Returns:
- true, if the selected resource could be found and copied
- Throws:
AssetStoreException
-
get
com.entwinemedia.fn.data.Opt<InputStream> get(StoragePath path) throws AssetStoreException
Get an input stream to a resource.- Throws:
AssetStoreException
-
contains
boolean contains(StoragePath path) throws AssetStoreException
Check if a resource exists.- Throws:
AssetStoreException
-
delete
boolean delete(DeletionSelector sel) throws AssetStoreException
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
-
-