Class DistributionPathUtils
java.lang.Object
org.opencastproject.assetmanager.util.DistributionPathUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDownloadPath(org.osgi.service.component.ComponentContext componentContext) Get the local mount point of the distribution files if it exists.static StringgetDownloadUrl(org.osgi.service.component.ComponentContext componentContext) Get the local mount point of the distribution files if it exists.static FilegetLocalFile(String localPath, String downloadUrl, String organizationId, URI uri) Splits up a distribution URI and returns a local path instead.
-
Method Details
-
getDownloadPath
Get the local mount point of the distribution files if it exists.- Parameters:
componentContext- The OSGI component context- Returns:
- Path to the local distribution directory if it exists
-
getDownloadUrl
Get the local mount point of the distribution files if it exists.- Parameters:
componentContext- The OSGI component context- Returns:
- Path to the local distribution directory if it exists
-
getLocalFile
public static File getLocalFile(String localPath, String downloadUrl, String organizationId, URI uri) Splits up a distribution URI and returns a local path instead.- Parameters:
localPath- Path to the local distribution directoryorganizationId- Organization identifieruri- URI to the asset- Returns:
- Local file
-