Class IsSitemapRestrictedAction

All Implemented Interfaces:
Component, LogEnabled, Serviceable, ThreadSafe, Action

Tests if a given sitemap has some access restrictions.
  • If the sitemap is not restricted, returns EMPTY_MAP. The resource can be cached.
  • If the sitemap is restricted and the current user is allowed, return null. The resource can be served but can't be cached.
  • If the sitemap is restricted but the current user is not allowed, an AccessDeniedException is thrown.
  • If the sitemap is restricted but no one is logged in, an AuthorizationRequiredException is thrown.