Platform Explorer / CMF 1.8

Component org.nuxeo.cm.contentview.contrib

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.cm.contentview.contrib">
  
  <require>org.nuxeo.platform.audit.contentView.contrib</require>
  
  <extension target="org.nuxeo.ecm.platform.ui.web.ContentViewService"
    point="contentViews">

    <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 column="cslk:date" ascending="false" />
        <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 name="cm_inbox_caselink" title="document_listing"
          translateTitle="true" iconPath="/icons/document_listing_icon.png" />
      </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 column="cslk:date" ascending="false" />
        <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 name="cm_inbox_caselink" title="document_listing"
          translateTitle="true" iconPath="/icons/document_listing_icon.png" />
      </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 column="cslk:date" ascending="false" />
        <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 name="cm_sent_caselink" title="document_listing"
          translateTitle="true" iconPath="/icons/document_listing_icon.png" />
      </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 column="dc:title" ascending="true" />
        <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 name="cm_draft_caselink" title="document_listing"
          translateTitle="true" iconPath="/icons/document_listing_icon.png" />
      </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 column="dc:title" ascending="true" />
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

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

      <resultLayouts>
        <layout name="document_listing_ajax" title="document_listing"
          translateTitle="true" iconPath="/icons/document_listing_icon.png" />
        <layout name="document_listing_ajax_compact_2_columns"
          title="document_listing_compact_2_columns" translateTitle="true"
          iconPath="/icons/document_listing_compact_2_columns_icon.png" />
        <layout name="document_listing_ajax_icon_2_columns"
          title="document_listing_icon_2_columns" translateTitle="true"
          iconPath="/icons/document_listing_icon_2_columns_icon.png" />
      </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 parameter="cmdoc:type" operator="STARTSWITH">
            <field schema="case_item" name="type" />
          </predicate>
          <fixedPart>
            ecm:mixinType != 'HiddenInNavigation' AND ecm:currentLifeCycleState
            !='deleted' AND ecm:mixinType = 'CaseGroupable' AND ecm:mixinType =
            'Distributable'
          </fixedPart>
        </whereClause>
        <sortColumn>
          <field schema="advanced_search" name="sortColumn" />
        </sortColumn>
        <sortAscending>
          <field schema="advanced_search" name="sortAscending" />
        </sortAscending>
        <pageSize>10</pageSize>
      </coreQueryPageProvider>

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

      <resultLayouts>
        <layout name="document_virtual_navigation_listing_ajax"
          title="document_listing" translateTitle="true"
          iconPath="/icons/document_listing_icon.png" />
        <layout
          name="document_virtual_navigation_listing_ajax_compact_2_columns"
          title="document_listing_compact_2_columns" translateTitle="true"
          iconPath="/icons/document_listing_compact_2_columns_icon.png" />
        <layout name="document_virtual_navigation_listing_ajax_icon_2_columns"
          title="document_listing_icon_2_columns" translateTitle="true"
          iconPath="/icons/document_listing_icon_2_columns_icon.png" />
      </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 name="history_listing" title="history_listing"
          translateTitle="true" iconPath="/icons/document_listing_icon.png"
          showCSVExport="false" showPDFExport="false" />
      </resultLayouts>
    </contentView>

  </extension>

</component>