com.atlassian.confluence.core.actions
Class StylesheetAction

java.lang.Object
  extended bycom.opensymphony.xwork.ActionSupport
      extended bycom.atlassian.confluence.core.ConfluenceActionSupport
          extended bycom.atlassian.confluence.core.actions.StylesheetAction
All Implemented Interfaces:
com.opensymphony.xwork.Action, LastModifiedAware, com.opensymphony.xwork.LocaleProvider, Serializable, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware

public class StylesheetAction
extends ConfluenceActionSupport
implements LastModifiedAware

Action to display the customised stylesheet for the site.

Both spellings. Muahaha.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, log, permissionManager, permitted, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
StylesheetAction()
          Default constructor for WebWork
StylesheetAction(ColourScheme colourScheme)
          If we want to construct it without executing it in a web context
 
Method Summary
 String execute()
           
 String executeForWysiwyg()
           
 String getBorderColor()
           
 String getBorderColour()
           
 String getBreadcrumbsTextColour()
           
 String getCustomColor1()
           
 String getCustomColor2()
           
 String getCustomColor3()
           
 String getCustomColor4()
           
 String getCustomColor5()
           
 Editor getEditor()
           
 String getHeadingTextColor()
           
 String getHeadingTextColour()
           
 LastModifiedHandler getLastModifiedHandler()
           
static LastModifiedHandler getLastModifiedHandlerForSpace(String spaceKey)
           
 String getLinkColor()
           
 String getLinkColour()
           
 String getNavBackgroundColor()
           
 String getNavBackgroundColour()
           
 String getNavSelectedBackgroundColor()
           
 String getNavSelectedBackgroundColour()
           
 String getNavSelectedTextColor()
           
 String getNavSelectedTextColour()
           
 String getNavTextColor()
           
 String getNavTextColour()
           
 String getSpaceKey()
           
 String getSpaceNameColor()
           
 String getSpaceNameColour()
           
 String getStylesheetLocation()
           
 String getTopBarColor()
           
 String getTopBarColour()
           
 boolean isForWysiwyg()
           
 boolean isPermitted()
           
 boolean isUserAgentIE()
           
static String renderDefaultStylesheet()
           
static String renderSpaceStylesheet(Space space)
           
 void setColourSchemeManager(ColourSchemeManager colourSchemeManager)
           
 void setEditorManager(EditorManager editorManager)
           
 void setPluginCompleteKey(String pluginCompleteKey)
           
 void setPluginManager(PluginManager pluginManager)
           
 void setSpaceKey(String spaceKey)
           
 void setStylesheetName(String stylesheetName)
           
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addPermissionTypeTo, addToHistory, doDefault, getActionName, getBootstrapManager, getCancelResult, getDateFormatter, getDefaultResourceBundle, getEditorLanguage, getEventManager, getGlobalHelper, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSpaceHelper, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setPermissionCheck, setPermissionManager, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setUserAccessor, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StylesheetAction

public StylesheetAction()
Default constructor for WebWork


StylesheetAction

public StylesheetAction(ColourScheme colourScheme)
If we want to construct it without executing it in a web context

Method Detail

renderDefaultStylesheet

public static String renderDefaultStylesheet()

renderSpaceStylesheet

public static String renderSpaceStylesheet(Space space)

isPermitted

public boolean isPermitted()
Overrides:
isPermitted in class ConfluenceActionSupport

executeForWysiwyg

public String executeForWysiwyg()
                         throws Exception
Throws:
Exception

execute

public String execute()
               throws Exception
Specified by:
execute in interface com.opensymphony.xwork.Action
Throws:
Exception

getStylesheetLocation

public String getStylesheetLocation()

setSpaceKey

public void setSpaceKey(String spaceKey)

getSpaceKey

public String getSpaceKey()

setPluginCompleteKey

public void setPluginCompleteKey(String pluginCompleteKey)

setStylesheetName

public void setStylesheetName(String stylesheetName)

getTopBarColor

public String getTopBarColor()

getBreadcrumbsTextColour

public String getBreadcrumbsTextColour()

getSpaceNameColor

public String getSpaceNameColor()

getHeadingTextColor

public String getHeadingTextColor()

getLinkColor

public String getLinkColor()

getBorderColor

public String getBorderColor()

getNavBackgroundColor

public String getNavBackgroundColor()

getNavTextColor

public String getNavTextColor()

getNavSelectedBackgroundColor

public String getNavSelectedBackgroundColor()

getNavSelectedTextColor

public String getNavSelectedTextColor()

getCustomColor1

public String getCustomColor1()

getCustomColor2

public String getCustomColor2()

getCustomColor3

public String getCustomColor3()

getCustomColor4

public String getCustomColor4()

getCustomColor5

public String getCustomColor5()

getTopBarColour

public String getTopBarColour()

getSpaceNameColour

public String getSpaceNameColour()

getHeadingTextColour

public String getHeadingTextColour()

getLinkColour

public String getLinkColour()

getBorderColour

public String getBorderColour()

getNavBackgroundColour

public String getNavBackgroundColour()

getNavTextColour

public String getNavTextColour()

getNavSelectedBackgroundColour

public String getNavSelectedBackgroundColour()

getNavSelectedTextColour

public String getNavSelectedTextColour()

setColourSchemeManager

public void setColourSchemeManager(ColourSchemeManager colourSchemeManager)

setPluginManager

public void setPluginManager(PluginManager pluginManager)

isForWysiwyg

public boolean isForWysiwyg()

getEditor

public Editor getEditor()

setEditorManager

public void setEditorManager(EditorManager editorManager)

getLastModifiedHandler

public LastModifiedHandler getLastModifiedHandler()
Specified by:
getLastModifiedHandler in interface LastModifiedAware

getLastModifiedHandlerForSpace

public static LastModifiedHandler getLastModifiedHandlerForSpace(String spaceKey)
Parameters:
spaceKey -
Returns:

isUserAgentIE

public boolean isUserAgentIE()


Confluence is developed by Atlassian.