mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noël Rouvignac
17.40.2016 27241fa0824e9b50548e969485436a4c92ad5ae9
DirectoryServer.getConfigEntry(DN) => DirectoryServer.getEntry(DN)
12 files modified
60 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/tasks/RestoreTask.java 8 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/types/DirectoryConfig.java 21 ●●●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/extensions/PasswordStorageSchemeTestCase.java 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/extensions/RandomPasswordGeneratorTestCase.java 5 ●●●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/monitors/GenericMonitorTestCase.java 5 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/GenerationIdTest.java 4 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/ProtocolWindowTest.java 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/ReplicationTestCase.java 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/AssuredReplicationPluginTest.java 4 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/FractionalReplicationTest.java 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/schema/AuthPasswordEqualityMatchingRuleTest.java 3 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/schema/UserPasswordEqualityMatchingRuleTest.java 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tasks/RestoreTask.java
@@ -29,7 +29,6 @@
import org.forgerock.i18n.LocalizableMessage;
import org.forgerock.i18n.slf4j.LocalizedLogger;
import org.forgerock.opendj.config.server.ConfigException;
import org.forgerock.opendj.ldap.ResultCode;
import org.opends.messages.Severity;
import org.opends.messages.TaskMessages;
@@ -251,20 +250,17 @@
    Entry configEntry;
    try
    {
      // Get the backend configuration entry.
      configEntry = DirectoryServer.getConfigEntry(configEntryDN);
      configEntry = DirectoryServer.getEntry(configEntryDN);
    }
    catch (ConfigException e)
    catch (DirectoryException e)
    {
      logger.traceException(e);
      logger.error(ERR_RESTOREDB_NO_BACKENDS_FOR_DN, backupDirectory, configEntryDN);
      return TaskState.STOPPED_BY_ERROR;
    }
    // Get the backend ID from the configuration entry.
    String backendID = TaskUtils.getBackendID(configEntry);
    // Get the backend.
    Backend<?> backend = DirectoryServer.getBackend(backendID);
    if (!backend.supports(BackendOperation.RESTORE))
    {
opendj-server-legacy/src/main/java/org/opends/server/types/DirectoryConfig.java
@@ -22,7 +22,6 @@
import java.util.Set;
import org.forgerock.i18n.LocalizableMessage;
import org.forgerock.opendj.config.server.ConfigException;
import org.forgerock.opendj.ldap.DN;
import org.forgerock.opendj.ldap.ResultCode;
import org.forgerock.opendj.ldap.schema.AttributeType;
@@ -78,26 +77,6 @@
  }
  /**
   * Retrieves the requested entry from the Directory Server
   * configuration.
   *
   * @param  entryDN  The DN of the configuration entry to retrieve.
   *
   * @return  The requested entry from the Directory Server
   *          configuration.
   *
   * @throws  ConfigException  If a problem occurs while trying to
   *                           retrieve the requested entry.
   */
  public static Entry getConfigEntry(DN entryDN)
         throws ConfigException
  {
    return DirectoryServer.getConfigEntry(entryDN);
  }
  /**
   * Retrieves the path to the root directory for this instance of the
   * Directory Server.
   *
opendj-server-legacy/src/test/java/org/opends/server/extensions/PasswordStorageSchemeTestCase.java
@@ -84,7 +84,7 @@
    if (configDNString != null)
    {
      configEntry = DirectoryServer.getConfigEntry(DN.valueOf(configDNString));
      configEntry = DirectoryServer.getEntry(DN.valueOf(configDNString));
    }
  }
opendj-server-legacy/src/test/java/org/opends/server/extensions/RandomPasswordGeneratorTestCase.java
@@ -61,9 +61,8 @@
  public void testDefaultConfiguration()
         throws Exception
  {
    DN dn = DN.valueOf("cn=Random Password Generator,cn=Password Generators," +
                      "cn=config");
    Entry configEntry = DirectoryServer.getConfigEntry(dn);
    Entry configEntry = DirectoryServer.getEntry(
        DN.valueOf("cn=Random Password Generator,cn=Password Generators,cn=config"));
    assertNotNull(configEntry);
    RandomPasswordGenerator generator = InitializationUtils.initializePasswordGenerator(
opendj-server-legacy/src/test/java/org/opends/server/monitors/GenericMonitorTestCase.java
@@ -54,14 +54,11 @@
  protected GenericMonitorTestCase(String dnString)
            throws Exception
  {
    super();
    TestCaseUtils.startServer();
    if (dnString != null)
    {
      DN dn = DN.valueOf(dnString);
      configEntry = DirectoryServer.getConfigEntry(dn);
      configEntry = DirectoryServer.getEntry(DN.valueOf(dnString));
      assertNotNull(configEntry);
    }
  }
opendj-server-legacy/src/test/java/org/opends/server/replication/GenerationIdTest.java
@@ -415,13 +415,13 @@
      DN synchroServerDN = DN.valueOf(synchroServerStringDN);
      Entry ecle = DirectoryServer.getConfigEntry(DN.valueOf("cn=external changelog," + synchroServerStringDN));
      Entry ecle = DirectoryServer.getEntry(DN.valueOf("cn=external changelog," + synchroServerStringDN));
      if (ecle!=null)
      {
        DirectoryServer.getConfigurationHandler().deleteEntry(ecle.getName());
      }
      DirectoryServer.getConfigurationHandler().deleteEntry(synchroServerDN);
      assertNull(DirectoryServer.getConfigEntry(synchroServerEntry.getName()),
      assertNull(DirectoryServer.getEntry(synchroServerEntry.getName()),
        "Unable to delete the synchronized domain");
      synchroServerEntry = null;
opendj-server-legacy/src/test/java/org/opends/server/replication/ProtocolWindowTest.java
@@ -104,7 +104,7 @@
    // Configure replication domain
    DirectoryServer.getConfigurationHandler().addEntry(Converters.from(repDomainEntry));
    assertNotNull(DirectoryServer.getConfigEntry(repDomainEntry.getName()),
    assertNotNull(DirectoryServer.getEntry(repDomainEntry.getName()),
          "Unable to add the synchronized server");
    configEntriesToCleanup.add(repDomainEntry.getName());
opendj-server-legacy/src/test/java/org/opends/server/replication/ReplicationTestCase.java
@@ -466,7 +466,7 @@
    if (configEntry != null)
    {
      DirectoryServer.getConfigurationHandler().addEntry(Converters.from(configEntry));
      assertNotNull(DirectoryServer.getConfigEntry(configEntry.getName()), errorMessage);
      assertNotNull(DirectoryServer.getEntry(configEntry.getName()), errorMessage);
      configEntriesToCleanup.add(configEntry.getName());
    }
  }
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/AssuredReplicationPluginTest.java
@@ -219,7 +219,7 @@
    // Add the config entry to create the replicated domain
    DirectoryServer.getConfigurationHandler().addEntry(Converters.from(domainCfgEntry));
    assertNotNull(DirectoryServer.getConfigEntry(domainCfgEntry.getName()),
    assertNotNull(DirectoryServer.getEntry(domainCfgEntry.getName()),
      "Unable to add the domain config entry: " + configEntryLdif);
    return domainCfgEntry;
@@ -247,7 +247,7 @@
    // Add the config entry to create the replicated domain
    DirectoryServer.getConfigurationHandler().addEntry(Converters.from(domainCfgEntry));
    assertNotNull(DirectoryServer.getConfigEntry(domainCfgEntry.getName()),
    assertNotNull(DirectoryServer.getEntry(domainCfgEntry.getName()),
      "Unable to add the domain config entry: " + configEntryLdif);
    return domainCfgEntry;
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/FractionalReplicationTest.java
@@ -507,7 +507,7 @@
      // Add the config entry to create the replicated domain
      DirectoryServer.getConfigurationHandler().addEntry(Converters.from(fractionalDomainCfgEntry));
      assertNotNull(DirectoryServer.getConfigEntry(fractionalDomainCfgEntry.getName()),
      assertNotNull(DirectoryServer.getEntry(fractionalDomainCfgEntry.getName()),
        "Unable to add the domain config entry: " + configEntryLdif);
    }
  }
opendj-server-legacy/src/test/java/org/opends/server/schema/AuthPasswordEqualityMatchingRuleTest.java
@@ -55,8 +55,7 @@
  {
    ByteString bytePassword = ByteString.valueOfUtf8(password);
    Entry configEntry =
       DirectoryServer.getConfigEntry(
    Entry configEntry = DirectoryServer.getEntry(
           DN.valueOf("cn=Salted MD5,cn=Password Storage Schemes,cn=config"));
    SaltedMD5PasswordStorageScheme scheme = InitializationUtils.initializePasswordStorageScheme(
opendj-server-legacy/src/test/java/org/opends/server/schema/UserPasswordEqualityMatchingRuleTest.java
@@ -54,7 +54,7 @@
  {
    ByteString bytePassword = ByteString.valueOfUtf8(password);
    Entry configEntry = DirectoryServer.getConfigEntry(
    Entry configEntry = DirectoryServer.getEntry(
           DN.valueOf("cn=Salted MD5,cn=Password Storage Schemes,cn=config"));
    SaltedMD5PasswordStorageScheme scheme = InitializationUtils.initializePasswordStorageScheme(