Interface IResourceAccessControl
- All Known Implementing Classes:
ListedResourceAccessControl
public interface IResourceAccessControl
Interface for enforcing access control to a resource specified by a URI or URL.
- Since:
- 7.0.10
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isAccessAllowed
(URI uri) Checks whether the given URI may be accessed or whether access is forbidden.boolean
isAccessAllowed
(URL url) Checks whether the given URL may be accessed or whether access is forbidden.
-
Method Details
-
isAccessAllowed
Checks whether the given URI may be accessed or whether access is forbidden.- Parameters:
uri
- URI to check.- Returns:
true
when the URI may be accessed,false
otherwise.- Throws:
ResourceAccessCheckException
- When the URI could not be checked. The exact behavior when an exception is thrown depends on the logic that uses this interface.
-
isAccessAllowed
Checks whether the given URL may be accessed or whether access is forbidden.- Parameters:
url
- URL to check.- Returns:
true
when the URL may be accessed,false
otherwise.- Throws:
ResourceAccessCheckException
- When the URL could not be checked. The exact behavior when an exception is thrown depends on the logic that uses this interface.
-