/** * Remove the given SchemaObject from the registries * * @param schemaObject The SchemaObject to delete * @throws LdapException If the deletion failed */ public void delete( SchemaObject schemaObject ) throws LdapException { // Relax the registries boolean wasRelaxed = isRelaxed; setRelaxed(); // Remove the SchemaObject from the registries SchemaObject removed = unregister( schemaObject ); // Remove the SchemaObject from its schema dissociateFromSchema( removed ); // Unlink the SchemaObject references removeReference( removed ); if ( !errorHandler.wasError() ) { // Check the registries now checkRefInteg(); } // Restore the previous registries state if ( !wasRelaxed ) { setStrict(); } }
/** * Remove the given SchemaObject from the registries * * @param schemaObject The SchemaObject to delete * @throws LdapException If the deletion failed */ public void delete( SchemaObject schemaObject ) throws LdapException { // Relax the registries boolean wasRelaxed = isRelaxed; setRelaxed(); // Remove the SchemaObject from the registries SchemaObject removed = unregister( schemaObject ); // Remove the SchemaObject from its schema dissociateFromSchema( removed ); // Unlink the SchemaObject references removeReference( removed ); if ( !errorHandler.wasError() ) { // Check the registries now checkRefInteg(); } // Restore the previous registries state if ( !wasRelaxed ) { setStrict(); } }
/** * Remove the given SchemaObject from the registries * * @param schemaObject The SchemaObject to delete * @throws LdapException If the deletion failed */ public void delete( SchemaObject schemaObject ) throws LdapException { // Relax the registries boolean wasRelaxed = isRelaxed; setRelaxed(); // Remove the SchemaObject from the registries SchemaObject removed = unregister( schemaObject ); // Remove the SchemaObject from its schema dissociateFromSchema( removed ); // Unlink the SchemaObject references removeReference( removed ); if ( !errorHandler.wasError() ) { // Check the registries now checkRefInteg(); } // Restore the previous registries state if ( !wasRelaxed ) { setStrict(); } }
schemaManager.getRegistries().dissociateFromSchema( comparator );
schemaManager.getRegistries().dissociateFromSchema( syntaxChecker );