Class AbstractFileSystemAssetStore
java.lang.Object
org.opencastproject.assetmanager.storage.impl.fs.AbstractFileSystemAssetStore
- All Implemented Interfaces:
AssetStore,StorageUsage
- Direct Known Subclasses:
OsgiFileSystemAssetStore
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe store type e.g. filesystem (short-term), aws (long-term), other implementationsFields inherited from interface org.opencastproject.assetmanager.api.storage.AssetStore
STORE_TYPE_PROPERTY -
Constructor Summary
Constructors -
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.protected abstract Stringprotected abstract StringgetRootDirectory(String orgId, String mpId) Returns the store.type propertyprotected abstract Workspaceprotected voidCreate this directory and all of its parents.protected abstract voidonDeleteMediaPackage(String orgId, String mpId) Optional further handling of the complete deletion of mediapackage from the local store.voidput(StoragePath storagePath, Source source) Add the content ofsoureunder the given path.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencastproject.storage.StorageUsage
getTotalSpace, getUsableSpace, getUsedSpace
-
Field Details
-
storeType
The store type e.g. filesystem (short-term), aws (long-term), other implementations
-
-
Constructor Details
-
AbstractFileSystemAssetStore
public AbstractFileSystemAssetStore()
-
-
Method Details
-
getWorkspace
-
getRootDirectory
-
getRootDirectory
-
onDeleteMediaPackage
Optional further handling of the complete deletion of mediapackage from the local store. This method will be called after the deletion of the mediapackage directory.- Parameters:
orgId- Organization IDmpId- Mediapackage ID
-
put
Description copied from interface:AssetStoreAdd the content ofsoureunder the given path.- Specified by:
putin interfaceAssetStore- Throws:
AssetStoreException
-
copy
Description copied from interface:AssetStoreCopy a resource to a new location.- Specified by:
copyin interfaceAssetStore- Returns:
- true, if the selected resource could be found and copied
- Throws:
AssetStoreException
-
get
Description copied from interface:AssetStoreGet an input stream to a resource.- Specified by:
getin interfaceAssetStore- Throws:
AssetStoreException
-
contains
Description copied from interface:AssetStoreCheck if a resource exists.- Specified by:
containsin interfaceAssetStore- Throws:
AssetStoreException
-
delete
Description copied from interface:AssetStoreDelete all selected resources.- Specified by:
deletein interfaceAssetStore- Returns:
- true, if the selected resources could be found and deleted
- Throws:
AssetStoreException
-
mkDirs
Create this directory and all of its parents. -
getStoreType
Description copied from interface:AssetStoreReturns the store.type property- Specified by:
getStoreTypein interfaceAssetStore- Returns:
- store type
-