/** * Adds the computed 'objectClass' attribute for the given entry and object class name. * * @param schemaManager * the schema manager * @param entry * the entry * @param objectClass * the object class name * @throws LdapException */ private void addObjectClassAttribute( SchemaManager schemaManager, LdifEntry entry, String objectClass ) throws LdapException { ObjectClass objectClassObject = schemaManager.lookupObjectClassRegistry( objectClass ); if ( objectClassObject != null ) { // Building the list of 'objectClass' attribute values Set<String> objectClassAttributeValues = new HashSet<String>(); computeObjectClassAttributeValues( schemaManager, objectClassAttributeValues, objectClassObject ); // Adding values to the entry addAttributeTypeValues( SchemaConstants.OBJECT_CLASS_AT, objectClassAttributeValues, entry ); } else { throw new IllegalStateException( "Missing object class " + objectClass ); } }
ObjectClass objectClass ) throws LdapException ObjectClass topObjectClass = schemaManager.lookupObjectClassRegistry( SchemaConstants.TOP_OC ); if ( topObjectClass == null )
objectClass = schemaManager.lookupObjectClassRegistry( oid );
objectClass = schemaManager.lookupObjectClassRegistry( oid );
objectClass = schemaManager.lookupObjectClassRegistry( oid );