Class AssetPathUtils

java.lang.Object
org.opencastproject.assetmanager.util.AssetPathUtils

public final class AssetPathUtils extends Object
  • 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

      public static File getLocalFile(List<String> localPaths, String organizationId, URI uri)
      Splits up an asset manager URI and returns a local path instead.
      Parameters:
      localPaths - Potential paths to the local asset manager directory
      organizationId - Organization identifier
      uri - URI to the asset
      Returns:
      Local file