Platform Explorer / CMF 1.8

Contribution org.nuxeo.ecm.platform.routing.actions--filters

This contribution is part of XML component org.nuxeo.ecm.platform.routing.actions inside nuxeo-platform-document-routing-web-5.4.3-I20110729.jar

Extension Point

Extension point filters of component ActionService.

Contributed Items

  • <filter append="true" id="create">
          <rule grant="true">
            <permission>AddChildren</permission>
            <type>DocumentRoute</type>
            <type>StepFolder</type>
          </rule>
        </filter>
  • <filter id="isRoutable">
          <rule grant="true">
            <facet>Routable</facet>
          </rule>
        </filter>
  • <filter id="isRoute">
          <rule grant="true">
            <type>DocumentRoute</type>
          </rule>
        </filter>
  • <filter id="isNotRoute">
          <rule grant="false">
            <type>DocumentRoute</type>
          </rule>
        </filter>
  • <filter id="isDraftRouteModel">
          <rule grant="true">
            <condition>
              document.getCurrentLifeCycleState().equals("draft")
            </condition>
            <type>DocumentRoute</type>
          </rule>
        </filter>
  • <filter id="isEditableRoute">
          <rule grant="true">
            <condition>#{userSession.administrator}</condition>
          </rule>
          <rule grant="true">
            <group>routeManagers</group>
          </rule>
        </filter>
  • <filter id="isValidatedRouteModel">
          <rule grant="true">
            <condition>
              document.getCurrentLifeCycleState().equals("validated")
            </condition>
            <type>DocumentRoute</type>
          </rule>
        </filter>
  • <filter id="noRelatedRouteStarted">
          <rule grant="false">
            <condition>#{routingActions.hasRelatedRoute()}</condition>
          </rule>
        </filter>
  • <filter id="hasRelatedRouteStarted">
          <rule grant="true">
            <condition>#{routingActions.hasRelatedRoute()}</condition>
          </rule>
        </filter>
  • <filter id="isNotRunning">
          <rule grant="false">
            <condition>
              document.getCurrentLifeCycleState().equals("running")
            </condition>
          </rule>
        </filter>

XML Source

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

    <filter append="true" id="create">
      <rule grant="true">
        <permission>AddChildren</permission>
        <type>DocumentRoute</type>
        <type>StepFolder</type>
      </rule>
    </filter>

    <filter id="isRoutable">
      <rule grant="true">
        <facet>Routable</facet>
      </rule>
    </filter>

    <filter id="isRoute">
      <rule grant="true">
        <type>DocumentRoute</type>
      </rule>
    </filter>

    <filter id="isNotRoute">
      <rule grant="false">
        <type>DocumentRoute</type>
      </rule>
    </filter>

    <filter id="isDraftRouteModel">
      <rule grant="true">
        <condition>
          document.getCurrentLifeCycleState().equals("draft")
        </condition>
        <type>DocumentRoute</type>
      </rule>
    </filter>

    <filter id="isEditableRoute">
      <rule grant="true">
        <condition>#{userSession.administrator}</condition>
      </rule>
      <rule grant="true">
        <group>routeManagers</group>
      </rule>
    </filter>


    <filter id="isValidatedRouteModel">
      <rule grant="true">
        <condition>
          document.getCurrentLifeCycleState().equals("validated")
        </condition>
        <type>DocumentRoute</type>
      </rule>
    </filter>

    <filter id="noRelatedRouteStarted">
      <rule grant="false">
        <condition>#{routingActions.hasRelatedRoute()}</condition>
      </rule>
    </filter>

    <filter id="hasRelatedRouteStarted">
      <rule grant="true">
        <condition>#{routingActions.hasRelatedRoute()}</condition>
      </rule>
    </filter>

    <filter id="isNotRunning">
      <rule grant="false">
        <condition>
          document.getCurrentLifeCycleState().equals("running")
        </condition>
      </rule>
    </filter>

  </extension>