Class AbstractPageAction

All Implemented Interfaces:
PageAware, TinyUrlAware, WebInterface, MessageHolderAware, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.locale.LocaleProvider, org.apache.struts2.text.TextProvider, org.apache.struts2.Validateable
Direct Known Subclasses:
AbstractPreviewPageAction, RevertPageBackToVersionAction, ViewPageAction

public abstract class AbstractPageAction extends AbstractPageAwareAction implements TinyUrlAware
See Also:
  • Field Details

  • Constructor Details

    • AbstractPageAction

      public AbstractPageAction()
  • Method Details

    • getPostingDay

      @Deprecated public String getPostingDay()
      Deprecated.
      Date paths for blogs are deprecated. The method exists for backward compatibility only and should not be used in the new code.
    • displayDatePath

      @Deprecated public boolean displayDatePath()
      Deprecated.
      Date paths for blogs are deprecated. The method exists for backward compatibility only and should not be used in the new code.
    • validate

      public void validate()
      Specified by:
      validate in interface MessageHolderAware
      Specified by:
      validate in interface org.apache.struts2.Validateable
      Overrides:
      validate in class org.apache.struts2.ActionSupport
    • getBlogPost

      public BlogPost getBlogPost()
    • setPageManager

      public void setPageManager(PageManager pageManager)
    • setLinkManager

      public void setLinkManager(LinkManager linkManager)
    • getIncomingLinks

      public List<OutgoingLink> getIncomingLinks()
      returns list of "unique" incoming links to this page. TODO remove this from AbstractPageAction and only use on relevant actions
    • getPermissionTypes

      protected List<String> getPermissionTypes()
      Overrides:
      getPermissionTypes in class ConfluenceActionSupport
      See Also:
    • getPostingDateAsDate

      public Date getPostingDateAsDate()
    • setPostingDate

      public void setPostingDate(String date)
    • getPostingTimeAsTime

      public LocalTime getPostingTimeAsTime()
    • setPostingTime

      public void setPostingTime(String time)
    • getNextPost

      public BlogPost getNextPost()
    • getPreviousPost

      public BlogPost getPreviousPost()
    • getTinyUrl

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

      protected boolean isSpaceAdmin()
    • isSuperUser

      @Deprecated public boolean isSuperUser()
      Deprecated.
      since 3.5 this method is not called anywhere and should not be used
      See Also:
      • invalid reference
        com.atlassian.confluence.security.PermissionManager#hasPermission(User, Permission, Object)
    • isUserWatchingOwnContent

      public boolean isUserWatchingOwnContent()
    • getAvailableSpaces

      public List<Space> getAvailableSpaces()
    • getPreviousVersion

      public AbstractPage getPreviousVersion(int version)
    • getBeanKey

      protected Object getBeanKey()
    • getHelper

      public ThemeHelper getHelper()
      Overrides:
      getHelper in class ConfluenceActionSupport
    • getPermittedChildren

      public List<Page> getPermittedChildren()
    • hasPermittedChildren

      public boolean hasPermittedChildren()
    • hasAttachFilePermissions

      public boolean hasAttachFilePermissions()
    • setConfluenceWysiwygConverter

      public void setConfluenceWysiwygConverter(ConfluenceWysiwygConverter wysiwygConverter)
    • getMode

      public String getMode()
    • getSuggestedLabels

      public List getSuggestedLabels()
    • setMode

      public void setMode(String mode)
    • getSpaceManager

      public SpaceManager getSpaceManager()
    • getEditorVersion

      public String getEditorVersion()
    • setEditorManager

      public void setEditorManager(EditorManager editorManager)
    • getWebInterfaceContext

      public WebInterfaceContext getWebInterfaceContext()
      Description copied from interface: WebInterface
      Returns a context which can be passed to web items when rendering them.

      Typically, Struts actions will implement this to provide extra details in the context such as content objects, and so on.

      Specified by:
      getWebInterfaceContext in interface WebInterface
      Overrides:
      getWebInterfaceContext in class ConfluenceActionSupport
    • getNumberOfAttachmentsAsString

      protected String getNumberOfAttachmentsAsString()
    • getLabels

      protected List<Label> getLabels()
    • getNumberOfLabelsAsString

      protected String getNumberOfLabelsAsString()
    • getAttachmentSourceContent

      public ContentEntityObject getAttachmentSourceContent()
      Returns the ConfluenceEntityObject that contains attachments relevant to the current action. E.g.:
    • setViewRenderer

      public void setViewRenderer(Renderer viewRenderer)