Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-6988

Add local configuration management into the directory service (No managed into the UI)

    XMLWordPrintable

    Details

    • 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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bjalon Benjamin Jalon
                Reporter:
                bjalon Benjamin Jalon
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: