Platform Explorer / CMF 1.8

Contribution org.nuxeo.cm.actions--filters

This contribution is part of XML component org.nuxeo.cm.actions inside nuxeo-case-management-web-1.8.jar

Extension Point

Extension point filters of component ActionService.

Contributed Items

  • <filter id="isNotVirtualUser">
          <rule grant="false">
            <condition>#{cmVirtualUserManager.isCurrentUserVirtual()}</condition>
          </rule>
        </filter>
  • <filter id="newCmMailbox">
          <rule grant="true">
            <permission>AddChildren</permission>
            <type>MailboxRoot</type>
          </rule>
        </filter>
  • <filter id="canCreateCase">
          <rule grant="true">
            <condition>
              #{cmMailboxActions.getCurrentMailboxHasProfile('cellule_courrier')}
            </condition>
          </rule>
        </filter>
  • <filter id="isCmCase">
          <rule grant="true">
            <facet>Distributable</facet>
          </rule>
          <rule grant="false">
            <facet>CaseGroupable</facet>
          </rule>
        </filter>
  • <filter id="isCmInitialCase">
          <rule grant="true">
            <facet>Distributable</facet>
            <condition>#{cmCaseActions.isInitialCase()}</condition>
          </rule>
          <rule grant="false">
            <facet>CaseGroupable</facet>
          </rule>
        </filter>
  • <filter id="isDraft">
          <rule grant="true">
            <facet>Distributable</facet>
            <condition>#{currentCase.isDraft()}</condition>
          </rule>
          <rule grant="false">
            <facet>CaseGroupable</facet>
          </rule>
        </filter>
  • <filter id="isNotDraft">
          <rule grant="false">
            <facet>Distributable</facet>
            <condition>#{currentCase.isDraft()}</condition>
          </rule>
        </filter>
  • <filter id="isNotCmInitialCase">
          <rule grant="true">
            <facet>Distributable</facet>
          </rule>
          <rule grant="false">
            <condition>#{cmCaseActions.isInitialCase()}</condition>
          </rule>
        </filter>
  • <filter id="isMailbox">
          <rule grant="true">
            <facet>Mailbox</facet>
          </rule>
        </filter>
  • <filter id="isNotMailbox">
          <rule grant="false">
            <facet>Mailbox</facet>
          </rule>
        </filter>
  • <filter id="isNotCmCase">
          <rule grant="false">
            <facet>Distributable</facet>
          </rule>
        </filter>
  • <filter id="isCaseItem">
          <rule grant="true">
    	 <condition>#{cmDocumentActions.isCaseItem()}</condition>
          </rule>
        </filter>
  • <filter id="isNotCaseItem">
          <rule grant="false">
          	<condition>#{cmDocumentActions.isCaseItem()}</condition>
          </rule>
        </filter>
  • <filter id="isCaseItemOrCase">
          <rule grant="true">
            <facet>Distributable</facet>
          </rule>
        </filter>
  • <filter id="isNotCaseItemOrCase">
          <rule grant="false">
            <facet>Distributable</facet>
          </rule>
        </filter>
  • <filter id="hideFromMailbox">
          <rule grant="false">
            <facet>Mailbox</facet>
          </rule>
        </filter>
  • <filter id="isGenericMailbox">
          <rule grant="true">
            <condition>#{cmMailboxActions.isGenericMailbox()}</condition>
          </rule>
        </filter>
  • <filter id="canDistributeCase">
          <rule grant="true">
            <condition>#{cmDistributionActions.canDistributeCase()}</condition>
          </rule>
        </filter>
  • <filter id="canEditCaseItem">
          <rule grant="true">
            <condition>#{cmDocumentActions.canEditCurrentCaseItem}</condition>
          </rule>
        </filter>
  • <filter id="canEditCase">
          <rule grant="true">
            <condition>#{cmCaseActions.canEditCurrentCase}</condition>
          </rule>
        </filter>
  • <filter id="isCurrentCaseItemPreviewAvailable">
          <rule grant="true">
            <condition>
              #{cmDocumentActions.isCurrentCaseItemPreviewAvailable()}
            </condition>
          </rule>
        </filter>
  • <filter id="isEmptyCase">
          <rule grant="false">
            <condition>#{cmCaseActions.isEmptyCase()}</condition>
          </rule>
        </filter>

