Platform Explorer / Nuxeo Platform 2021.49

Component org.nuxeo.ecm.platform.audit.PageProviderservice.contrib

Resolution Order

288
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0"?>

<component name="org.nuxeo.ecm.platform.audit.PageProviderservice.contrib">

  <extension target="org.nuxeo.ecm.platform.query.api.PageProviderService"
    point="providers">

    <genericPageProvider name="DOCUMENT_HISTORY_PROVIDER_OLD"
      class="org.nuxeo.ecm.platform.audit.api.AuditPageProvider">
      <whereClause docType="BasicAuditSearch">
        <fixedPart>
          log.docUUID = ?
        </fixedPart>
        <predicate parameter="log.eventDate" operator="BETWEEN">
          <field schema="basicauditsearch" name="startDate" />
          <field schema="basicauditsearch" name="endDate" />
        </predicate>
        <predicate parameter="log.category" operator="IN">
          <field schema="basicauditsearch" name="eventCategories" />
        </predicate>
        <predicate parameter="log.eventId" operator="=">
          <field schema="basicauditsearch" name="eventId" />
        </predicate>
      </whereClause>
      <sort column="log.eventDate" ascending="true" />
      <pageSize>10</pageSize>
    </genericPageProvider>

    <genericPageProvider name="LATEST_AUDITED_CREATED_USERS_OR_GROUPS_PROVIDER"
      class="org.nuxeo.ecm.platform.audit.api.AuditPageProvider">
      <whereClause docType="BasicAuditSearch">
        <fixedPart>
          log.eventId = 'user_created' OR log.eventId = 'group_created'
        </fixedPart>
      </whereClause>
      <sort column="log.eventDate" ascending="false" />
      <pageSize>10</pageSize>
    </genericPageProvider>

    <genericPageProvider name="LATEST_CREATED_USERS_OR_GROUPS_PROVIDER"
      class="org.nuxeo.ecm.platform.audit.provider.LatestCreatedUsersOrGroupsPageProvider">
    </genericPageProvider>

    <genericPageProvider name="DOCUMENT_HISTORY_PROVIDER"
      class="org.nuxeo.ecm.platform.audit.api.document.DocumentHistoryPageProvider">
      <whereClause docType="BasicAuditSearch">
        <predicate parameter="log.eventDate" operator="BETWEEN">
          <field schema="basicauditsearch" name="startDate" />
          <field schema="basicauditsearch" name="endDate" />
        </predicate>
        <predicate parameter="log.category" operator="=">
          <field schema="basicauditsearch" name="eventCategory" />
        </predicate>
        <predicate parameter="log.category" operator="IN">
          <field schema="basicauditsearch" name="eventCategories" />
        </predicate>
        <predicate parameter="log.eventId" operator="=">
          <field schema="basicauditsearch" name="eventId" />
        </predicate>
        <predicate parameter="log.eventId" operator="IN">
          <field schema="basicauditsearch" name="eventIds" />
        </predicate>
        <predicate parameter="log.principalName" operator="=">
          <field schema="basicauditsearch" name="principalName" />
        </predicate>
        <predicate parameter="log.principalName" operator="IN">
          <field schema="basicauditsearch" name="principalNames" />
        </predicate>
      </whereClause>
      <sort column="log.eventDate" ascending="false" />
      <sort column="log.id" ascending="false" />
      <pageSize>10</pageSize>
      <maxPageSize>1000</maxPageSize>
    </genericPageProvider>

  </extension>

</component>