Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.admin.audit.contentView.contrib--contentViews

This contribution is part of XML component org.nuxeo.admin.audit.contentView.contrib inside nuxeo-admin-center-7.10-HF07.jar /OSGI-INF/content-view-contrib.xml

Extension point

Extension point contentViews of component ContentViewService.

Contributed items

  • <contentView name="EVENTS_VIEW">
    
          <title>label.contentview.document.history</title>
          <translateTitle>true</translateTitle>
          <showTitle>true</showTitle>
    
          <pageProvider name="EVENTS_VIEW">
            <property name="coreSession">#{documentManager}</property>
            <property name="generateUIComments">false</property>
          </pageProvider>
    
          <searchLayout filterDisplayType="quick" name="fullauditsearch"/>
          <showFilterForm>true</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 iconPath="/icons/document_listing_icon.png" name="event_listing" showCSVExport="true" showPDFExport="false" title="history_listing" translateTitle="true"/>
          </resultLayouts>
    
        </contentView>
  • <contentView name="PERMISSIONS_SEARCH">
    
          <showTitle>false</showTitle>
    
          <genericPageProvider class="org.nuxeo.ecm.platform.query.nxql.CoreQueryAndFetchPageProvider">
            <property name="coreSession">#{documentManager}</property>
            <property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
            <whereClause docType="PermissionsSearch">
              <fixedPart escapeParameters="false" quoteParameters="false" statement="SELECT ecm:uuid, dc:title, ecm:acl/*1/principal, ecm:acl/*1/creator, ecm:acl/*1/permission,               ecm:acl/*1/begin, ecm:acl/*1/end, ecm:acl/*1/status FROM Document">
                ecm:mixinType != 'HiddenInNavigation'
                AND ecm:isCheckedInVersion = 0
                AND SORTED_COLUMN IS NOT NULL
                ?
              </fixedPart>
              <predicate operator="IN" parameter="ecm:acl/*1/principal">
                <field name="ace_username" schema="permissions_search"/>
              </predicate>
              <predicate operator="IN" parameter="ecm:acl/*1/creator">
                <field name="ace_creator" schema="permissions_search"/>
              </predicate>
              <predicate operator="IN" parameter="ecm:acl/*1/permission">
                <field name="ace_permission" schema="permissions_search"/>
              </predicate>
              <predicate operator="&lt;=" parameter="ecm:acl/*1/begin">
                <field name="ace_begin" schema="permissions_search"/>
              </predicate>
              <predicate operator="&gt;=" parameter="ecm:acl/*1/end">
                <field name="ace_end" schema="permissions_search"/>
              </predicate>
              <predicate operator="LIKE" parameter="ecm:acl/*1/name">
                <field name="ace_acl_name" schema="permissions_search"/>
              </predicate>
              <predicate operator="IN" parameter="ecm:ancestorId">
                <field name="ecm_ancestorIds" schema="permissions_search"/>
              </predicate>
            </whereClause>
            <parameter>#{adminPermissionsActions.ACEStatusFixedPart}</parameter>
            <pageSize>20</pageSize>
            <sort ascending="true" column="dc:title"/>
          </genericPageProvider>
    
          <searchLayout filterDisplayType="default" filterUnfolded="true" name="permissions_search_filter"/>
          <showFilterForm>true</showFilterForm>
    
          <waitForExecution>true</waitForExecution>
    
          <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 iconPath="/icons/document_listing_icon.png" name="permissions_search_listing" showCSVExport="true" title="document_listing" translateTitle="true"/>
          </resultLayouts>
    
        </contentView>
  • <contentView name="PERMISSIONS_PURGE">
    
          <showTitle>false</showTitle>
    
          <pageProvider name="permissions_purge">
            <property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
            <property name="coreSession">#{documentManager}</property>
          </pageProvider>
    
          <searchLayout filterDisplayType="default" filterUnfolded="true" name="permissions_purge_filter"/>
          <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 iconPath="/icons/document_listing_icon.png" name="permissions_search_listing" showCSVExport="true" title="document_listing" translateTitle="true"/>
          </resultLayouts>
    
        </contentView>

