Class AssetPathUtils
java.lang.Object
org.opencastproject.assetmanager.util.AssetPathUtils
-
Method Summary
Modifier and TypeMethodDescriptiongetAssetManagerPath(org.osgi.service.component.ComponentContext componentContext) Get the local mount point of the asset manager if it exists.static FilegetLocalFile(List<String> localPaths, String organizationId, URI uri) Splits up an asset manager URI and returns a local path instead.
-
Method Details
-
getAssetManagerPath
public static List<String> getAssetManagerPath(org.osgi.service.component.ComponentContext componentContext) Get the local mount point of the asset manager if it exists.- Parameters:
componentContext- The OSGI component context- Returns:
- Path to the local asset manager directory if it exists
-
getLocalFile
Splits up an asset manager URI and returns a local path instead.- Parameters:
localPaths- Potential paths to the local asset manager directoryorganizationId- Organization identifieruri- URI to the asset- Returns:
- Local file
-