public interface ThemeStylingService
Registers some contributions to the WebResourceManager
for compatibility.
FlavorDescriptor
Modifier and Type | Interface and Description |
---|---|
static class |
ThemeStylingService.PRESET_CATEGORY |
Modifier and Type | Field and Description |
---|---|
static String |
FLAVOR_MARKER |
static String |
PAGE_STYLE_CLASS_NAME_PREFIX |
static String |
PAGE_STYLE_NAME_SUFFIX |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultFlavorName(String themePage)
Returns the default flavor for a given theme page
|
FlavorDescriptor |
getFlavor(String flavorName)
Returns the flavor for given name, or null if not found.
|
List<String> |
getFlavorNames(String themePage)
Returns the flavor names for a given theme page
|
List<FlavorDescriptor> |
getFlavors(String themePage)
Returns the flavors for a given theme page
|
LogoDescriptor |
getLogo(String flavor)
Returns the logo configured for given flavor name, and fallbacks on the extends flavor logo if not set.
|
PageDescriptor |
getPage(String name)
Returns the page for given name.
|
List<PageDescriptor> |
getPages()
Rerurns all pages declared on the service, except the global one named "*".
|
Map<String,String> |
getPresetVariables(String flavorName)
Returns the map of variable replacements for given flavor.
|
String |
negotiate(String target,
Object context)
Returns the negotiated String value for given target variable.
|
static final String FLAVOR_MARKER
static final String PAGE_STYLE_CLASS_NAME_PREFIX
static final String PAGE_STYLE_NAME_SUFFIX
String getDefaultFlavorName(String themePage)
List<String> getFlavorNames(String themePage)
List<FlavorDescriptor> getFlavors(String themePage)
FlavorDescriptor getFlavor(String flavorName)
If not defined on the local flavor, flavor attributes will be resolved from the extended flavor if any.
flavorName
- Map<String,String> getPresetVariables(String flavorName)
Returns an empty map if flavor is not resolved.
LogoDescriptor getLogo(String flavor)
flavor
- PageDescriptor getPage(String name)
Resources and bundles declared for all pages will also be attached to returned page.
List<PageDescriptor> getPages()
Resources and bundles declared for all pages will also be attached to returned pages.
Copyright © 2018 Nuxeo. All rights reserved.