com.atlassian.confluence.themes
Class ThemeContext

java.lang.Object
  extended by com.atlassian.confluence.themes.ThemeContext

public class ThemeContext
extends Object

Context object placed in the HttpServletRequest attributes that the theme manager can use to determine what the 'context' of the current request might be. Currently we just stick the space in here but there's room for expansion.


Field Summary
static String ATTRIBUTE_KEY
           
 
Constructor Summary
ThemeContext(Space currentSpace, Theme spaceTheme, Theme globalTheme)
           
 
Method Summary
static ThemeContext get(javax.servlet.ServletRequest request)
           
 Theme getAppliedTheme()
           
 Theme getGlobalTheme()
           
 Space getSpace()
           
 String getSpaceKey()
           
 Theme getSpaceTheme()
           
 boolean hasGlobalTheme()
           
 boolean hasSpaceTheme()
           
static void set(javax.servlet.ServletRequest request, Space currentSpace, Theme currentTheme, Theme globalTheme)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE_KEY

public static final String ATTRIBUTE_KEY
See Also:
Constant Field Values
Constructor Detail

ThemeContext

public ThemeContext(Space currentSpace,
                    Theme spaceTheme,
                    Theme globalTheme)
Method Detail

set

public static void set(javax.servlet.ServletRequest request,
                       Space currentSpace,
                       Theme currentTheme,
                       Theme globalTheme)

get

public static ThemeContext get(javax.servlet.ServletRequest request)

getSpace

public Space getSpace()

hasSpaceTheme

public boolean hasSpaceTheme()

getSpaceTheme

public Theme getSpaceTheme()

hasGlobalTheme

public boolean hasGlobalTheme()

getGlobalTheme

public Theme getGlobalTheme()

getSpaceKey

public String getSpaceKey()

getAppliedTheme

public Theme getAppliedTheme()


Copyright © 2003-2012 Atlassian. All Rights Reserved.