Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.dam.querymodels--model

This contribution is part of XML component org.nuxeo.dam.querymodels inside nuxeo-dam-web-5.6-RC3.jar

Extension point

Extension point model of component QueryModelService.

Contributed items

  • <queryModel docType="FilterQuery" name="FILTERED_DOCUMENTS">
          <max>20</max>
    
          <whereClause>
    
            <predicate operator="LIKE" parameter="ecm:fulltext">
              <field name="ecm_fulltext" schema="filter_query"/>
            </predicate>
    
            <predicate operator="IN" parameter="ecm:primaryType">
              <field name="ecm_primaryType" schema="filter_query"/>
            </predicate>
    
            <predicate operator="STARTSWITH" parameter="dc:coverage">
              <field name="dc_coverage" schema="filter_query"/>
            </predicate>
    
            <predicate operator="STARTSWITH" parameter="dc:subjects">
              <field name="dc_subjects" schema="filter_query"/>
            </predicate>
    
            <predicate operator="STARTSWITH" parameter="ecm:path">
              <field name="ecm_path" schema="filter_query"/>
            </predicate>
    
            <predicate operator="STARTSWITH" parameter="ecm:path">
              <field name="asset_library_path" schema="filter_query"/>
            </predicate>
    
            <predicate operator="BETWEEN" parameter="damc:authoringDate">
              <field name="created_min" schema="filter_query"/>
              <field name="created_max" schema="filter_query"/>
            </predicate>
    
            <fixedPart>
              ecm:isProxy = 0 AND ecm:mixinType != 'HiddenInNavigation' AND ecm:mixinType = 'Asset'
              AND ecm:currentLifeCycleState != 'deleted' AND ecm:mixinType != 'Folderish'
            </fixedPart>
    
          </whereClause>
    
          <sortColumn>
            <field name="sortColumn" schema="filter_query"/>
          </sortColumn>
    
          <sortAscending>
            <field name="sortAscending" schema="filter_query"/>
          </sortAscending>
        </queryModel>
  • <queryModel name="USER_IMPORT_SETS">
          <pattern>
            SELECT * FROM Document WHERE ecm:primaryType = 'ImportSet' AND ecm:currentLifeCycleState != 'deleted'
            AND ecm:path STARTSWITH ? and dc:creator = ?
          </pattern>
          <sortable defaultSortAscending="false" defaultSortColumn="dc:created" value="true"/>
        </queryModel>
  • <queryModel name="IMPORT_FOLDERS">
          <pattern>
            SELECT * FROM Document WHERE ecm:primaryType = 'ImportFolder' AND ecm:currentLifeCycleState != 'deleted'
            AND ecm:path STARTSWITH ?
          </pattern>
          <sortable defaultSortAscending="true" defaultSortColumn="dc:title" value="true"/>
        </queryModel>

XML source

<extension point="model" target="org.nuxeo.ecm.core.search.api.client.querymodel.QueryModelService">

    <queryModel docType="FilterQuery" name="FILTERED_DOCUMENTS">
      <max>20</max>

      <whereClause>

        <predicate operator="LIKE" parameter="ecm:fulltext">
          <field name="ecm_fulltext" schema="filter_query"/>
        </predicate>

        <predicate operator="IN" parameter="ecm:primaryType">
          <field name="ecm_primaryType" schema="filter_query"/>
        </predicate>

        <predicate operator="STARTSWITH" parameter="dc:coverage">
          <field name="dc_coverage" schema="filter_query"/>
        </predicate>

        <predicate operator="STARTSWITH" parameter="dc:subjects">
          <field name="dc_subjects" schema="filter_query"/>
        </predicate>

        <predicate operator="STARTSWITH" parameter="ecm:path">
          <field name="ecm_path" schema="filter_query"/>
        </predicate>

        <predicate operator="STARTSWITH" parameter="ecm:path">
          <field name="asset_library_path" schema="filter_query"/>
        </predicate>

        <predicate operator="BETWEEN" parameter="damc:authoringDate">
          <field name="created_min" schema="filter_query"/>
          <field name="created_max" schema="filter_query"/>
        </predicate>

        <fixedPart>
          ecm:isProxy = 0 AND ecm:mixinType != 'HiddenInNavigation' AND ecm:mixinType = 'Asset'
          AND ecm:currentLifeCycleState != 'deleted' AND ecm:mixinType != 'Folderish'
        </fixedPart>

      </whereClause>

      <sortColumn>
        <field name="sortColumn" schema="filter_query"/>
      </sortColumn>

      <sortAscending>
        <field name="sortAscending" schema="filter_query"/>
      </sortAscending>
    </queryModel>

    <queryModel name="USER_IMPORT_SETS">
      <pattern>
        SELECT * FROM Document WHERE ecm:primaryType = 'ImportSet' AND ecm:currentLifeCycleState != 'deleted'
        AND ecm:path STARTSWITH ? and dc:creator = ?
      </pattern>
      <sortable defaultSortAscending="false" defaultSortColumn="dc:created" value="true"/>
    </queryModel>

    <queryModel name="IMPORT_FOLDERS">
      <pattern>
        SELECT * FROM Document WHERE ecm:primaryType = 'ImportFolder' AND ecm:currentLifeCycleState != 'deleted'
        AND ecm:path STARTSWITH ?
      </pattern>
      <sortable defaultSortAscending="true" defaultSortColumn="dc:title" value="true"/>
    </queryModel>

  </extension>