Nuxeo 5

Nuxeo 5 Component
org.nuxeo.theme.services.ThemeService

Individual Documentation Coverage

done proportion
61.9 %


Service providing an extension mechanism for Themes.



Author: Jean-Marc Orliaguet ([email protected])

Version: missing

Location: nuxeo-theme/nuxeo-theme-core/src/main/resources/OSGI-INF/nxthemes-core-service.xml

Require

No requirements

Required by

Implementation


Extension Points:

registries


Extension Point for adding Registries. Registries are used internally by NXThemesCore to store information about registered Elements, Fragments, Models, Formats, etc.
This is for internal use mainly, new registries are not supposed to be created by third-party applications.

elements


Extension Point for registering Theme Elements such as Themes, Pages, Sections, Cells, Fragments, etc.
This is for internal use mainly, new types of Elements are not supposed to be registered by third-party applications.

fragments


Extension Point for registering new types of Fragments.
Fragments produce Model data that is rendered by Views.

The XML syntax is:

        <fragment name="fragment name">
          <class>org.nuxeo.theme.fragments.FragmentClass</class>
          <model-type>model type</model-type>
        </fragment>



where:
- 'class' is the Java class implementing org.nuxeo.themes.fragments.Fragment
- 'model-type' is the type of Model data produced by the Fragment.

The Model type information is optional, however it determines the types of Views that the Fragment will be renderable with.

models


Extension Point for registering new types of Models.

The XML syntax is:

        <model name="model name">
          <class>org.nuxeo.theme.models.ModelClass</class>
        </model>



where:
- 'class' is the Java class implementing org.nuxeo.themes.models.Model.

formats


Extension Point for registering Format types such as Style, Layout, Widget.
This is for internal use mainly, new types of Formats are not supposed to be registered by third-party applications.

format-filters


Extension Point for registering Format filters.
This is for internal use mainly, new types of filters are not supposed to be registered by third-party applications.

standalone-filters


Extension Point for registering Standalone Filters.

The XML syntax is:

        <standalone-filter name="filter name">
          <engine>engine name</engine>
          <class>org.nuxeo.theme.filters.FilterClass</class>
        </standalone-filter>



where:
- 'engine' is the name of the Engine for which the Filter will be applied. (Optional)
- 'class' is the Java class extending org.nuxeo.theme.rendering.StandaloneFilter

resources


Extension Point for registering Resources.

The XML syntax is:

        <resource name="resourcename.xxx">
          <path>path/to/resource.xxx</path>
          <require>other-resource.xxx</require>
        </resource>



where:
- 'name' is the name of the Resource. Supported extensions are '.js', '.css' and '.json'.
- 'path' is the path of the Resource to be loaded by the class loader.
- 'require' is the name of another Resource that is required. (Optional)
Several resources can be required:

other-resource1.xxx
other-resource2.xxx


perspectives


Extension Point for registering perspectives.

The XML syntax is:

        <perspective name="perspective_name">
          <title>Perspective title</title>
        </perspective>



where:
- 'name' is the name of perspective (lower-case alpha-numeric characters, underscores and hyphens)
- 'title' is the title of the perspective


shortcuts


Extension Point for registering navigation shortcuts (access keys, ...)

The XML syntax is:

        <shortcut key="k" target="/target.faces?..." />



where:
- 'key' is the shortcut key..
- 'target' is the associated URL.

presets


Extension Point for registering Presets.

Presets are stored in Palettes.

The XML syntax is:

        <palette category="category" name="palette name" src="palette source" />



where:
- 'name' is the name of the Palette.
- 'src' is the source of the Palette (String)
- 'category' is the palette category (optional)

Supported palette types are:

- *.properties (Properties file)
- *.aco (Photoshop color palettes)
- *.gpl (Gimp palettes)


Has contribution from:

Last generation: 18:21:25 CEST 11/07/2009