@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()
ThemeActions
getDefaultTheme
in interface ThemeActions
public LogoDescriptor getLogo()
ThemeActions
getLogo
in interface ThemeActions
public List<IconDescriptor> getFavicons()
public String getCurrentFlavor()
ThemeActions
Assumes current page has already been resolved for this flavor negotiation.
getCurrentFlavor
in interface ThemeActions
public String getCurrentFlavor(String pageName)
ThemeActions
getCurrentFlavor
in interface ThemeActions
public String getCurrentPage()
ThemeActions
getCurrentPage
in interface ThemeActions
public void setCurrentPage(String pageName)
ThemeActions
setCurrentPage
in interface ThemeActions
public LogoDescriptor getLogo(String flavorName)
ThemeActions
getLogo
in interface ThemeActions
public FlavorDescriptor getFlavor(String flavorName)
ThemeActions
getFlavor
in interface ThemeActions
Copyright © 2015 Nuxeo SA. All rights reserved.