package org.ovirt.engine.core.bll.adbroker;

import javax.naming.NamingException;
import javax.naming.directory.Attribute;
import javax.naming.directory.Attributes;

public class RHDSRootDSE implements RootDSE {

    private String defaultNamingContext;

    public RHDSRootDSE() {
    }

    public RHDSRootDSE(String defaultNamingContext) {
        this.defaultNamingContext = defaultNamingContext;
    }

    public RHDSRootDSE(Attributes rootDseRecords) throws NamingException {
        Attribute namingContexts = rootDseRecords.get(RHDSRootDSEAttributes.namingContexts.name());
        if (namingContexts != null) {
            this.defaultNamingContext =
                    RHDSRootDSEContextMapper.getDefaultNamingContextFromNameingContexts(namingContexts);
        }
    }

    @Override
    public void setDefaultNamingContext(String defaultNamingContext) {
        this.defaultNamingContext = defaultNamingContext;
    }

    @Override
    public String getDefaultNamingContext() {
        return defaultNamingContext;
    }
}


@@ -252,161 +252,8 @@
 t;%0A%0A
-    public RHDSRootDSE() %7B%0A    %7D%0A%0A    public RHDSRootDSE(String defaultNamingContext) %7B%0A        this.defaultNamingContext = defaultNamingContext;%0A    %7D%0A%0A
     

Remove unused ctors from RHDSRootDSE