public class ThemeStylingServiceImpl extends DefaultComponent implements ThemeStylingService
ThemeStylingServiceThemeStylingService.PRESET_CATEGORYFLAVOR_MARKER, PAGE_STYLE_CLASS_NAME_PREFIX, PAGE_STYLE_NAME_SUFFIX| Constructor and Description |
|---|
ThemeStylingServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(ComponentContext context)
Activates the component.
|
String |
getDefaultFlavorName(String themePageName)
Returns the default flavor for a given theme page
|
Flavor |
getFlavor(String flavorName)
Returns the flavor for given name, or null if not found.
|
List<String> |
getFlavorNames(String themePageName)
Returns the flavor names for a given theme page
|
List<Flavor> |
getFlavors(String themePageName)
Returns the flavors for a given theme page
|
Logo |
getLogo(String flavorName)
Returns the logo configured for given flavor name, and fallbacks on the extends flavor logo if not set.
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
themeGlobalResourcesRegistered(URL themeUrl)
Hook to notify the service that global resources for a theme need to be registered
|
void |
themeRegistered(String themeName)
Hook to notify the service that a theme has been registered
|
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtensionpublic void activate(ComponentContext context)
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution in class DefaultComponentpublic String getDefaultFlavorName(String themePageName)
ThemeStylingServicegetDefaultFlavorName in interface ThemeStylingServicepublic Flavor getFlavor(String flavorName)
ThemeStylingService
If not defined on the local flavor, flavor attributes will be resolved from the extended flavor if any (except
presets that just need to be resolved at registration to the ThemeService.
getFlavor in interface ThemeStylingServicepublic Logo getLogo(String flavorName)
ThemeStylingServicegetLogo in interface ThemeStylingServicepublic List<String> getFlavorNames(String themePageName)
ThemeStylingServicegetFlavorNames in interface ThemeStylingServicepublic List<Flavor> getFlavors(String themePageName)
ThemeStylingServicegetFlavors in interface ThemeStylingServicepublic void themeRegistered(String themeName)
ThemeStylingServicethemeRegistered in interface ThemeStylingServicepublic void themeGlobalResourcesRegistered(URL themeUrl)
ThemeStylingServicethemeGlobalResourcesRegistered in interface ThemeStylingServiceCopyright © 2015 Nuxeo SA. All rights reserved.