Class ViewPageAttachmentsAction

java.lang.Object
org.apache.struts2.ActionSupport
All Implemented Interfaces:
BootstrapAware, PageAware, TinyUrlAware, WebInterface, CaptchaAware, ContentDetailAction, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.Validateable

public class ViewPageAttachmentsAction extends AbstractViewAttachmentsAction implements PageAware, CaptchaAware, TinyUrlAware, ContentDetailAction
See Also:
  • Constructor Details

    • ViewPageAttachmentsAction

      public ViewPageAttachmentsAction()
  • Method Details

    • isPermitted

      public boolean isPermitted()
      Description copied from class: ConfluenceActionSupport
      Overrides:
      isPermitted in class ConfluenceActionSupport
    • getLatestVersionsOfAttachments

      public List<Attachment> getLatestVersionsOfAttachments()
      Overrides:
      getLatestVersionsOfAttachments in class AbstractViewAttachmentsAction
    • getContentEntityObject

      public ContentEntityObject getContentEntityObject()
      Specified by:
      getContentEntityObject in class AbstractViewAttachmentsAction
    • getPage

      public AbstractPage getPage()
      Specified by:
      getPage in interface PageAware
      Returns:
      page the page that the action worked on
    • setPage

      public void setPage(AbstractPage page)
      Description copied from interface: PageAware
      IOC method for setting the page on the action. This is called from the interceptor
      Specified by:
      setPage in interface PageAware
      Parameters:
      page - the page that the action will be working on.
    • isPageRequired

      public boolean isPageRequired()
      Description copied from interface: PageAware
      If the action requires that the page be set before being run, then it should return true to this method. If the action requires a page, but no page is available, then the interceptor will automatically redirect to the 'pagenotfound' result
      Specified by:
      isPageRequired in interface PageAware
      Returns:
      true if the action requires a page in order to execute
    • isLatestVersionRequired

      public boolean isLatestVersionRequired()
      Description copied from interface: PageAware
      If the action can only work on the most recent version of a page, this will cause the interceptor to silently replace the version that it looks up with the most recent version, if necessary.
      Specified by:
      isLatestVersionRequired in interface PageAware
      Returns:
      true if the action requires the most recent version of a page
    • isViewPermissionRequired

      public boolean isViewPermissionRequired()
      Specified by:
      isViewPermissionRequired in interface PageAware
      Returns:
      true if the action requires a check on the view page level permissions on this page
    • getPageId

      public String getPageId()
    • setPageId

      public void setPageId(String pageId)
    • getStartIndex

      public int getStartIndex()
    • setStartIndex

      public void setStartIndex(int startIndex)
    • getPaginationSupport

      public PaginationSupport getPaginationSupport()
    • getWebInterfaceContext

      public WebInterfaceContext getWebInterfaceContext(WebInterfaceContext context, Attachment attachment)
    • getCaptchaManager

      public CaptchaManager getCaptchaManager()
    • setCaptchaManager

      public void setCaptchaManager(CaptchaManager captchaManager)
    • getSpace

      public Space getSpace()
    • getTinyUrl

      public String getTinyUrl()
      Specified by:
      getTinyUrl in interface TinyUrlAware
    • getSpaceKey

      public String getSpaceKey()