Examples of checkRefInteg()

  • org.apache.directory.shared.ldap.model.schema.registries.Registries.checkRefInteg()
    Attempts to resolve the dependent schema objects of all entities that refer to other objects within the registries. Null references will be handed appropriately. The order in which the SchemaObjects must be :
  • 1) Normalizers, Comparators and SyntaxCheckers (as they depend on nothing)
  • 2) Syntaxes (depend on SyntaxCheckers)
  • 3) MatchingRules (depend on Syntaxes, Normalizers and Comparators
  • 4) AttributeTypes (depend on MatchingRules, Syntaxes and AttributeTypes : in this case, we first handle the superior)
  • 5) ObjectClasses (depend on AttributeTypes and ObjectClasses)

    Later, when we will support them :
  • 6) MatchingRuleUses (depend on matchingRules and AttributeTypes)
  • 7) DitContentRules (depend on ObjectClasses and AttributeTypes)
  • 8) NameForms (depends on ObjectClasses and AttributeTypes)
  • 9) DitStructureRules (depends onNameForms and DitStructureRules) @return a list of exceptions encountered while resolving entities
  • org.apache.ldap.server.schema.bootstrap.BootstrapRegistries.checkRefInteg()
    Attempts to resolve the dependent schema objects of all entities that refer to other objects within the registries. Null references will be handed appropriately. @return a list of exceptions encountered while resolving entities

  • Examples of org.apache.ldap.server.schema.bootstrap.BootstrapRegistries.checkRefInteg()

            BootstrapRegistries bootstrapRegistries = new BootstrapRegistries();

            BootstrapSchemaLoader loader = new BootstrapSchemaLoader();
            loader.load( startupConfiguration.getBootstrapSchemas(), bootstrapRegistries );

            java.util.List errors = bootstrapRegistries.checkRefInteg();
            if ( !errors.isEmpty() )
            {
                NamingException e = new NamingException();

                e.setRootCause( ( Throwable ) errors.get( 0 ) );
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. All rights reserved.
    All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.