Hi,
I don't think this "singleton" feature is already implemented.
I would say that a synchronous listener could do the trick.
Listener can do the check and throw an execption (or ask for rollback)
if there is already an instance of this doc type in the container.
A facet could be used in order to make your listener more generic.
About a good idea : why not if you have use cases :)
Tiry
Bruno Dupuis a écrit :
Hello
I want the user to be able to create one single document of a custom
document type into a given workspace. Is there a way to do this
without long and boring java code? Maybe a facet in its definition?
If not, i may try to implement this feature into Nuxeo.
Do you think it's a good idea?
Thanks
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm