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

Matthew Swift
16.40.2016 8a7ff716fed166cd42ec42faaabb7d70e317f884
opendj-config/src/main/java/org/forgerock/opendj/config/server/ServerManagedObject.java
@@ -42,6 +42,7 @@
import org.forgerock.opendj.config.server.spi.ConfigDeleteListener;
import org.forgerock.opendj.config.server.spi.ConfigurationRepository;
import org.forgerock.opendj.ldap.DN;
import org.forgerock.opendj.ldap.RDN;
import org.forgerock.util.Pair;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -502,8 +503,8 @@
    /**
     * Get the DN of the LDAP entry associated with this server managed object.
     *
     * @return Returns the DN of the LDAP entry associated with this server
     *         managed object, or an null DN if this is the root managed object.
     * @return The DN of the LDAP entry associated with this server
     *         managed object, or the root DN if this is the root managed object.
     */
    public DN getDN() {
        if (configDN != null) {
@@ -513,6 +514,17 @@
    }
    /**
     * Returns the RDN value of the LDAP entry associated with this server managed object.
     *
     * @return The RDN value of the LDAP entry associated with this server managed object, or an empty string if this is
     *         the root managed object.
     */
    public String getName() {
        final RDN rdn = getDN().rdn();
        return rdn != null ? rdn.getFirstAVA().getAttributeValue().toString() : "";
    }
    /**
     * Get the definition associated with this server managed object.
     *
     * @return Returns the definition associated with this server managed