Skip to end of metadata
Go to start of metadata

Jboss with Nuxeo EP is downloaded from http://www.nuxeo.com/en/downloads/download-ep-form
Source code of nuxeo is downloaded following the instructions using mercurial.
Here is described what is OSGI bundle, component, extension point.
Here is described how to create new Nuxeo Java bundle.

Two versions of the sample are created:

  • The first one - using rest service to be saved entered file description, invoked with ajax request from javascript.
  • The second one - using managed bean to be saved entered file description.

Samples are created with the help of nuxeo sample project which can be checkouted with mercurial from address http://hg.nuxeo.org/nuxeo/nuxeo-common#5.4

All objects in nuxeo definition are called document. A folder is document, a file is document. Every object is identified by unique id(UUID)
It is created manually new workspace named British. It is added a new tab named 'Sirma Edit Metadata' for document object File, which contains one input field for entering new description, and a button 'Edit'.

Тab 'Sirma Edit Metadata'

That's structure of a Nuxeo Java bundle

The first one sample- using rest service

Code of rest service

Rest service can be invoked from url: http://JBOSS_HOST:JBOSS_PORT/nuxeo/restAPI/sirmaHelloWorld. The following code is added in restpack-contrib.xml.

Code of hello_view.xhtml

New description and id of the document Object File are extracted. Rest service is invoked using ajax.

To be visualised the new tab it's edited actions-contrib.xml with the following code. How to add new tab is described here

MANIFEST.MF must contains:

The sample depends on components (classes in the modules) listed in Require-Bundle

The second one sample - using managed bean

Code of Seam Managed Bean

Code of hello_view.xhtml

To be visualised the new tab it's edited actions-contrib.xml with the following code. How to add new tab is described here

MANIFEST.MF must contains:

There's a problem - I can't deploy my own java bundle with the code for the samples. They are all created on the base of nuxeo sample project.
I've posted that problem in nuxeo development forum.

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Oct 07, 2011

    http://wiki.collectionspace.org/display/DOC/Developing+for+CollectionSpace

    Tech details on development and deployment for CollectionSpace project and Nuxeo version 5.2