| | |
| | | import org.opends.server.config.ConfigurationHandler; |
| | | import org.opends.server.core.AddOperation; |
| | | import org.opends.server.core.DeleteOperation; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.ModifyDNOperation; |
| | | import org.opends.server.core.ModifyOperation; |
| | | import org.opends.server.core.SearchOperation; |
| | |
| | | */ |
| | | private final Object configLock = new Object(); |
| | | |
| | | /** The server context. */ |
| | | private final ServerContext serverContext; |
| | | |
| | | /** |
| | | * Creates and initializes a new instance of this backend. |
| | | * |
| | |
| | | public ConfigurationBackend(ServerContext serverContext, ConfigurationHandler configurationHandler) |
| | | throws InitializationException |
| | | { |
| | | this.serverContext = serverContext; |
| | | this.configurationHandler = configurationHandler; |
| | | this.configRootEntry = Converters.to(configurationHandler.getRootEntry()); |
| | | baseDNs = Collections.singleton(configRootEntry.getName()); |
| | |
| | | { |
| | | try |
| | | { |
| | | DirectoryServer.deregisterBaseDN(configRootEntry.getName()); |
| | | serverContext.getBackendConfigManager().deregisterBaseDN(configRootEntry.getName()); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | DN baseDN = configRootEntry.getName(); |
| | | try |
| | | { |
| | | DirectoryServer.registerBaseDN(baseDN, this, true); |
| | | serverContext.getBackendConfigManager().registerBaseDN(baseDN, this, true); |
| | | } |
| | | catch (DirectoryException e) |
| | | { |