Nuxeo Sample registers bare contributions defined in https://github.com/nuxeo/nuxeo-sample-project to help developers discover contributions mechanism.
Installation
This addon requires no specific installation steps. It can be installed like any other package with nuxeoctl command line or from the Update Center.
Samples
Content Enricher
Related files:
Enricher
: SampleDocumentEnricher.javaContribution
: sample-document-enricher-contrib.xmlUnit Test
: SampleDocumentEnricherTest.java
Asynchronous Listener
Related files:
Listener
: SampleAsyncListener.javaContribution
: sample-async-listener-contrib.xmlUnit Test
: TestSampleAsyncListener.java
Synchronous Listener
Related files:
Listener
: SampleSyncListener.javaContribution
: sample-sync-listener-contrib.xmlUnit Test
: TestSampleSyncListener.java
Operation
Related files:
Operation
: SampleOperation.javaContribution
: sample-operation-contrib.xmlUnit Test
: TestSampleOperation.java
Service
Related files:
Service Interface
: SampleService.javaService Implementation
: SampleServiceImpl.javaContribution
: sample-service.xmlUnit Test
: TestSampleService.java
To Go Further
Do not hesitate to give a look to Nuxeo CLI. We built it to help you reducing the amount of boilerplate you have to write.