Class AssetManagerStaticFileAuthorization
java.lang.Object
org.opencastproject.assetmanager.auth.AssetManagerStaticFileAuthorization
- All Implemented Interfaces:
StaticFileAuthorization
A simple static file authorization service which allows access to a configured set of patterns.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.persistence.EntityManagerFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) Get the list of URL patterns the service is responsible for.voidsetEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory) booleanverifyUrlAccess(String path) Check a given path for access.
-
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
Description copied from interface:StaticFileAuthorizationGet the list of URL patterns the service is responsible for.- Specified by:
getProtectedUrlPatternin interfaceStaticFileAuthorization- Returns:
- List of pattern matchers
-
verifyUrlAccess
Description copied from interface:StaticFileAuthorizationCheck a given path for access.- Specified by:
verifyUrlAccessin interfaceStaticFileAuthorization- Parameters:
path- Path to check- Returns:
- if access is allowed
-