/** * Retrieves the parent DN for this entry. * * @return The parent DN for this entry, or {@code null} if there is no * parent. * * @throws LDAPException If the DN string cannot be parsed as a valid DN. */ public DN getParentDN() throws LDAPException { return getParsedDN().getParent(); }
/** * Retrieves the DN of the existing entry which is the closest hierarchical * match to the provided DN. * * @param dn The DN for which to retrieve the appropriate matched DN. * * @return The appropriate matched DN value, or {@code null} if there is * none. */ private String getMatchedDNString(final DN dn) { DN parentDN = dn.getParent(); while (parentDN != null) { if (entryMap.containsKey(parentDN)) { return parentDN.toString(); } parentDN = parentDN.getParent(); } return null; }
/** * Retrieves the parent DN for this entry. * * @return The parent DN for this entry, or {@code null} if there is no * parent. * * @throws LDAPException If the DN string cannot be parsed as a valid DN. */ public DN getParentDN() throws LDAPException { return getParsedDN().getParent(); }
/** * Retrieves the parent DN for this entry. * * @return The parent DN for this entry, or {@code null} if there is no * parent. * * @throws LDAPException If the DN string cannot be parsed as a valid DN. */ public final DN getParentDN() throws LDAPException { if (parsedDN == null) { parsedDN = new DN(dn, schema); } return parsedDN.getParent(); }
/** * Retrieves the parent DN for this entry. * * @return The parent DN for this entry, or {@code null} if there is no * parent. * * @throws LDAPException If the DN string cannot be parsed as a valid DN. */ public final DN getParentDN() throws LDAPException { if (parsedDN == null) { parsedDN = new DN(dn, schema); } return parsedDN.getParent(); }
/** * Retrieves 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 DN getParent(final String s) throws LDAPException { return new DN(s).getParent(); }
/** * Retrieves the string representation of the DN that is the parent for this * DN. Note that neither the null DN nor DNs consisting of a single RDN * component will be considered to have parent DNs. * * @return The DN that is the parent for this DN, or {@code null} if there * is no parent. */ public String getParentString() { final DN parentDN = getParent(); if (parentDN == null) { return null; } else { return parentDN.toString(); } }
/** * Retrieves 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 DN getParent(final String s) throws LDAPException { return new DN(s).getParent(); }
/** * Retrieves the string representation of the DN that is the parent for this * DN. Note that neither the null DN nor DNs consisting of a single RDN * component will be considered to have parent DNs. * * @return The DN that is the parent for this DN, or {@code null} if there * is no parent. */ public String getParentString() { final DN parentDN = getParent(); if (parentDN == null) { return null; } else { return parentDN.toString(); } }
if (e == null) d = d.getParent(); if (d == null)
/** * 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 final String getParentDNString() throws LDAPException { if (parsedDN == null) { parsedDN = new DN(dn, schema); } final DN parentDN = parsedDN.getParent(); if (parentDN == null) { return null; } else { return parentDN.toString(); } }
/** * 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 final String getParentDNString() throws LDAPException { if (parsedDN == null) { parsedDN = new DN(dn, schema); } final DN parentDN = parsedDN.getParent(); if (parentDN == null) { return null; } else { return parentDN.toString(); } }
DN containerDN = dn.getParent(); RDN[] containerRDNs = containerDN.getRDNs(); for (RDN rdn : containerRDNs) {
return baseDN.equals(getParent());
return baseDN.equals(getParent());
/** * Retrieves the DN that the entry should have after the successful completion * of the operation. * * @return The DN that the entry should have after the successful completion * of the operation. * * @throws LDAPException If a problem occurs while trying to parse the * target DN, new RDN, or new superior DN. */ public DN getNewDN() throws LDAPException { if (newSuperiorDN == null) { final DN parentDN = getParsedDN().getParent(); if (parentDN == null) { return new DN(getParsedNewRDN()); } else { return new DN(getParsedNewRDN(), parentDN); } } else { return new DN(getParsedNewRDN(), getParsedNewSuperiorDN()); } }
/** * Retrieves the DN that the entry should have after the successful completion * of the operation. * * @return The DN that the entry should have after the successful completion * of the operation. * * @throws LDAPException If a problem occurs while trying to parse the * target DN, new RDN, or new superior DN. */ public DN getNewDN() throws LDAPException { if (newSuperiorDN == null) { final DN parentDN = getParsedDN().getParent(); if (parentDN == null) { return new DN(getParsedNewRDN()); } else { return new DN(getParsedNewRDN(), parentDN); } } else { return new DN(getParsedNewRDN(), getParsedNewSuperiorDN()); } }
final DN parentDN = parsedTargetDN.getParent(); if (parentDN == null)
final DN parsedOldSuperiorDN = parsedOldDN.getParent();
final DN parsedOldSuperiorDN = parsedOldDN.getParent();