Class CheckReadAccessAction

All Implemented Interfaces:
Component, LogEnabled, Serviceable, Action
Direct Known Subclasses:
CheckPageReadAccessAction, CheckReadAccessAction

Test if the accessed object is not restricted, i.e. an anonymous user has READ access or if the connected user has READ access on it.
  • If the object is not restricted, returns EMPTY_MAP.
  • If the object is restricted and the current user is allowed, return null.
  • If the object is restricted but the current user is not allowed, an AccessDeniedException is thrown.
  • If the object is restricted but no one is logged in, an AuthorizationRequiredException is thrown.