Platform Explorer / CMF 1.8

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

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

Extension Point

Extension point contentViews of component ContentViewService.

Contributed Items

  • <contentView name="simple_search">
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern>
              SELECT * FROM Document WHERE ecm:fulltext LIKE ? AND ecm:mixinType !=
              'HiddenInNavigation' AND (ecm:mixinType IN ('Distributable' ,
              'CaseGroupable')) AND ecm:isCheckedInVersion = 0 AND
              ecm:currentLifeCycleState != 'deleted'
            </pattern>
            <parameter>#{documentSearchActions.simpleSearchKeywords}</parameter>
            <sort ascending="true" column="dc:title"/>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>only_one_cache</cacheKey>
          <cacheSize>1</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="search_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="advanced_search">
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <whereClause docType="AdvancedSearch">
              <predicate operator="FULLTEXT" parameter="ecm:fulltext">
                <field name="fulltext_all" schema="advanced_search"/>
              </predicate>
    
              <predicate operator="=" parameter="ecm:isCheckedInVersion">
                <field name="isCheckedInVersion" schema="advanced_search"/>
              </predicate>
    
              <predicate operator="STARTSWITH" parameter="ecm:path">
                <field name="searchpath" schema="advanced_search"/>
              </predicate>
    
              <predicate operator="FULLTEXT" parameter="dc:title">
                <field name="title" schema="advanced_search"/>
              </predicate>
    
              <predicate operator="FULLTEXT" parameter="dc:description">
                <field name="description" schema="advanced_search"/>
              </predicate>
    
              <predicate operator="LIKE" parameter="dc:rights">
                <field name="rights" schema="advanced_search"/>
              </predicate>
    
              <predicate operator="LIKE" parameter="dc:source">
                <field name="source" schema="advanced_search"/>
              </predicate>
    
              <predicate operator="IN" parameter="dc:nature">
                <field name="nature" schema="advanced_search"/>
              </predicate>
    
              <predicate operator="IN" parameter="dc:coverage">
                <field name="coverage" schema="advanced_search"/>
              </predicate>
    
              <predicate operator="IN" parameter="dc:subjects">
                <field name="subjects" schema="advanced_search"/>
              </predicate>
    
              <predicate operator="BETWEEN" parameter="dc:created">
                <field name="created_min" schema="advanced_search"/>
                <field name="created_max" schema="advanced_search"/>
              </predicate>
    
              <predicate operator="BETWEEN" parameter="dc:modified">
                <field name="modified_min" schema="advanced_search"/>
                <field name="modified_max" schema="advanced_search"/>
              </predicate>
    
              <predicate operator="BETWEEN" parameter="dc:issued">
                <field name="issued_min" schema="advanced_search"/>
                <field name="issued_max" schema="advanced_search"/>
              </predicate>
    
              <predicate operator="BETWEEN" parameter="dc:valid">
                <field name="valid_min" schema="advanced_search"/>
                <field name="valid_max" schema="advanced_search"/>
              </predicate>
    
              <predicate operator="BETWEEN" parameter="dc:expired">
                <field name="expired_min" schema="advanced_search"/>
                <field name="expired_max" schema="advanced_search"/>
              </predicate>
    
              <predicate operator="LIKE" parameter="dc:format">
                <field name="format" schema="advanced_search"/>
              </predicate>
    
              <predicate operator="LIKE" parameter="dc:language">
                <field name="language" schema="advanced_search"/>
              </predicate>
    
              <predicate operator="IN" parameter="ecm:currentLifeCycleState">
                <field name="currentLifeCycleStates" schema="advanced_search"/>
              </predicate>
              <fixedPart>
                ecm:mixinType != 'HiddenInNavigation' AND ecm:isCheckedInVersion = 0
                AND (ecm:mixinType IN ('CaseGroupable' , 'Distributable'))
              </fixedPart>
            </whereClause>
            <sort ascending="true" column="dc:title"/>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <searchLayout name="advanced_search"/>
    
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>only_one_cache</cacheKey>
          <cacheSize>1</cacheSize>
    
          <!-- TODO: add bindings here instead of search results templates -->
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="search_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>

