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

matthew_swift
12.20.2007 d976d752970e84537c86963c7a795d72326fc121
opends/src/server/org/opends/server/admin/AggregationPropertyDefinition.java
@@ -50,6 +50,7 @@
import org.opends.server.config.ConfigException;
import org.opends.server.types.ConfigChangeResult;
import org.opends.server.types.DN;
import org.opends.server.types.ResultCode;
@@ -382,8 +383,12 @@
     * {@inheritDoc}
     */
    public ConfigChangeResult applyConfigurationDelete(S configuration) {
      throw new IllegalStateException("Attempting to delete a referenced "
          + configuration.definition().getUserFriendlyName());
      if (configuration.dn().equals(dn)) {
        throw new IllegalStateException("Attempting to delete a referenced "
            + configuration.definition().getUserFriendlyName());
      } else {
        return new ConfigChangeResult(ResultCode.SUCCESS, false);
      }
    }