Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.ecm.platform.routing.contentView.contrib--contentViews

This contribution is part of XML component org.nuxeo.ecm.platform.routing.contentView.contrib inside nuxeo-platform-document-routing-web-5.6.jar

Extension point

Extension point contentViews of component ContentViewService.

Contributed items

  • <contentView name="route_past_steps">
          <title>label.document.routing.past.steps</title>
          <translateTitle>true</translateTitle>
          <showTitle>true</showTitle>
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <parameter>#{currentDocument.id}</parameter>
            <whereClause docType="TaskDoc">
              <fixedPart>
                nt:targetDocumentId = ? AND
                ecm:currentLifeCycleState = 'ended'
              </fixedPart>
            </whereClause>
            <pageSize>0</pageSize>
          </coreQueryPageProvider>
          <showFilterForm>false</showFilterForm>
          <showPageSizeSelector>false</showPageSizeSelector>
          <useGlobalPageSize>false</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentCreated</event>
          </refresh>
          <cacheSize>10</cacheSize>
          <cacheKey>#{org.jboss.seam.core.manager.currentConversationId}
          </cacheKey>
          <resultLayouts>
            <layout iconPath="" name="route_content_view_layout" showCSVExport="false" showPDFExport="false" title="" translateTitle=""/>
          </resultLayouts>
        </contentView>
  • <contentView name="previous_routes">
          <title>Previous Routes</title>
          <translateTitle>false</translateTitle>
          <showTitle>true</showTitle>
          <genericPageProvider class="org.nuxeo.ecm.platform.routing.web.PreviousRoutesPageProvider">
            <property name="coreSession">#{documentManager}</property>
            <property name="generateUIComments">false</property>
            <property name="documentID">#{currentDocument.id}</property>
            <whereClause docType="BasicAuditSearch">
              <fixedPart>
                log.category = 'eventDocumentCategory' AND log.eventId='auditLogRoute' AND
                log.extendedInfos['attachDocumentID'].stringValue = '?'
              </fixedPart>
            </whereClause>
            <sort ascending="false" column="log.eventDate"/>
            <pageSize>10</pageSize>
            <maxPageSize>1000</maxPageSize>
          </genericPageProvider>
          <showFilterForm>false</showFilterForm>
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentCreated</event>
          </refresh>
          <cacheSize>10</cacheSize>
          <cacheKey>#{org.jboss.seam.core.manager.currentConversationId}
          </cacheKey>
          <resultLayouts>
            <layout name="previous_routes_content_view_layout" showCSVExport="false" showPDFExport="false" title="Previous Routes" translateTitle="true"/>
          </resultLayouts>
        </contentView>

XML source

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

    <contentView name="route_past_steps">
      <title>label.document.routing.past.steps</title>
      <translateTitle>true</translateTitle>
      <showTitle>true</showTitle>
      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <parameter>#{currentDocument.id}</parameter>
        <whereClause docType="TaskDoc">
          <fixedPart>
            nt:targetDocumentId = ? AND
            ecm:currentLifeCycleState = 'ended'
          </fixedPart>
        </whereClause>
        <pageSize>0</pageSize>
      </coreQueryPageProvider>
      <showFilterForm>false</showFilterForm>
      <showPageSizeSelector>false</showPageSizeSelector>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentCreated</event>
      </refresh>
      <cacheSize>10</cacheSize>
      <cacheKey>#{org.jboss.seam.core.manager.currentConversationId}
      </cacheKey>
      <resultLayouts>
        <layout iconPath="" name="route_content_view_layout" showCSVExport="false" showPDFExport="false" title="" translateTitle=""/>
      </resultLayouts>
    </contentView>

    <contentView name="previous_routes">
      <title>Previous Routes</title>
      <translateTitle>false</translateTitle>
      <showTitle>true</showTitle>
      <genericPageProvider class="org.nuxeo.ecm.platform.routing.web.PreviousRoutesPageProvider">
        <property name="coreSession">#{documentManager}</property>
        <property name="generateUIComments">false</property>
        <property name="documentID">#{currentDocument.id}</property>
        <whereClause docType="BasicAuditSearch">
          <fixedPart>
            log.category = 'eventDocumentCategory' AND log.eventId='auditLogRoute' AND
            log.extendedInfos['attachDocumentID'].stringValue = '?'
          </fixedPart>
        </whereClause>
        <sort ascending="false" column="log.eventDate"/>
        <pageSize>10</pageSize>
        <maxPageSize>1000</maxPageSize>
      </genericPageProvider>
      <showFilterForm>false</showFilterForm>
      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentCreated</event>
      </refresh>
      <cacheSize>10</cacheSize>
      <cacheKey>#{org.jboss.seam.core.manager.currentConversationId}
      </cacheKey>
      <resultLayouts>
        <layout name="previous_routes_content_view_layout" showCSVExport="false" showPDFExport="false" title="Previous Routes" translateTitle="true"/>
      </resultLayouts>
    </contentView>
  </extension>