Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: MOTION-157

...

This module requires Java 8 or higher which includes support for Nashorn.  See the Certified stack page to confirm the latest supported Java version.

Table of Contents
maxLevel3
minLevel2

...

You can expose (custom) components to the models in the module's configuration. A typical use case is adding Templating functions. If you want to use cmsfn, you have to configure it under exposedComponents :

...

heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse

Image Added

...

Mgnl f
modules

...

Mgnl f
javascript-models

...

Mgnl f
config

...

Mgnl n
engineConfiguration

...

Mgnl n
exposedComponents

...

Mgnl n
cmsfn

...

Mgnl p
name

...

cmsfn

...

Mgnl p
componentClass

...

Properties:

exposedComponents

optional

The exposed components configuration node can be omitted.

<object-name>

required

An arbitrary name of an exposed object

name

required

The name of the object which will be used to reference it.

componentClass

required

A fully qualified class name of the exposed object.

...

The class filter is one of the options with which you can limit the access to the Java API.

...

heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse

...

Mgnl f
config

...

Mgnl n
engineConfiguration

...

Mgnl n
classFilter

...

Mgnl p
class

...

Image Added

The value of the class property has to be a fully qualified class name of the class implementing  jdk.nashorn.api.scripting.ClassFilter  .

...

Fo instance, you can limit the access to Java API by disabling Nashorn extensions or by implementing a ClassFilter.

...

heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse

...

Mgnl f
config

...

Mgnl n
engineConfiguration

...

Mgnl n
engineOptions

...

Mgnl p
--no-java

...

--no-java

...

Mgnl p
--no-syntax-extensions

...

Image Added

Properties:

engineOptions

optional

The engine options configuration node can be omitted.

<object-name>

required

An arbitrary name of an exposed object

name

required

The name of the object which will be used to reference it.

componentClass

required

A fully qualified class name of the exposed object.

...