public class

SpaceEditDecoratorAction

extends EditDecoratorAction
implements SpaceAware
java.lang.Object
   ↳ com.opensymphony.xwork.ActionSupport
     ↳ com.atlassian.confluence.core.ConfluenceActionSupport
       ↳ com.atlassian.confluence.spaces.actions.AbstractSpaceAction
         ↳ com.atlassian.confluence.admin.actions.lookandfeel.AbstractLookAndFeelAction
           ↳ com.atlassian.confluence.admin.actions.lookandfeel.AbstractDecoratorAction
             ↳ com.atlassian.confluence.admin.actions.lookandfeel.EditDecoratorAction
               ↳ com.atlassian.confluence.spaces.actions.SpaceEditDecoratorAction

Summary

[Expand]
Inherited Constants
From class com.atlassian.confluence.admin.actions.lookandfeel.AbstractDecoratorAction
From class com.atlassian.confluence.core.ConfluenceActionSupport
From interface com.opensymphony.xwork.Action
[Expand]
Inherited Fields
From class com.atlassian.confluence.admin.actions.lookandfeel.AbstractDecoratorAction
From class com.atlassian.confluence.admin.actions.lookandfeel.AbstractLookAndFeelAction
From class com.atlassian.confluence.spaces.actions.AbstractSpaceAction
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
Public Constructors
SpaceEditDecoratorAction()
Public Methods
boolean isPermitted()
boolean isSpaceRequired()
If the action requires that the space be set before being run, then it should return true to this method.
boolean isViewPermissionRequired()
Protected Methods
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.
[Expand]
Inherited Methods
From class com.atlassian.confluence.admin.actions.lookandfeel.EditDecoratorAction
From class com.atlassian.confluence.admin.actions.lookandfeel.AbstractDecoratorAction
From class com.atlassian.confluence.admin.actions.lookandfeel.AbstractLookAndFeelAction
From class com.atlassian.confluence.spaces.actions.AbstractSpaceAction
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
From class java.lang.Object
From interface com.atlassian.confluence.plugin.descriptor.web.WebInterface
From interface com.atlassian.confluence.spaces.Spaced
From interface com.atlassian.confluence.spaces.actions.SpaceAware
From interface com.opensymphony.xwork.Action
From interface com.opensymphony.xwork.LocaleProvider
From interface com.opensymphony.xwork.TextProvider
From interface com.opensymphony.xwork.Validateable
From interface com.opensymphony.xwork.ValidationAware

Public Constructors

public SpaceEditDecoratorAction ()

Public Methods

public boolean isPermitted ()

public boolean isSpaceRequired ()

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

Returns
  • true if the action requires a space in order to execute

public boolean isViewPermissionRequired ()

Protected Methods

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).
Returns
  • either read the global template (if global decorator configured), or the original default (if no global decorator configured).