Platform Explorer / Nuxeo Platform LTS 2015 7.10

Service org.nuxeo.ecm.directory.api.DirectoryService

Documentation

Implementation

org.nuxeo.ecm.directory.api.DirectoryService

Click for full Javadoc

Additional documentation

Code Sample   How To  
Open and close a directory session
  • 5.3.1
  • 5.3.2-SNAPSHOT
        
        DirectoryService dirService = Framework.getService(DirectoryService.class);
        Session session = dirService.open(directoryName);
        try {
            // some code here
        } finally {
            try {
                session.close();
            } catch (ClientException e) {
                log.warn("Could not close a session on directory "
                        + directoryName, e);
            }
        }
Get the directory service
  • 5.3.1
  • 5.3.2-SNAPSHOT

Use Framework.getService() to call remotely or locally the DirectoryService DirectoryService service = Framework.getService(DirectoryService.class);

The singleton DirectoryHelper wraps the DirectoryService which can be retrieved using this call: DirectoryService dirService = DirectoryHelper.getDirectoryService();