Codota Logo
ThemeStylingService.getDefaultFlavorName
Code IndexAdd Codota to your IDE (free)

How to use
getDefaultFlavorName
method
in
org.nuxeo.theme.styling.service.ThemeStylingService

Best Java code snippets using org.nuxeo.theme.styling.service.ThemeStylingService.getDefaultFlavorName (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: org.nuxeo.ecm.platform/nuxeo-web-resources-jsf

  @Override
  public String getResult(String target, Object context) {
    FacesContext faces = null;
    if (context instanceof FacesContext) {
      faces = (FacesContext) context;
    } else {
      return null;
    }
    String theme = (String) faces.getExternalContext().getRequestMap().get(getProperty("negotiatedPageVariable"));
    if (theme != null) {
      ThemeStylingService service = Framework.getService(ThemeStylingService.class);
      return service.getDefaultFlavorName(theme);
    }
    return null;
  }
}
org.nuxeo.theme.styling.serviceThemeStylingServicegetDefaultFlavorName

Javadoc

Returns the default flavor for a given theme page

Popular methods of ThemeStylingService

  • getFlavor
    Returns the flavor for given name, or null if not found. If not defined on the local flavor, flavor
  • getLogo
    Returns the logo configured for given flavor name, and fallbacks on the extends flavor logo if not s
  • getPage
    Returns the page for given name. Resources and bundles declared for all pages will also be attached
  • getPages
    Rerurns all pages declared on the service, except the global one named "*". Resources and bundles d
  • getPresetVariables
    Returns the map of variable replacements for given flavor. Returns an empty map if flavor is not res
  • negotiate
    Returns the negotiated String value for given target variable. Context can be dependent on the targe

Popular in Java

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Notification (javax.management)
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now