XML Source

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

    <filter id="isNotVirtualUser">
      <rule grant="false">
        <condition>#{cmVirtualUserManager.isCurrentUserVirtual()}</condition>
      </rule>
    </filter>

    <filter id="newCmMailbox">
      <rule grant="true">
        <permission>AddChildren</permission>
        <type>MailboxRoot</type>
      </rule>
    </filter>

    <filter id="canCreateCase">
      <rule grant="true">
        <condition>
          #{cmMailboxActions.getCurrentMailboxHasProfile('cellule_courrier')}
        </condition>
      </rule>
    </filter>

    <filter id="isCmCase">
      <rule grant="true">
        <facet>Distributable</facet>
      </rule>
      <rule grant="false">
        <facet>CaseGroupable</facet>
      </rule>
    </filter>

    <filter id="isCmInitialCase">
      <rule grant="true">
        <facet>Distributable</facet>
        <condition>#{cmCaseActions.isInitialCase()}</condition>
      </rule>
      <rule grant="false">
        <facet>CaseGroupable</facet>
      </rule>
    </filter>

    <filter id="isDraft">
      <rule grant="true">
        <facet>Distributable</facet>
        <condition>#{currentCase.isDraft()}</condition>
      </rule>
      <rule grant="false">
        <facet>CaseGroupable</facet>
      </rule>
    </filter>

    <filter id="isNotDraft">
      <rule grant="false">
        <facet>Distributable</facet>
        <condition>#{currentCase.isDraft()}</condition>
      </rule>
    </filter>

    <filter id="isNotCmInitialCase">
      <rule grant="true">
        <facet>Distributable</facet>
      </rule>
      <rule grant="false">
        <condition>#{cmCaseActions.isInitialCase()}</condition>
      </rule>
    </filter>

    <filter id="isMailbox">
      <rule grant="true">
        <facet>Mailbox</facet>
      </rule>
    </filter>

    <filter id="isNotMailbox">
      <rule grant="false">
        <facet>Mailbox</facet>
      </rule>
    </filter>

    <filter id="isNotCmCase">
      <rule grant="false">
        <facet>Distributable</facet>
      </rule>
    </filter>

    <filter id="isCaseItem">
      <rule grant="true">
	 <condition>#{cmDocumentActions.isCaseItem()}</condition>
      </rule>
    </filter>

    <filter id="isNotCaseItem">
      <rule grant="false">
      	<condition>#{cmDocumentActions.isCaseItem()}</condition>
      </rule>
    </filter>

    <filter id="isCaseItemOrCase">
      <rule grant="true">
        <facet>Distributable</facet>
      </rule>
    </filter>

    <filter id="isNotCaseItemOrCase">
      <rule grant="false">
        <facet>Distributable</facet>
      </rule>
    </filter>

    <filter id="hideFromMailbox">
      <rule grant="false">
        <facet>Mailbox</facet>
      </rule>
    </filter>

    <filter id="isGenericMailbox">
      <rule grant="true">
        <condition>#{cmMailboxActions.isGenericMailbox()}</condition>
      </rule>
    </filter>

    <filter id="canDistributeCase">
      <rule grant="true">
        <condition>#{cmDistributionActions.canDistributeCase()}</condition>
      </rule>
    </filter>

    <filter id="canEditCaseItem">
      <rule grant="true">
        <condition>#{cmDocumentActions.canEditCurrentCaseItem}</condition>
      </rule>
    </filter>

    <filter id="canEditCase">
      <rule grant="true">
        <condition>#{cmCaseActions.canEditCurrentCase}</condition>
      </rule>
    </filter>

    <filter id="isCurrentCaseItemPreviewAvailable">
      <rule grant="true">
        <condition>
          #{cmDocumentActions.isCurrentCaseItemPreviewAvailable()}
        </condition>
      </rule>
    </filter>

    <filter id="isEmptyCase">
      <rule grant="false">
        <condition>#{cmCaseActions.isEmptyCase()}</condition>
      </rule>
    </filter>

  </extension>