Platform Explorer / CMF 1.8

Contribution org.nuxeo.cm.contentview.contrib--contentViews

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

Extension Point

Extension point contentViews of component ContentViewService.

Contributed Items

  • <contentView name="mailbox_service_content">
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern>
              SELECT * FROM Document WHERE ecm:parentId = ? AND
              ecm:isCheckedInVersion = 0 AND ecm:mixinType != 'HiddenInNavigation'
              AND ecm:currentLifeCycleState != 'deleted' AND ecm:mixinType =
              'CaseLink' AND cslk:draft = 0
            </pattern>
            <parameter>#{currentMailbox.document.id}</parameter>
            <sort ascending="false" column="cslk:date"/>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>mailbox_service_content</cacheKey>
          <cacheSize>1</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="cm_inbox_caselink" title="document_listing" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>CURRENT_SELECTION</selectionList>
    
        </contentView>
  • <contentView name="mailbox_inbox_content">
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern>
              SELECT * FROM Document WHERE ecm:parentId = ? AND
              ecm:isCheckedInVersion = 0 AND ecm:mixinType != 'HiddenInNavigation'
              AND ecm:currentLifeCycleState != 'deleted' AND ecm:mixinType =
              'CaseLink' AND cslk:isSent = 0 AND cslk:draft = 0
            </pattern>
            <parameter>#{currentMailbox.document.id}</parameter>
            <sort ascending="false" column="cslk:date"/>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>mailbox_inbox_content</cacheKey>
          <cacheSize>1</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="cm_inbox_caselink" title="document_listing" translateTitle="true"/>
          </resultLayouts>
    
          <showFilterForm>true</showFilterForm>
          <showPageSizeSelector>false</showPageSizeSelector>
          <showRefreshCommand>false</showRefreshCommand>
        </contentView>
  • <contentView name="mailbox_sent_content">
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern>
              SELECT * FROM Document WHERE ecm:parentId = ? AND
              ecm:isCheckedInVersion = 0 AND ecm:mixinType != 'HiddenInNavigation'
              AND ecm:currentLifeCycleState != 'deleted' AND ecm:mixinType =
              'CaseLink' AND cslk:isSent = 1 AND cslk:draft = 0
            </pattern>
            <parameter>#{currentMailbox.document.id}</parameter>
            <sort ascending="false" column="cslk:date"/>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>mailbox_sent_content</cacheKey>
          <cacheSize>1</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="cm_sent_caselink" title="document_listing" translateTitle="true"/>
          </resultLayouts>
          <showFilterForm>true</showFilterForm>
          <showPageSizeSelector>false</showPageSizeSelector>
          <showRefreshCommand>false</showRefreshCommand>
    
        </contentView>
  • <contentView name="mailbox_draft_content">
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern>
              SELECT * FROM Document WHERE ecm:parentId = ? AND
              ecm:isCheckedInVersion = 0 AND ecm:mixinType != 'HiddenInNavigation'
              AND ecm:currentLifeCycleState != 'deleted' AND ecm:mixinType =
              'CaseLink' AND cslk:draft = 1
            </pattern>
            <parameter>#{currentMailbox.document.id}</parameter>
            <sort ascending="true" column="dc:title"/>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>mailbox_draft_content</cacheKey>
          <cacheSize>1</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="cm_draft_caselink" title="document_listing" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>CURRENT_SELECTION</selectionList>
          <actions category="CASE_MANAGEMENT_CURRENT_SELECTION_LIST"/>
    	  <showFilterForm>true</showFilterForm>
          <showPageSizeSelector>false</showPageSizeSelector>
          <showRefreshCommand>false</showRefreshCommand>
        </contentView>
  • <contentView name="mailbox_plans_content">
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern>
              SELECT * FROM ClassificationRoot WHERE ecm:parentId = ? AND
              ecm:isCheckedInVersion = 0 AND ecm:mixinType != 'HiddenInNavigation'
              AND ecm:currentLifeCycleState != 'deleted'
            </pattern>
            <parameter>#{currentDocument.id}</parameter>
            <sort ascending="true" column="dc:title"/>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>#{currentDocument.id}</cacheKey>
          <cacheSize>10</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="document_listing_ajax" title="document_listing" translateTitle="true"/>
            <layout iconPath="/icons/document_listing_compact_2_columns_icon.png" name="document_listing_ajax_compact_2_columns" title="document_listing_compact_2_columns" translateTitle="true"/>
            <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_listing_ajax_icon_2_columns" title="document_listing_icon_2_columns" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>CURRENT_SELECTION</selectionList>
          <actions category="CURRENT_SELECTION_LIST"/>
    
        </contentView>
  • <contentView name="byType">
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <!-- search doc maintained here -->
            <whereClause>
              <predicate operator="STARTSWITH" parameter="cmdoc:type">
                <field name="type" schema="case_item"/>
              </predicate>
              <fixedPart>
                ecm:mixinType != 'HiddenInNavigation' AND ecm:currentLifeCycleState
                !='deleted' AND ecm:mixinType = 'CaseGroupable' AND ecm:mixinType =
                'Distributable'
              </fixedPart>
            </whereClause>
            <sortColumn>
              <field name="sortColumn" schema="advanced_search"/>
            </sortColumn>
            <sortAscending>
              <field name="sortAscending" schema="advanced_search"/>
            </sortAscending>
            <pageSize>10</pageSize>
          </coreQueryPageProvider>
    
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>only_one_cache</cacheKey>
          <cacheSize>1</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="document_virtual_navigation_listing_ajax" title="document_listing" translateTitle="true"/>
            <layout iconPath="/icons/document_listing_compact_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_compact_2_columns" title="document_listing_compact_2_columns" translateTitle="true"/>
            <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_icon_2_columns" title="document_listing_icon_2_columns" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>CURRENT_SELECTION</selectionList>
          <actions category="CURRENT_SELECTION_LIST"/>
    
        </contentView>
  • <contentView name="DOCUMENT_HISTORY">
          <showFilterForm>false</showFilterForm>
          <showPageSizeSelector>false</showPageSizeSelector>
          <showRefreshCommand>false</showRefreshCommand>
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="history_listing" showCSVExport="false" showPDFExport="false" title="history_listing" translateTitle="true"/>
          </resultLayouts>
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <contentView name="mailbox_service_content">

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>
          SELECT * FROM Document WHERE ecm:parentId = ? AND
          ecm:isCheckedInVersion = 0 AND ecm:mixinType != 'HiddenInNavigation'
          AND ecm:currentLifeCycleState != 'deleted' AND ecm:mixinType =
          'CaseLink' AND cslk:draft = 0
        </pattern>
        <parameter>#{currentMailbox.document.id}</parameter>
        <sort ascending="false" column="cslk:date"/>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>mailbox_service_content</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="cm_inbox_caselink" title="document_listing" translateTitle="true"/>
      </resultLayouts>

      <selectionList>CURRENT_SELECTION</selectionList>

    </contentView>

    <contentView name="mailbox_inbox_content">

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>
          SELECT * FROM Document WHERE ecm:parentId = ? AND
          ecm:isCheckedInVersion = 0 AND ecm:mixinType != 'HiddenInNavigation'
          AND ecm:currentLifeCycleState != 'deleted' AND ecm:mixinType =
          'CaseLink' AND cslk:isSent = 0 AND cslk:draft = 0
        </pattern>
        <parameter>#{currentMailbox.document.id}</parameter>
        <sort ascending="false" column="cslk:date"/>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>mailbox_inbox_content</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="cm_inbox_caselink" title="document_listing" translateTitle="true"/>
      </resultLayouts>

      <showFilterForm>true</showFilterForm>
      <showPageSizeSelector>false</showPageSizeSelector>
      <showRefreshCommand>false</showRefreshCommand>
    </contentView>

    <contentView name="mailbox_sent_content">

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>
          SELECT * FROM Document WHERE ecm:parentId = ? AND
          ecm:isCheckedInVersion = 0 AND ecm:mixinType != 'HiddenInNavigation'
          AND ecm:currentLifeCycleState != 'deleted' AND ecm:mixinType =
          'CaseLink' AND cslk:isSent = 1 AND cslk:draft = 0
        </pattern>
        <parameter>#{currentMailbox.document.id}</parameter>
        <sort ascending="false" column="cslk:date"/>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>mailbox_sent_content</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="cm_sent_caselink" title="document_listing" translateTitle="true"/>
      </resultLayouts>
      <showFilterForm>true</showFilterForm>
      <showPageSizeSelector>false</showPageSizeSelector>
      <showRefreshCommand>false</showRefreshCommand>

    </contentView>

    <contentView name="mailbox_draft_content">

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>
          SELECT * FROM Document WHERE ecm:parentId = ? AND
          ecm:isCheckedInVersion = 0 AND ecm:mixinType != 'HiddenInNavigation'
          AND ecm:currentLifeCycleState != 'deleted' AND ecm:mixinType =
          'CaseLink' AND cslk:draft = 1
        </pattern>
        <parameter>#{currentMailbox.document.id}</parameter>
        <sort ascending="true" column="dc:title"/>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>mailbox_draft_content</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="cm_draft_caselink" title="document_listing" translateTitle="true"/>
      </resultLayouts>

      <selectionList>CURRENT_SELECTION</selectionList>
      <actions category="CASE_MANAGEMENT_CURRENT_SELECTION_LIST"/>
	  <showFilterForm>true</showFilterForm>
      <showPageSizeSelector>false</showPageSizeSelector>
      <showRefreshCommand>false</showRefreshCommand>
    </contentView>

    <contentView name="mailbox_plans_content">

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>
          SELECT * FROM ClassificationRoot WHERE ecm:parentId = ? AND
          ecm:isCheckedInVersion = 0 AND ecm:mixinType != 'HiddenInNavigation'
          AND ecm:currentLifeCycleState != 'deleted'
        </pattern>
        <parameter>#{currentDocument.id}</parameter>
        <sort ascending="true" column="dc:title"/>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>#{currentDocument.id}</cacheKey>
      <cacheSize>10</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="document_listing_ajax" title="document_listing" translateTitle="true"/>
        <layout iconPath="/icons/document_listing_compact_2_columns_icon.png" name="document_listing_ajax_compact_2_columns" title="document_listing_compact_2_columns" translateTitle="true"/>
        <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_listing_ajax_icon_2_columns" title="document_listing_icon_2_columns" translateTitle="true"/>
      </resultLayouts>

      <selectionList>CURRENT_SELECTION</selectionList>
      <actions category="CURRENT_SELECTION_LIST"/>

    </contentView>

    <contentView name="byType">
      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <!-- search doc maintained here -->
        <whereClause>
          <predicate operator="STARTSWITH" parameter="cmdoc:type">
            <field name="type" schema="case_item"/>
          </predicate>
          <fixedPart>
            ecm:mixinType != 'HiddenInNavigation' AND ecm:currentLifeCycleState
            !='deleted' AND ecm:mixinType = 'CaseGroupable' AND ecm:mixinType =
            'Distributable'
          </fixedPart>
        </whereClause>
        <sortColumn>
          <field name="sortColumn" schema="advanced_search"/>
        </sortColumn>
        <sortAscending>
          <field name="sortAscending" schema="advanced_search"/>
        </sortAscending>
        <pageSize>10</pageSize>
      </coreQueryPageProvider>

      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>only_one_cache</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="document_virtual_navigation_listing_ajax" title="document_listing" translateTitle="true"/>
        <layout iconPath="/icons/document_listing_compact_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_compact_2_columns" title="document_listing_compact_2_columns" translateTitle="true"/>
        <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_icon_2_columns" title="document_listing_icon_2_columns" translateTitle="true"/>
      </resultLayouts>

      <selectionList>CURRENT_SELECTION</selectionList>
      <actions category="CURRENT_SELECTION_LIST"/>

    </contentView>
    
    <!--see NXCM-372-->
    <contentView name="DOCUMENT_HISTORY">
      <showFilterForm>false</showFilterForm>
      <showPageSizeSelector>false</showPageSizeSelector>
      <showRefreshCommand>false</showRefreshCommand>
      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="history_listing" showCSVExport="false" showPDFExport="false" title="history_listing" translateTitle="true"/>
      </resultLayouts>
    </contentView>

  </extension>