[EMAIL PROTECTED] a écrit :
> There is already the generic code to do the requests.
>
> In CPS the administration of the directories like continent or country
> was done via the vocabulary tool. There is no vocabulary interface in
> Nuxeo yet.
Actually there is one. Please have a look to the vocabularies management link
next to the user management link.
You can also do that probrammatically with code such as:
Map<String, Object> pangeaEntry = new HashMap<String, Object>();
pangeaEntry.put("id", "pangea");
pangeaEntry.put("label", "Pangaea");
pangeaEntry.put("obsolete", 0);
DirectoryInstance dirInstance = DirectoryInstance.getInstance();
Directory dir = dirInstance.open("continent");
Session session = dir.getSession();
try {
session.createEntry(pangeaEntry);
} finally {
session.close();
}
--
Olivier
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm