This page explains how to use the Nuxeo Java API.
The Nuxeo Platform contains a built-in notion of service. Services are Java interfaces exposed and implemented by a Component.
From within a Nuxeo Runtime aware context, you can access a service locally (in the same JVM) by simply looking up its interface with
import org.nuxeo.runtime.api.Framework; [...] RelationManager rm = Framework.getService(RelationManager.class)
This service will be a singleton in the application. Once retrieved, you can use its own API.
You may want to use this API from:
- An Event Listener that would do some specific things,
- A custom operation that would use the built-in services,