public abstract class

AbstractPageTemplateAction

extends AbstractSpaceAction
java.lang.Object
   ↳ com.opensymphony.xwork.ActionSupport
     ↳ com.atlassian.confluence.core.ConfluenceActionSupport
       ↳ com.atlassian.confluence.spaces.actions.AbstractSpaceAction
         ↳ com.atlassian.confluence.pages.templates.actions.AbstractPageTemplateAction
Known Direct Subclasses
Known Indirect Subclasses

Summary

[Expand]
Inherited Constants
From class com.atlassian.confluence.core.ConfluenceActionSupport
From interface com.opensymphony.xwork.Action
Fields
protected String labelsString
protected PageTemplate originalPageTemplate
protected PageTemplate pageTemplate
protected long pageTemplateId
protected PageTemplateManager pageTemplateManager
[Expand]
Inherited Fields
From class com.atlassian.confluence.spaces.actions.AbstractSpaceAction
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
Public Constructors
AbstractPageTemplateAction()
Public Methods
String getLabelsString()
PageTemplate getPageTemplate()
PageTemplate getPageTemplateByName(String name)
long getPageTemplateId()
boolean isPermitted()
We should really be splitting up each of the template actions (create, edit, list) and getting them to implement SpaceAdministrative or Administrative to enforce space or global permissions.
void setLabelsString(String labelsString)
void setPageTemplateId(long pageTemplateId)
void setPageTemplateManager(PageTemplateManager pageTemplateManager)
void validate()
Ensure that the size of the labels associated with the template are less than the column size for storing them (255).
[Expand]
Inherited Methods
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.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

Fields

protected String labelsString

protected PageTemplate originalPageTemplate

protected PageTemplate pageTemplate

protected long pageTemplateId

protected PageTemplateManager pageTemplateManager

Public Constructors

public AbstractPageTemplateAction ()

Public Methods

public String getLabelsString ()

Returns
  • the label String that has been set on the action. If there is none then return the label String from the pageTemplate if one has been set.

public PageTemplate getPageTemplate ()

public PageTemplate getPageTemplateByName (String name)

public long getPageTemplateId ()

public boolean isPermitted ()

We should really be splitting up each of the template actions (create, edit, list) and getting them to implement SpaceAdministrative or Administrative to enforce space or global permissions.

We will determine the permission type required based on the type of template being served or modified If the template id does not exist (ie when we are browsing templates, use the space key to determine permissions

public void setLabelsString (String labelsString)

public void setPageTemplateId (long pageTemplateId)

public void setPageTemplateManager (PageTemplateManager pageTemplateManager)

public void validate ()

Ensure that the size of the labels associated with the template are less than the column size for storing them (255).