/** * {@inheritDoc} */ 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() ); } }
/** * {@inheritDoc} */ 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() ); } }
/** * {@inheritDoc} */ @SuppressWarnings("unchecked") 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() ); } }
/** * {@inheritDoc} */ @SuppressWarnings("unchecked") 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() ); } }
/** * {@inheritDoc} */ public AttributeType lookup( String oid ) throws LdapException { try { return super.lookup( oid ); } catch ( LdapException ne ) { throw new LdapNoSuchAttributeException( ne.getMessage() ); } }
throw new LdapNoSuchAttributeException( ne.getMessage() );
throw new LdapNoSuchAttributeException( ne.getMessage() );
/** * {@inheritDoc} */ public ObjectClass unregister( String numericOid ) throws LdapException { try { ObjectClass removed = super.unregister( numericOid ); // Deleting an ObjectClass which might be used as a superior means we have // to recursively update the descendant map. We also have to remove // the at.oid -> descendant relation oidToDescendants.remove( numericOid ); // Now recurse if needed unregisterDescendants( removed, removed.getSuperiors() ); return removed; } catch ( LdapException ne ) { throw new LdapNoSuchAttributeException( ne.getMessage() ); } }
/** * {@inheritDoc} */ public AttributeType unregister( String numericOid ) throws LdapException { try { AttributeType removed = super.unregister( numericOid ); removeMappingFor( removed ); // Deleting an AT which might be used as a superior means we have // to recursively update the descendant map. We also have to remove // the at.oid -> descendant relation oidToDescendantSet.remove( numericOid ); // Now recurse if needed unregisterDescendants( removed, removed.getSuperior() ); return removed; } catch ( LdapException ne ) { throw new LdapNoSuchAttributeException( ne.getMessage() ); } }
throw new LdapNoSuchAttributeException();
throw new LdapNoSuchAttributeException();
throw new LdapNoSuchAttributeException();
throw new LdapNoSuchAttributeException( "Administration point " + apName + " does not contain an administrativeRole attribute! An" + " administrativeRole attribute in the administrative point is"