| | |
| | | addAttribute(privateNamingContextAttr, dseUserAttrs, dseOperationalAttrs); |
| | | |
| | | // Add the "supportedControl" attribute. |
| | | Attribute supportedControlAttr = createAttribute(ATTR_SUPPORTED_CONTROL, getAllControls()); |
| | | Attribute supportedControlAttr = createAttribute(ATTR_SUPPORTED_CONTROL, DirectoryServer.getSupportedControls()); |
| | | addAttribute(supportedControlAttr, dseUserAttrs, dseOperationalAttrs); |
| | | |
| | | // Add the "supportedExtension" attribute. |
| | |
| | | return e; |
| | | } |
| | | |
| | | private Set<String> getAllControls() |
| | | { |
| | | // TODO: this duplicates what is done in DirectoryServer (see DirectoryServer.getSupportedControls()) |
| | | // How should this be handled ? |
| | | final Set<String> controls = new HashSet<>(); |
| | | for (Backend<?> backend : serverContext.getBackendConfigManager().getAllBackends()) |
| | | { |
| | | controls.addAll(backend.getSupportedControls()); |
| | | } |
| | | return controls; |
| | | } |
| | | |
| | | private Set<DN> getAllPublicNamingContexts() |
| | | { |
| | | Set<DN> namingContexts = new HashSet<>(); |