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

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

Best Java code snippets using org.nuxeo.theme.styling.service.ThemeStylingService.getPages (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-wro

@Override
public WroModel create() {
  WroModel model = new WroModel();
  ThemeStylingService ts = Framework.getService(ThemeStylingService.class);
  WebResourceManager ws = Framework.getService(WebResourceManager.class);
  ResourceContextImpl rcontext = new ResourceContextImpl();
  List<PageDescriptor> pages = ts.getPages();
  for (PageDescriptor page : pages) {
    String groupName = page.getName();
    Group group = new Group(groupName);
    List<String> bundleNames = page.getResourceBundles();
    for (String bundleName : bundleNames) {
      List<Resource> resources = ws.getResources(rcontext, bundleName, ResourceType.any.name());
      if (resources != null) {
        for (Resource resource : resources) {
          ro.isdc.wro.model.resource.Resource wr = toWroResource(bundleName, resource);
          if (wr != null) {
            group.addResource(wr);
          }
        }
      }
    }
    model.addGroup(group);
  }
  return model;
}
org.nuxeo.theme.styling.serviceThemeStylingServicegetPages

Javadoc

Rerurns all pages declared on the service, except the global one named "*".

Resources and bundles declared for all pages will also be attached to returned pages.

Popular methods of ThemeStylingService

  • getFlavor
    Returns the flavor for given name, or null if not found. If not defined on the local flavor, flavor
  • getDefaultFlavorName
    Returns the default flavor for a given theme page
  • 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
  • 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

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
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