| | |
| | | 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; |
| | |
| | | /** |
| | | * 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) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * 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 |