XML source

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

    <contentView name="EVENTS_VIEW">

      <title>label.contentview.document.history</title>
      <translateTitle>true</translateTitle>
      <showTitle>true</showTitle>

      <pageProvider name="EVENTS_VIEW">
        <property name="coreSession">#{documentManager}</property>
        <property name="generateUIComments">false</property>
      </pageProvider>

      <searchLayout filterDisplayType="quick" name="fullauditsearch"/>
      <showFilterForm>true</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 iconPath="/icons/document_listing_icon.png" name="event_listing" showCSVExport="true" showPDFExport="false" title="history_listing" translateTitle="true"/>
      </resultLayouts>

    </contentView>

    <contentView name="PERMISSIONS_SEARCH">

      <showTitle>false</showTitle>

      <genericPageProvider class="org.nuxeo.ecm.platform.query.nxql.CoreQueryAndFetchPageProvider">
        <property name="coreSession">#{documentManager}</property>
        <property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
        <whereClause docType="PermissionsSearch">
          <fixedPart escapeParameters="false" quoteParameters="false" statement="SELECT ecm:uuid, dc:title, ecm:acl/*1/principal, ecm:acl/*1/creator, ecm:acl/*1/permission,               ecm:acl/*1/begin, ecm:acl/*1/end, ecm:acl/*1/status FROM Document">
            ecm:mixinType != 'HiddenInNavigation'
            AND ecm:isCheckedInVersion = 0
            AND SORTED_COLUMN IS NOT NULL
            ?
          </fixedPart>
          <predicate operator="IN" parameter="ecm:acl/*1/principal">
            <field name="ace_username" schema="permissions_search"/>
          </predicate>
          <predicate operator="IN" parameter="ecm:acl/*1/creator">
            <field name="ace_creator" schema="permissions_search"/>
          </predicate>
          <predicate operator="IN" parameter="ecm:acl/*1/permission">
            <field name="ace_permission" schema="permissions_search"/>
          </predicate>
          <predicate operator="&lt;=" parameter="ecm:acl/*1/begin">
            <field name="ace_begin" schema="permissions_search"/>
          </predicate>
          <predicate operator=">=" parameter="ecm:acl/*1/end">
            <field name="ace_end" schema="permissions_search"/>
          </predicate>
          <predicate operator="LIKE" parameter="ecm:acl/*1/name">
            <field name="ace_acl_name" schema="permissions_search"/>
          </predicate>
          <predicate operator="IN" parameter="ecm:ancestorId">
            <field name="ecm_ancestorIds" schema="permissions_search"/>
          </predicate>
        </whereClause>
        <parameter>#{adminPermissionsActions.ACEStatusFixedPart}</parameter>
        <pageSize>20</pageSize>
        <sort ascending="true" column="dc:title"/>
      </genericPageProvider>

      <searchLayout filterDisplayType="default" filterUnfolded="true" name="permissions_search_filter"/>
      <showFilterForm>true</showFilterForm>

      <waitForExecution>true</waitForExecution>

      <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 iconPath="/icons/document_listing_icon.png" name="permissions_search_listing" showCSVExport="true" title="document_listing" translateTitle="true"/>
      </resultLayouts>

    </contentView>

    <contentView name="PERMISSIONS_PURGE">

      <showTitle>false</showTitle>

      <pageProvider name="permissions_purge">
        <property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
        <property name="coreSession">#{documentManager}</property>
      </pageProvider>

      <searchLayout filterDisplayType="default" filterUnfolded="true" name="permissions_purge_filter"/>
      <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 iconPath="/icons/document_listing_icon.png" name="permissions_search_listing" showCSVExport="true" title="document_listing" translateTitle="true"/>
      </resultLayouts>

    </contentView>
  </extension>