Class DistributionPathUtils

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

public final class DistributionPathUtils extends Object
  • Method Details

    • getDownloadPath

      public static String getDownloadPath(org.osgi.service.component.ComponentContext componentContext)
      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

      public static String getDownloadUrl(org.osgi.service.component.ComponentContext componentContext)
      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 directory
      organizationId - Organization identifier
      uri - URI to the asset
      Returns:
      Local file