Romain FERE a écrit : > Hi everyone, > > I'm using a event listener on the event "documentCreated" to create > sub-folders when an user create a folder. [...] > I don't know how to create sub-folders and after many searches I'm still > at the same point. >
I think you should use the content template manager for such use case. Please have a look at the default configuration in the webapp-core project to get an example: http://svn.nuxeo.org/nuxeo/org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-content-template-manager/src/main/resources/OSGI-INF/content-template-contrib.xml But to reply to your initial question you can have a look at the following method: FileManagerService.defaultCreateFolder(CoreSession documentManager, String fullname, String path, String containerTypeName, boolean checkAllowedSubTypes) throws ClientException; in: http://svn.nuxeo.org/nuxeo/org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-filemanager-core/src/main/java/org/nuxeo/ecm/platform/filemanager/service/FileManagerService.java -- Olivier _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
