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

Jean-Noel Rouvignac
10.34.2015 0a91f5af5295a2d0f5cfdad0d529d4b5d532c181
opendj3-server-dev/src/server/org/opends/server/extensions/ConfigFileHandler.java
@@ -1850,10 +1850,17 @@
  /** {@inheritDoc} */
  @Override
  public boolean supportsLDIFExport()
  public boolean supports(BackendOperation backendOperation)
  {
    // TODO We would need export-ldif to initialize this backend.
    return false;
    switch (backendOperation)
    {
    case BACKUP:
    case RESTORE:
      return true;
    default:
      return false;
    }
  }
  /** {@inheritDoc} */
@@ -1865,8 +1872,6 @@
    writeLDIF(exportConfig);
  }
  /**
   * Writes the current configuration to LDIF with the provided export
   * configuration.
@@ -1952,13 +1957,6 @@
  /** {@inheritDoc} */
  @Override
  public boolean supportsLDIFImport()
  {
    return false;
  }
  /** {@inheritDoc} */
  @Override
  public LDIFImportResult importLDIF(LDIFImportConfig importConfig)
         throws DirectoryException
  {
@@ -1968,14 +1966,6 @@
  /** {@inheritDoc} */
  @Override
  public boolean supportsBackup()
  {
    // We do support an online backup mechanism for the configuration.
    return true;
  }
  /** {@inheritDoc} */
  @Override
  public void createBackup(BackupConfig backupConfig)
         throws DirectoryException
  {
@@ -2332,14 +2322,6 @@
  /** {@inheritDoc} */
  @Override
  public boolean supportsRestore()
  {
    // We will provide a restore, but only for offline operations.
    return true;
  }
  /** {@inheritDoc} */
  @Override
  public void restoreBackup(RestoreConfig restoreConfig)
         throws DirectoryException
  {