Le jeudi 30 août 2007 à 15:49 +0200, Wojciech Biela a écrit :
> Hello,
>
> I'm new to Nuxeo so please don't shoot.
I won't :)
>
> I'm reading through the docs, and either I'm blind or I'm totally
> missing some point. I'm looking for a doc/tutorial that will tell me
> how to develop a portal (or any custom webapp) that would be managed
> (its documents edited) via a CMS, and the documents would be stored in
> a content repository. Sounds simple, but I can't find anything about
> it. All I see (maybe I'm seeing it wrong) is how to extend the Nuxeo
> EP (ie. CMS), but that about the portal/webapp that feeds on the
> documents edited by that CMS?
>
> In my head I have a desired architecture like the HippoCMS has (
> http://www.hippoportal.org/download/attachments/11132/architecture_hippo_portal_small.jpg
> )
>
In fact Nuxeo5 is not very far from this architecture.
We have 3 main layers :
- Nuxeo Repository : Nuxeo Core
Exports EJB3 API.
- Nuxeo Services
Workflow, Relation, Transformation, Indexation ...
Each service is exposed via an EJB3 API.
- Nuxeo WebApp
Web application that used the repository and Nuxeo Services to let you
browse and use the documents.
So if you want to have a custom webapp on top of nuxeo stack you have
several solutions :
1 - Customize Nuxeo WebApp
This is the solution that is used for most projects.
Using extension point system you can easily :
- change the look & feel of the webapp using Nuxeo Theme engine
- redefine, add or remove actions, tabs and button using Action system
- remove or disable the services and components you don't need
- configure user repository (LDAP/SQL)
- configure indexation
- define your authentication method (NuxeoPluggableAuthentication)
- add your contributions
- document types, lifecycle
- workflows
- event listeners
If you want to go this way a good start could be the nuxeo sample
project
(http://svn.nuxeo.org/trac/nuxeo/browser/org.nuxeo.project.sample) and
fellow nuxeo book tutorial .
Using this solution, you can create complexe ECM webapp that don't look
at all like Nuxeo 5 standard webapp.
2 - Create your own specific webapp using JSF/Seam and Nuxeo Services
You can reuse nuxeo-platform-ui-web and action system if you want to
build you own webapp but still want to use Seam and JSF.
3 - Create you own specific webapp using Nuxeo Services
You can directly create you own webapp and simply use Nuxeo Services.
Using Nuxeo services is demonstrated in the sample-api client
(http://svn.nuxeo.org/trac/nuxeo/browser/sandbox/nuxeo-api-sample/trunk).
In you webapp, you will only have a dependecy on Nuxeo Runtime and on
API package of Nuxeo.
To see how to include Runtime (OSGi) in you app, you can take a look
at :
http://svn.nuxeo.org/trac/nuxeo/browser/tools/build/nuxeo-client-build
4 - Create your own webapp using Nuxeo RestAPI
Nuxeo also exposes a simple restAPI.
A webdav interface will also be released soon.
This is the solution we choose to implement simple JSR168 portlets that
display contents comming from Nuxeo5.
You can see some examples in the sandbox :
nuxeo-http-client
nuxeo-platform-restPack
nuxeo-portlet-search
NB : this part is under development but is already testable. This should
be ready in less than a couple of weeks.
Hope this helps.
Don't hesitate to come back if you have more questions or need further
explanations :)
Tiry
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm