public class

ActionHelper

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.pages.actions.ActionHelper

Class Overview

TODO come up with decent name for this

Summary

Public Constructors
ActionHelper()
Public Methods
static boolean isSpaceAdmin(Space space, User remoteUser, SpacePermissionManager spacePermissionManager)
Protected Methods
static String extractPageTitle(String pageString)
To extract the PageName from a String like Spacekey:Pagename, the extractPageTitle Method can be used.
static String extractSpaceKey(String pageString)
This method extracts the SpaceKey from a String which should look like Spacekey:Pagename This method is used as a helper method to parse the String given by the PagePicker which is used by the parentPage form field as well as the moveAttachment.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ActionHelper ()

Public Methods

public static boolean isSpaceAdmin (Space space, User remoteUser, SpacePermissionManager spacePermissionManager)

Protected Methods

protected static String extractPageTitle (String pageString)

To extract the PageName from a String like Spacekey:Pagename, the extractPageTitle Method can be used.

Returns
  • The page name parsed from the input String

protected static String extractSpaceKey (String pageString)

This method extracts the SpaceKey from a String which should look like Spacekey:Pagename This method is used as a helper method to parse the String given by the PagePicker which is used by the parentPage form field as well as the moveAttachment.

Returns
  • The space name parsed from the input String if defined otherwise the function returns null