@Name(value="themeActions") @Scope(value=PAGE) public class ThemeActionsBean extends Object implements ThemeActions
| Modifier and Type | Field and Description | 
|---|---|
| protected List<IconDescriptor> | currentFavicons | 
| protected String | currentFlavor | 
| protected LogoDescriptor | currentLogo | 
| protected String | currentPage | 
| protected String | defaultPage | 
| protected ThemeStylingService | themeStylingService | 
| Constructor and Description | 
|---|
| ThemeActionsBean() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getCurrentFlavor()Returns current negotiated flavor. | 
| String | getCurrentFlavor(String pageName)Returns current negotiated flavor for given page, which is set as current page. | 
| String | getCurrentPage()Returns current negotiated page. | 
| String | getDefaultTheme()Returns negotiated default theme to handle print action. | 
| List<IconDescriptor> | getFavicons()Returns favicons for current flavor. | 
| FlavorDescriptor | getFlavor(String flavorName)Returns flavor with given name. | 
| LogoDescriptor | getLogo()Returns the logo configured for negotiated flavor. | 
| LogoDescriptor | getLogo(String flavorName)Returns the logo configured for given flavor. | 
| void | setCurrentPage(String pageName)Sets the current page. | 
protected String defaultPage
protected String currentPage
protected String currentFlavor
protected LogoDescriptor currentLogo
protected List<IconDescriptor> currentFavicons
@In(create=true,
    required=false)
protected transient ThemeStylingService themeStylingService
public ThemeActionsBean()
public String getDefaultTheme()
ThemeActionsgetDefaultTheme in interface ThemeActionspublic LogoDescriptor getLogo()
ThemeActionsgetLogo in interface ThemeActionspublic List<IconDescriptor> getFavicons()
public String getCurrentFlavor()
ThemeActionsAssumes current page has already been resolved for this flavor negotiation.
getCurrentFlavor in interface ThemeActionspublic String getCurrentFlavor(String pageName)
ThemeActionsgetCurrentFlavor in interface ThemeActionspublic String getCurrentPage()
ThemeActionsgetCurrentPage in interface ThemeActionspublic void setCurrentPage(String pageName)
ThemeActionssetCurrentPage in interface ThemeActionspublic LogoDescriptor getLogo(String flavorName)
ThemeActionsgetLogo in interface ThemeActionspublic FlavorDescriptor getFlavor(String flavorName)
ThemeActionsgetFlavor in interface ThemeActionsCopyright © 2015 Nuxeo SA. All rights reserved.