/** * {@inheritDoc} */ @Override public boolean hasDescendants( String ancestorId ) throws LdapException { try { String oid = getOidByName( ancestorId ); Set<ObjectClass> descendants = oidToDescendants.get( oid ); return ( descendants != null ) && !descendants.isEmpty(); } catch ( LdapException ne ) { throw new LdapNoSuchAttributeException( ne.getMessage(), ne ); } }
LdapNoSuchAttributeException ldapNoSuchAttributeException = new LdapNoSuchAttributeException( ldapResult.getDiagnosticMessage() ); ldapNoSuchAttributeException.setResolvedDn( ldapResult.getMatchedDn() );
throw new InvalidAttributesException( lnsae.getMessage() );
LdapNoSuchAttributeException ldapNoSuchAttributeException = new LdapNoSuchAttributeException( ldapResult.getDiagnosticMessage() ); ldapNoSuchAttributeException.setResolvedDn( ldapResult.getMatchedDn() );
/** * {@inheritDoc} */ @Override public boolean hasDescendants( String ancestorId ) throws LdapException { try { String oid = getOidByName( ancestorId ); Set<ObjectClass> descendants = oidToDescendants.get( oid ); return ( descendants != null ) && !descendants.isEmpty(); } catch ( LdapException ne ) { throw new LdapNoSuchAttributeException( ne.getMessage(), ne ); } }
LdapNoSuchAttributeException ldapNoSuchAttributeException = new LdapNoSuchAttributeException( ldapResult.getDiagnosticMessage() ); ldapNoSuchAttributeException.setResolvedDn( ldapResult.getMatchedDn() );
/** * {@inheritDoc} */ @Override public boolean hasDescendants( String ancestorId ) throws LdapException { try { String oid = getOidByName( ancestorId ); Set<AttributeType> descendants = oidToDescendantSet.get( oid ); return ( descendants != null ) && !descendants.isEmpty(); } catch ( LdapException ne ) { throw new LdapNoSuchAttributeException( ne.getMessage(), ne ); } }
/** * {@inheritDoc} */ @Override public boolean hasDescendants( String ancestorId ) throws LdapException { try { String oid = getOidByName( ancestorId ); Set<ObjectClass> descendants = oidToDescendants.get( oid ); return ( descendants != null ) && !descendants.isEmpty(); } catch ( LdapException ne ) { throw new LdapNoSuchAttributeException( ne.getMessage(), ne ); } }
/** * {@inheritDoc} */ @Override public boolean hasDescendants( String ancestorId ) throws LdapException { try { String oid = getOidByName( ancestorId ); Set<AttributeType> descendants = oidToDescendantSet.get( oid ); return ( descendants != null ) && !descendants.isEmpty(); } catch ( LdapException ne ) { throw new LdapNoSuchAttributeException( ne.getMessage(), ne ); } }
/** * {@inheritDoc} */ @SuppressWarnings("unchecked") @Override public Iterator<AttributeType> descendants( String ancestorId ) throws LdapException { try { String oid = getOidByName( ancestorId ); Set<AttributeType> descendants = oidToDescendantSet.get( oid ); if ( descendants == null ) { return Collections.EMPTY_SET.iterator(); } return descendants.iterator(); } catch ( LdapException ne ) { throw new LdapNoSuchAttributeException( ne.getMessage(), ne ); } }
/** * {@inheritDoc} */ @SuppressWarnings("unchecked") @Override public Iterator<ObjectClass> descendants( String ancestorId ) throws LdapException { try { String oid = getOidByName( ancestorId ); Set<ObjectClass> descendants = oidToDescendants.get( oid ); if ( descendants == null ) { return Collections.EMPTY_SET.iterator(); } return descendants.iterator(); } catch ( LdapException ne ) { throw new LdapNoSuchAttributeException( ne.getMessage(), ne ); } }
/** * {@inheritDoc} */ @Override public boolean hasDescendants( String ancestorId ) throws LdapException { try { String oid = getOidByName( ancestorId ); Set<AttributeType> descendants = oidToDescendantSet.get( oid ); return ( descendants != null ) && !descendants.isEmpty(); } catch ( LdapException ne ) { throw new LdapNoSuchAttributeException( ne.getMessage(), ne ); } }
/** * {@inheritDoc} */ @SuppressWarnings("unchecked") @Override public Iterator<AttributeType> descendants( String ancestorId ) throws LdapException { try { String oid = getOidByName( ancestorId ); Set<AttributeType> descendants = oidToDescendantSet.get( oid ); if ( descendants == null ) { return Collections.EMPTY_SET.iterator(); } return descendants.iterator(); } catch ( LdapException ne ) { throw new LdapNoSuchAttributeException( ne.getMessage(), ne ); } }
/** * {@inheritDoc} */ @SuppressWarnings("unchecked") @Override public Iterator<ObjectClass> descendants( String ancestorId ) throws LdapException { try { String oid = getOidByName( ancestorId ); Set<ObjectClass> descendants = oidToDescendants.get( oid ); if ( descendants == null ) { return Collections.EMPTY_SET.iterator(); } return descendants.iterator(); } catch ( LdapException ne ) { throw new LdapNoSuchAttributeException( ne.getMessage(), ne ); } }
/** * {@inheritDoc} */ @Override public String getOidByName( String name ) throws LdapException { try { return immutableAttributeTypeRegistry.getOidByName( name ); } catch ( LdapException le ) { throw new LdapNoSuchAttributeException( le.getMessage(), le ); } }
/** * {@inheritDoc} */ @SuppressWarnings("unchecked") @Override public Iterator<AttributeType> descendants( String ancestorId ) throws LdapException { try { String oid = getOidByName( ancestorId ); Set<AttributeType> descendants = oidToDescendantSet.get( oid ); if ( descendants == null ) { return Collections.EMPTY_SET.iterator(); } return descendants.iterator(); } catch ( LdapException ne ) { throw new LdapNoSuchAttributeException( ne.getMessage(), ne ); } }
/** * {@inheritDoc} */ @SuppressWarnings("unchecked") @Override public Iterator<ObjectClass> descendants( String ancestorId ) throws LdapException { try { String oid = getOidByName( ancestorId ); Set<ObjectClass> descendants = oidToDescendants.get( oid ); if ( descendants == null ) { return Collections.EMPTY_SET.iterator(); } return descendants.iterator(); } catch ( LdapException ne ) { throw new LdapNoSuchAttributeException( ne.getMessage(), ne ); } }
/** * {@inheritDoc} */ @Override public AttributeType lookup( String oid ) throws LdapException { try { return super.lookup( oid ); } catch ( LdapException ne ) { throw new LdapNoSuchAttributeException( ne.getMessage(), ne ); } }
/** * {@inheritDoc} */ @Override public String getOidByName( String name ) throws LdapException { try { return immutableAttributeTypeRegistry.getOidByName( name ); } catch ( LdapException le ) { throw new LdapNoSuchAttributeException( le.getMessage(), le ); } }
/** * {@inheritDoc} */ @Override public AttributeType lookup( String oid ) throws LdapException { try { return super.lookup( oid ); } catch ( LdapException ne ) { throw new LdapNoSuchAttributeException( ne.getMessage(), ne ); } }