Platform Explorer / Nuxeo Platform LTS 2015 7.10

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

This contribution is part of XML component org.nuxeo.platform.TemplateSources.actions inside nuxeo-template-rendering-web-7.10-HF02.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>