/** * Retrieves the parent DN for this entry as a string. * * @return The parent DN for this entry as a string, or {@code null} if there * is no parent. * * @throws LDAPException If the DN string cannot be parsed as a valid DN. */ public String getParentDNString() throws LDAPException { return getParsedDN().getParentString(); }
/** * Retrieves the parent DN for this entry as a string. * * @return The parent DN for this entry as a string, or {@code null} if there * is no parent. * * @throws LDAPException If the DN string cannot be parsed as a valid DN. */ public String getParentDNString() throws LDAPException { return getParsedDN().getParentString(); }
/** * Retrieves the string representation of the DN that is the parent for the * DN with the provided string representation. Note that neither the null DN * nor DNs consisting of a single RDN component will be considered to have * parent DNs. * * @param s The string representation of the DN for which to retrieve the * parent. It must not be {@code null}. * * @return The DN that is the parent for this DN, or {@code null} if there * is no parent. * * @throws LDAPException If the provided string cannot be parsed as a DN. */ public static String getParentString(final String s) throws LDAPException { return new DN(s).getParentString(); }
/** * Retrieves the string representation of the DN that is the parent for the * DN with the provided string representation. Note that neither the null DN * nor DNs consisting of a single RDN component will be considered to have * parent DNs. * * @param s The string representation of the DN for which to retrieve the * parent. It must not be {@code null}. * * @return The DN that is the parent for this DN, or {@code null} if there * is no parent. * * @throws LDAPException If the provided string cannot be parsed as a DN. */ public static String getParentString(final String s) throws LDAPException { return new DN(s).getParentString(); }
ResultCode.NO_SUCH_OBJECT_INT_VALUE, getMatchedDNString(dn), ERR_MEM_HANDLER_ADD_MISSING_PARENT.get(request.getDN(), dn.getParentString()), null));