Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.platform.TemplateSources.actions--filters

This contribution is part of XML component org.nuxeo.platform.TemplateSources.actions inside nuxeo-template-rendering-jsf-9.10.jar /OSGI-INF/actions-contrib.xml

Extension Point

Extension point filters of component ActionService.

Contributed Items

  • <filter id="is_creating_template">
          <rule grant="true">
            <condition>#{changeableDocument.type == 'TemplateSource'}</condition>
          </rule>
        </filter>
  • <filter id="is_creating_template_instance">
          <rule grant="true">
            <condition>#{changeableDocument.hasFacet('TemplateBased')}</condition>
          </rule>
        </filter>
  • <filter id="is_not_creating_template">
          <rule grant="false">
            <condition>#{changeableDocument.type == 'TemplateSource'}</condition>
          </rule>
          <rule grant="false">
            <condition>#{changeableDocument.hasFacet('TemplateBased')}</condition>
          </rule>
        </filter>

XML Source

<extension point="filters" target="org.nuxeo.ecm.platform.actions.ActionService">

    <filter id="is_creating_template">
      <rule grant="true">
        <condition>#{changeableDocument.type == 'TemplateSource'}</condition>
      </rule>
    </filter>

    <filter id="is_creating_template_instance">
      <rule grant="true">
        <condition>#{changeableDocument.hasFacet('TemplateBased')}</condition>
      </rule>
    </filter>

    <filter id="is_not_creating_template">
      <rule grant="false">
        <condition>#{changeableDocument.type == 'TemplateSource'}</condition>
      </rule>
      <rule grant="false">
        <condition>#{changeableDocument.hasFacet('TemplateBased')}</condition>
      </rule>
    </filter>

  </extension>