public class

EditSpacePermissionsAction

extends AbstractEditPermissionAction
implements Evented<T> EditPermissionsAware Spaced SpaceAdministrative SpaceAware
java.lang.Object
   ↳ com.opensymphony.xwork.ActionSupport
     ↳ com.atlassian.confluence.core.ConfluenceActionSupport
       ↳ com.atlassian.confluence.security.actions.AbstractPermissionsAction
         ↳ com.atlassian.confluence.security.actions.AbstractEditPermissionAction
           ↳ com.atlassian.confluence.security.actions.EditSpacePermissionsAction

Summary

[Expand]
Inherited Constants
From class com.atlassian.confluence.core.ConfluenceActionSupport
From interface com.opensymphony.xwork.Action
[Expand]
Inherited Fields
From class com.atlassian.confluence.security.actions.AbstractEditPermissionAction
From class com.atlassian.confluence.security.actions.AbstractPermissionsAction
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
Public Constructors
EditSpacePermissionsAction()
Public Methods
String doAddBrowseSpacePermission()
Space action specfic
String execute()
SpacePermissionsUpdateEvent getEventToPublish(String result)
Gets the event to publish.
String getGuardPermission()
Obtains the relevant guard permission for the action
String getKey()
Space getSpace()
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()
void populateAdministrator()
void setKey(String key)
void setSpace(Space space)
IOC method for setting the space on the action.
void setSpaceManager(SpaceManager spaceManager)
[Expand]
Inherited Methods
From class com.atlassian.confluence.security.actions.AbstractEditPermissionAction
From class com.atlassian.confluence.security.actions.AbstractPermissionsAction
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
From class java.lang.Object
From interface com.atlassian.confluence.event.Evented
From interface com.atlassian.confluence.pages.actions.beans.BootstrapAware
From interface com.atlassian.confluence.plugin.descriptor.web.WebInterface
From interface com.atlassian.confluence.security.actions.EditPermissionsAware
From interface com.atlassian.confluence.security.actions.PermissionsAware
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 EditSpacePermissionsAction ()

Public Methods

public String doAddBrowseSpacePermission ()

Space action specfic

public String execute ()

Throws
Exception

public SpacePermissionsUpdateEvent getEventToPublish (String result)

Gets the event to publish.

Parameters
result the result of the action executing.
Returns
  • the event. Can be null, in which case no event will be published.

public String getGuardPermission ()

Obtains the relevant guard permission for the action

Returns
  • the relevant guard permission for the action

public String getKey ()

public Space getSpace ()

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 ()

public void populateAdministrator ()

public void setKey (String key)

public void setSpace (Space space)

IOC method for setting the space on the action. This is called from the interceptor

Parameters
space the space that the action will be working on.

public void setSpaceManager (SpaceManager spaceManager)