public void addToRegistries( Registries registries ) throws LdapException
{
if ( registries != null )
{
AttributeTypeRegistry atRegistry = registries.getAttributeTypeRegistry();
ObjectClassRegistry ocRegistry = registries.getObjectClassRegistry();
if ( mayAttributeTypeOids != null )
{
mayAttributeTypes = new ArrayList<AttributeType>( mayAttributeTypeOids.size() );
for ( String oid : mayAttributeTypeOids )
{
mayAttributeTypes.add( atRegistry.lookup( oid ) );
}
}
if ( mustAttributeTypeOids != null )
{
mustAttributeTypes = new ArrayList<AttributeType>( mustAttributeTypeOids.size() );
for ( String oid : mustAttributeTypeOids )
{
mustAttributeTypes.add( atRegistry.lookup( oid ) );
}
}
if ( notAttributeTypeOids != null )
{
notAttributeTypes = new ArrayList<AttributeType>( notAttributeTypeOids.size() );
for ( String oid : notAttributeTypeOids )
{
notAttributeTypes.add( atRegistry.lookup( oid ) );
}
}
if ( auxObjectClassOids != null )
{
auxObjectClasses = new ArrayList<ObjectClass>( auxObjectClassOids.size() );
for ( String oid : auxObjectClassOids )
{
auxObjectClasses.add( ocRegistry.lookup( oid ) );
}
}
}
}