Class SpaceEditDecoratorAction

All Implemented Interfaces:
LookAndFeel, WebInterface, SpaceAdministrative, SpaceAware, Spaced, 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 SpaceEditDecoratorAction extends EditDecoratorAction implements SpaceAware
See Also:
  • Constructor Details

    • SpaceEditDecoratorAction

      public SpaceEditDecoratorAction()
  • Method Details

    • readDefaultTemplate

      protected String readDefaultTemplate()
      We override the super.readDefaultTemplate() here because we want to read _any_ template we can find with this name, not just the 'default' off disk.

      This means we will either read the global template (if global decorator configured), or the original default (if no global decorator configured).

      Overrides:
      readDefaultTemplate in class AbstractDecoratorAction
      Returns:
      either read the global template (if global decorator configured), or the original default (if no global decorator configured).
    • isPermitted

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

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

      public boolean isViewPermissionRequired()
      Specified by:
      isViewPermissionRequired in interface SpaceAware
      Returns:
      true if the action requires view space permission