Platform Explorer / Nuxeo Platform 2021

Component DublinCoreStorageService

Documentation

The DublinCoreStorageService listen to Core event DOCUMENT_UPDATED and DOCUMENT_CREATED. If the target document has the dublincore schema, this service will then update some meta-data. The fields calculated by this event listener are: - the creation date - the modification date - the contributors list

The DublinCoreStorageService exposes an simple api for updating meta-data.

Resolution Order

333
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.

Start Order

734
The start order represents the order in which this component has been started by the Nuxeo Runtime framework.
This number is interesting to tweak if your Java component interacts with other components, and needs to be started before or after another one.
It can be changed by implementing the method "Component#getApplicationStartedOrder()" on your Java component: components are sorted according to this reference value, in increasing order.
The default value is 1000, and the repository initialization uses number 100. Negative values can also be used.

Implementation

Services

Contributions

XML Source

<?xml version="1.0"?>
<component name="DublinCoreStorageService" version="1.0.0">


  <implementation class="org.nuxeo.ecm.platform.dublincore.service.DublinCoreStorageServiceImpl"/>

  <service>
    <provide interface="org.nuxeo.ecm.platform.dublincore.service.DublinCoreStorageService"/>
  </service>

  <documentation>
    The DublinCoreStorageService listen to Core event DOCUMENT_UPDATED and
    DOCUMENT_CREATED. If the target document has the dublincore schema, this
    service will then update some meta-data. The fields calculated by this event
    listener are: - the creation date - the modification date - the
    contributors list

    The DublinCoreStorageService exposes an simple api for updating meta-data.

    @author Thierry Delprat (td@nuxeo.com)
  </documentation>

  <extension target="org.nuxeo.ecm.core.event.EventServiceComponent" point="listener">
    <documentation>
      Listen for Core event DOCUMENT_UPDATED and DOCUMENT_CREATED and call the
      DublinCoreStorageService.

      @author Thierry Delprat (td@nuxeo.com)
    </documentation>

    <listener name="dclistener" async="false" postCommit="false"
              class="org.nuxeo.ecm.platform.dublincore.listener.DublinCoreListener" priority="120">
      <event>aboutToCreate</event>
      <event>beforeDocumentModification</event>
      <event>documentPublished</event>
      <event>lifecycle_transition_event</event>
      <event>documentCreatedByCopy</event>
    </listener>

  </extension>

  <extension target="org.nuxeo.runtime.ConfigurationService" point="configuration">
    <documentation>
      Property that enables resetting creator, creation date and last modification date on document copy.
    </documentation>
    <property name="nuxeo.dclistener.reset-creator-on-copy">false</property>
  </extension>

</component>