Interface IResourceAccessControl
-
- All Known Implementing Classes:
ListedResourceAccessControl
public interface IResourceAccessControlInterface for enforcing access control to a resource specified by a URI or URL.- Since:
- 7.0.10
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisAccessAllowed(URI uri)Checks whether the given URI may be accessed or whether access is forbidden.booleanisAccessAllowed(URL url)Checks whether the given URL may be accessed or whether access is forbidden.
-
-
-
Method Detail
-
isAccessAllowed
boolean isAccessAllowed(URI uri) throws ResourceAccessCheckException
Checks whether the given URI may be accessed or whether access is forbidden.- Parameters:
uri- URI to check.- Returns:
truewhen the URI may be accessed,falseotherwise.- 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
boolean isAccessAllowed(URL url) throws ResourceAccessCheckException
Checks whether the given URL may be accessed or whether access is forbidden.- Parameters:
url- URL to check.- Returns:
truewhen the URL may be accessed,falseotherwise.- 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.
-
-