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

Glenn Van Lint
23.43.2013 587b58eaebf9979aaee45e76d2b954259d5e13f5
Added documentation.
1 files modified
8 ■■■■ changed files
opendj3/opendj-virtual/src/main/java/org/forgerock/opendj/virtual/JDBCMapper.java 8 ●●●● patch | view | raw | blame | history
opendj3/opendj-virtual/src/main/java/org/forgerock/opendj/virtual/JDBCMapper.java
@@ -385,11 +385,11 @@
   *            The database table name in which to search.
   * @param baseDN
   *            The directory base distinguished name in which to search.
   * @param DN
   *            The relative distinguished name.
   * @param organizationalUnit
   *            The directory organizational unit to search for.
   * @return A a list of attributes.
   */
  public Map<String, String> loadCurrentMapFromMapping(final String tableName, String baseDN, String DN)
  public Map<String, String> loadCurrentMapFromMapping(final String tableName, String baseDN, String organizationalUnit)
  {
    baseDN = baseDN.replace(" ", "");
    String mappingKey, mappingValue;
@@ -400,7 +400,7 @@
      mappingKey = tableName + ":" + tableColumnsList.get(i);
      if(!SQLToLDAPMap.containsKey(mappingKey)) continue;
      mappingValue = SQLToLDAPMap.get(mappingKey);
      if(mappingValue.contains(baseDN + ":" + DN)) currentMap.put(mappingKey, mappingValue);
      if(mappingValue.contains(baseDN + ":" + organizationalUnit)) currentMap.put(mappingKey, mappingValue);
    }
    return currentMap;
  }