/** * Retrieves the RDN for this entry. * * @return The RDN for this entry, or {@code null} if the DN is the null DN. * * @throws LDAPException If the DN string cannot be parsed as a valid DN. */ public final RDN getRDN() throws LDAPException { return getParsedDN().getRDN(); }
/** * Retrieves the RDN for this entry. * * @return The RDN for this entry, or {@code null} if the DN is the null DN. * * @throws LDAPException If the DN string cannot be parsed as a valid DN. */ public final RDN getRDN() throws LDAPException { return getParsedDN().getRDN(); }
/** * Indicates whether this entry falls within the range of the provided search * base DN and scope. * * @param baseDN The base DN for which to make the determination. It must * not be {@code null}. * @param scope The scope for which to make the determination. It must not * be {@code null}. * * @return {@code true} if this entry is within the range of the provided * base and scope, or {@code false} if not. * * @throws LDAPException If a problem occurs while making the determination. */ public boolean matchesBaseAndScope(final DN baseDN, final SearchScope scope) throws LDAPException { return getParsedDN().matchesBaseAndScope(baseDN, scope); }
/** * Indicates whether this entry falls within the range of the provided search * base DN and scope. * * @param baseDN The base DN for which to make the determination. It must * not be {@code null}. * @param scope The scope for which to make the determination. It must not * be {@code null}. * * @return {@code true} if this entry is within the range of the provided * base and scope, or {@code false} if not. * * @throws LDAPException If a problem occurs while making the determination. */ public boolean matchesBaseAndScope(final DN baseDN, final SearchScope scope) throws LDAPException { return getParsedDN().matchesBaseAndScope(baseDN, scope); }
/** * Indicates whether this entry falls within the range of the provided search * base DN and scope. * * @param baseDN The base DN for which to make the determination. It must * not be {@code null}. * @param scope The scope for which to make the determination. It must not * be {@code null}. * * @return {@code true} if this entry is within the range of the provided * base and scope, or {@code false} if not. * * @throws LDAPException If a problem occurs while making the determination. */ public boolean matchesBaseAndScope(final String baseDN, final SearchScope scope) throws LDAPException { return getParsedDN().matchesBaseAndScope(new DN(baseDN), scope); }
/** * Generates a hash code for this entry. * * @return The generated hash code for this entry. */ @Override() public int hashCode() { int hashCode = 0; try { hashCode += getParsedDN().hashCode(); } catch (LDAPException le) { debugException(le); hashCode += dn.hashCode(); } for (final Attribute a : attributes.values()) { hashCode += a.hashCode(); } return hashCode; }
/** * Generates a hash code for this entry. * * @return The generated hash code for this entry. */ @Override() public int hashCode() { int hashCode = 0; try { hashCode += getParsedDN().hashCode(); } catch (LDAPException le) { debugException(le); hashCode += dn.hashCode(); } for (final Attribute a : attributes.values()) { hashCode += a.hashCode(); } return hashCode; }
final DN thisDN = getParsedDN(); final DN thatDN = e.getParsedDN(); if (! thisDN.equals(thatDN))
/** * Indicates whether this entry falls within the range of the provided search * base DN and scope. * * @param baseDN The base DN for which to make the determination. It must * not be {@code null}. * @param scope The scope for which to make the determination. It must not * be {@code null}. * * @return {@code true} if this entry is within the range of the provided * base and scope, or {@code false} if not. * * @throws LDAPException If a problem occurs while making the determination. */ public boolean matchesBaseAndScope(final String baseDN, final SearchScope scope) throws LDAPException { return getParsedDN().matchesBaseAndScope(new DN(baseDN), scope); }
final DN thisDN = getParsedDN(); final DN thatDN = e.getParsedDN(); if (! thisDN.equals(thatDN))
if (a != null) final DN dn = entry.getParsedDN();
if (a != null) final DN dn = entry.getParsedDN();
final DN parsedEntryDN = referralEntry.getParsedDN(); if (targetDN.equals(parsedEntryDN) || (! targetDN.isDescendantOf(parsedEntryDN, true))) final RDN[] refEntryRDNs = referralEntry.getParsedDN().getRDNs(); retainRDNs = new RDN[targetRDNs.length - refEntryRDNs.length]; System.arraycopy(targetRDNs, 0, retainRDNs, 0, retainRDNs.length);
(entry.getParsedDN().isDescendantOf(changeLogBaseDN, true)))
final DN parsedEntryDN = e.getParsedDN(); final DN parsedBaseDN = new DN(contextBaseDN); if (parsedEntryDN.equals(parsedBaseDN))
try final DN dn = e.getParsedDN();
try rdn = entry.getParsedDN().getRDN();
try dn = original.getParsedDN();
final DN parsedOldDN = entry.getParsedDN(); final RDN parsedOldRDN = parsedOldDN.getRDN(); final DN parsedOldSuperiorDN = parsedOldDN.getParent();
final DN parsedOldDN = entry.getParsedDN(); final RDN parsedOldRDN = parsedOldDN.getRDN(); final DN parsedOldSuperiorDN = parsedOldDN.getParent();