XML Source

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

    <contentView name="simple_search">

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>
          SELECT * FROM Document WHERE ecm:fulltext LIKE ? AND ecm:mixinType !=
          'HiddenInNavigation' AND (ecm:mixinType IN ('Distributable' ,
          'CaseGroupable')) AND ecm:isCheckedInVersion = 0 AND
          ecm:currentLifeCycleState != 'deleted'
        </pattern>
        <parameter>#{documentSearchActions.simpleSearchKeywords}</parameter>
        <sort ascending="true" column="dc:title"/>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

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

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="search_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="advanced_search">

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <whereClause docType="AdvancedSearch">
          <predicate operator="FULLTEXT" parameter="ecm:fulltext">
            <field name="fulltext_all" schema="advanced_search"/>
          </predicate>

          <predicate operator="=" parameter="ecm:isCheckedInVersion">
            <field name="isCheckedInVersion" schema="advanced_search"/>
          </predicate>

          <predicate operator="STARTSWITH" parameter="ecm:path">
            <field name="searchpath" schema="advanced_search"/>
          </predicate>

          <predicate operator="FULLTEXT" parameter="dc:title">
            <field name="title" schema="advanced_search"/>
          </predicate>

          <predicate operator="FULLTEXT" parameter="dc:description">
            <field name="description" schema="advanced_search"/>
          </predicate>

          <predicate operator="LIKE" parameter="dc:rights">
            <field name="rights" schema="advanced_search"/>
          </predicate>

          <predicate operator="LIKE" parameter="dc:source">
            <field name="source" schema="advanced_search"/>
          </predicate>

          <predicate operator="IN" parameter="dc:nature">
            <field name="nature" schema="advanced_search"/>
          </predicate>

          <predicate operator="IN" parameter="dc:coverage">
            <field name="coverage" schema="advanced_search"/>
          </predicate>

          <predicate operator="IN" parameter="dc:subjects">
            <field name="subjects" schema="advanced_search"/>
          </predicate>

          <predicate operator="BETWEEN" parameter="dc:created">
            <field name="created_min" schema="advanced_search"/>
            <field name="created_max" schema="advanced_search"/>
          </predicate>

          <predicate operator="BETWEEN" parameter="dc:modified">
            <field name="modified_min" schema="advanced_search"/>
            <field name="modified_max" schema="advanced_search"/>
          </predicate>

          <predicate operator="BETWEEN" parameter="dc:issued">
            <field name="issued_min" schema="advanced_search"/>
            <field name="issued_max" schema="advanced_search"/>
          </predicate>

          <predicate operator="BETWEEN" parameter="dc:valid">
            <field name="valid_min" schema="advanced_search"/>
            <field name="valid_max" schema="advanced_search"/>
          </predicate>

          <predicate operator="BETWEEN" parameter="dc:expired">
            <field name="expired_min" schema="advanced_search"/>
            <field name="expired_max" schema="advanced_search"/>
          </predicate>

          <predicate operator="LIKE" parameter="dc:format">
            <field name="format" schema="advanced_search"/>
          </predicate>

          <predicate operator="LIKE" parameter="dc:language">
            <field name="language" schema="advanced_search"/>
          </predicate>

          <predicate operator="IN" parameter="ecm:currentLifeCycleState">
            <field name="currentLifeCycleStates" schema="advanced_search"/>
          </predicate>
          <fixedPart>
            ecm:mixinType != 'HiddenInNavigation' AND ecm:isCheckedInVersion = 0
            AND (ecm:mixinType IN ('CaseGroupable' , 'Distributable'))
          </fixedPart>
        </whereClause>
        <sort ascending="true" column="dc:title"/>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <searchLayout name="advanced_search"/>

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

      <!-- TODO: add bindings here instead of search results templates -->

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="search_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>

  </extension>