-
Type: New Feature
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.4.2-RC2
-
Fix Version/s: 5.4.2-RC2
-
Component/s: None
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 :
<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>
I want to attach "_domaina" suffixed directories to the Domain A. For that I set the value into the super space:
session.getDocument(new PathRef("/domain-a"); doc.setPropertyValue("dirconf:suffix", "_domaina"); session.saveDocument(doc); session.save();
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 :
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.
This improvement will not take care about UI. This will be done into another task.
- is required by
-
NXP-6674 Implement a "Fetch Directory Values" operation.
- Resolved