Actually there is already the DocumentModel.getId() / getRef() methods that 
returns a  repository wide unique id. You can use this id to build URLs that 
don't change when a document is moved from a workspace to another. For instance:

  
http://dm.demo.nuxeo.com/nuxeo/nxdoc/default/6266ef67-935e-434a-a985-b2eb39441f69/view_documents

points to the same document as :

  
http://dm.demo.nuxeo.com/nuxeo/nxpath/default/default-domain/workspaces/test-worksp...@view_documents

However you cannot customize the way the id ref is generated. If you need a 
custom repository wide id that follows you own business rules then you can use 
the .UIDGeneratorService and store the id in your own schema and fields.
--
Posted by "ogrisel" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=4023#12382>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to