Class GetPageAttachmentAction

All Implemented Interfaces:
Component, LogEnabled, Serviceable, Action

Get the page attachment uri from the id of a resource. Tests if the current asked resource exists and it is an resource of a page.
  • If the resource does not exist, an ResourceNotFoundException is thrown.
  • If the resource is not an resource of a page, an AccessDeniedException is thrown.
  • If the resource exists and is a page's attachment, redirect to the page attachment uri.