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 Type
    Method
    Description
    boolean
    Checks whether the given URI may be accessed or whether access is forbidden.
    boolean
    Checks whether the given URL may be accessed or whether access is forbidden.
  • Method Details

    • 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:
      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

      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:
      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.