Class AssetManagerStaticFileAuthorization

java.lang.Object
org.opencastproject.assetmanager.auth.AssetManagerStaticFileAuthorization
All Implemented Interfaces:
StaticFileAuthorization

public class AssetManagerStaticFileAuthorization extends Object implements StaticFileAuthorization
A simple static file authorization service which allows access to a configured set of patterns.
  • Field Details

    • entityManagerFactory

      protected javax.persistence.EntityManagerFactory entityManagerFactory
  • Constructor Details

    • AssetManagerStaticFileAuthorization

      public AssetManagerStaticFileAuthorization()
  • Method Details

    • setEntityManagerFactory

      public void setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
    • activate

      public void activate(org.osgi.service.component.ComponentContext cc)
    • getProtectedUrlPattern

      public List<Pattern> getProtectedUrlPattern()
      Description copied from interface: StaticFileAuthorization
      Get the list of URL patterns the service is responsible for.
      Specified by:
      getProtectedUrlPattern in interface StaticFileAuthorization
      Returns:
      List of pattern matchers
    • verifyUrlAccess

      public boolean verifyUrlAccess(String path)
      Description copied from interface: StaticFileAuthorization
      Check a given path for access.
      Specified by:
      verifyUrlAccess in interface StaticFileAuthorization
      Parameters:
      path - Path to check
      Returns:
      if access is allowed