com.atlassian.confluence.pages.actions
Class ActionHelper

java.lang.Object
  extended by com.atlassian.confluence.pages.actions.ActionHelper

public class ActionHelper
extends java.lang.Object

TODO come up with decent name for this


Constructor Summary
ActionHelper()
           
 
Method Summary
protected static java.lang.String extractPageTitle(java.lang.String pageString)
          To extract the PageName from a String like Spacekey:Pagename, the extractPageTitle Method can be used.
protected static java.lang.String extractSpaceKey(java.lang.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.
static boolean isSpaceAdmin(Space space, com.atlassian.user.User remoteUser, SpacePermissionManager spacePermissionManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionHelper

public ActionHelper()
Method Detail

extractSpaceKey

protected static java.lang.String extractSpaceKey(java.lang.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.

Parameters:
pageString -
Returns:
The space name parsed from the input String if defined otherwise the function returns null

extractPageTitle

protected static java.lang.String extractPageTitle(java.lang.String pageString)
To extract the PageName from a String like Spacekey:Pagename, the extractPageTitle Method can be used.

Parameters:
pageString -
Returns:
The page name parsed from the input String

isSpaceAdmin

public static boolean isSpaceAdmin(Space space,
                                   com.atlassian.user.User remoteUser,
                                   SpacePermissionManager spacePermissionManager)


Copyright © 2003-2010 Atlassian. All Rights Reserved.