[ https://jira.nuxeo.com/browse/NXP-6988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Jalon resolved NXP-6988. --------------------------------- Resolution: Fixed > Add local configuration management into the directory service (No managed > into the UI) > -------------------------------------------------------------------------------------- > > Key: NXP-6988 > URL: https://jira.nuxeo.com/browse/NXP-6988 > Project: Nuxeo Enterprise Platform > Issue Type: New Feature > Affects Versions: 5.4.2-RC2 > Reporter: Benjamin Jalon > Assignee: Benjamin Jalon > Fix For: 5.4.2-RC2 > > > As a developer, I want to extends vocabularies "continent", "country". I want > to set specifics vocabularies "continent" and "country" for my Domain A. > Here I create directories dedicated for my Domain A. > Here is the Dataserv contributions > the directory for Domain A : > {noformat} > <extension target="org.nuxeo.ecm.directory.sql.SQLDirectoryFactory" > point="directories"> > <directory name="country_domaina"> > <schema>xvocabulary</schema> > <dataFile>directories/country_tenanta.csv</dataFile> > ... > </directory> > </extension> > {noformat} > I want to attach "_domaina" suffixed directories to the Domain A. For that I > set the value into the super space: > {noformat} > session.getDocument(new PathRef("/domain-a"); > doc.setPropertyValue("dirconf:suffix", "_domaina"); > session.saveDocument(doc); > session.save(); > {noformat} > this action will tell to nuxeo to attach each directory suffixed "_domaina" > to the Domain A. > to get the directory with java the Directory service will provide a new > method : > {noformat} > DirectoryService ds = Framework.getService(DirectoryService.class); > Session session = ds.openSession("country", currentDocument); > // this will try to find the local configuration "Directory" of > currentDocument. > // this will use the value of this configuration to fetch the > "typeofcontract_valueOfTheLocalConfiguration > // After that, I can use the session like all standard directory. > {noformat} > This improvement will not take care about UI. This will be done into another > task. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ ECM-tickets mailing list ECM-tickets@lists.nuxeo.com http://lists.nuxeo.com/mailman/listinfo/ecm-tickets