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

Ludovic Poitou
10.38.2015 23ea5833b0cec49098b47ff04beabb1c6b4c6520
opendj-server-legacy/src/main/java/org/opends/server/tools/ImportLDIF.java
@@ -186,8 +186,7 @@
    // Create the command-line argument parser for use with this program.
    LDAPConnectionArgumentParser argParser =
            createArgParser("org.opends.server.tools.ImportLDIF",
                            INFO_LDIFIMPORT_TOOL_DESCRIPTION.get());
            createArgParser("org.opends.server.tools.ImportLDIF", INFO_LDIFIMPORT_TOOL_DESCRIPTION.get());
    argParser.setShortToolDescription(REF_SHORT_DESC_IMPORT_LDIF.get());
    // Initialize all the command-line argument types and register them with the
@@ -480,7 +479,6 @@
      argParser.setUsageArgument(displayUsage);
  }
  /** {@inheritDoc} */
  @Override
  public void addTaskAttributes(List<RawAttribute> attributes)
  {
@@ -534,19 +532,16 @@
    }
  }
  /** {@inheritDoc} */
  @Override
  public String getTaskObjectclass() {
    return "ds-task-import";
  }
  /** {@inheritDoc} */
  @Override
  public Class<?> getTaskClass() {
    return ImportTask.class;
  }
  /** {@inheritDoc} */
  @Override
  protected int processLocal(boolean initializeServer,
                           PrintStream out,
@@ -714,12 +709,12 @@
      excludeAttributes = new HashSet<>();
      for (String attrName : excludeAttributeStrings.getValues())
      {
        String        lowerName = attrName.toLowerCase();
        if(lowerName.equals("*"))
        String lowerName = attrName.toLowerCase();
        if (lowerName.equals("*"))
        {
          excludeAllUserAttributes = true;
        }
        else if(lowerName.equals("+"))
        else if (lowerName.equals("+"))
        {
          excludeAllOperationalAttributes = true;
        }
@@ -742,12 +737,12 @@
      includeAttributes = new HashSet<>();
      for (String attrName : includeAttributeStrings.getValues())
      {
        String        lowerName = attrName.toLowerCase();
         if(lowerName.equals("*"))
        String lowerName = attrName.toLowerCase();
        if (lowerName.equals("*"))
        {
          includeAllUserAttributes = true;
        }
        else if(lowerName.equals("+"))
        else if (lowerName.equals("+"))
        {
          includeAllOperationalAttributes = true;
        }
@@ -1199,7 +1194,6 @@
    return new Random();
  }
  /** {@inheritDoc} */
  @Override
  public String getTaskId() {
    // NYI.