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.directory.api.ldap.model.schema.registries.Registries.checkRefInteg()

                // Clone the Registries
                Registries clonedRegistries = registries.clone();

                // And update references. We may have errors, that may be fixed
                // by the new loaded schemas.
                errors = clonedRegistries.checkRefInteg();

                // Now, relax the cloned Registries if there is no error
                clonedRegistries.setRelaxed();

                return clonedRegistries;
    View Full Code Here

    Examples of org.apache.directory.api.ldap.model.schema.registries.Registries.checkRefInteg()

            clonedRegistries.clear();

            if ( errors.isEmpty() )
            {
                // Ok no errors. Check the registries now
                errors = clonedRegistries.checkRefInteg();

                if ( errors.isEmpty() )
                {
                    // We are golden : let's apply the schemas in the real registries
                    for ( Schema schema : schemas )
    View Full Code Here

    Examples of org.apache.directory.api.ldap.model.schema.registries.Registries.checkRefInteg()

            clonedRegistries.clear();

            if ( errors.isEmpty() )
            {
                // Ok no errors. Check the registries now
                errors = clonedRegistries.checkRefInteg();

                if ( errors.isEmpty() )
                {
                    // We are golden : let's apply the schemas in the real registries
                    for ( Schema schema : schemas )
    View Full Code Here

    Examples of org.apache.directory.api.ldap.model.schema.registries.Registries.checkRefInteg()

            errors = clonedRegistries.buildReferences();

            if ( errors.isEmpty() )
            {
                // Ok no errors. Check the registries now
                errors = clonedRegistries.checkRefInteg();

                if ( errors.isEmpty() )
                {
                    // We are golden : let's apply the schema in the real registries
                    registries.setRelaxed();
    View Full Code Here

    Examples of org.apache.directory.api.ldap.model.schema.registries.Registries.checkRefInteg()

            errors = clonedRegistries.buildReferences();

            if ( errors.isEmpty() )
            {
                // Ok no errors. Check the registries now
                errors = clonedRegistries.checkRefInteg();

                if ( errors.isEmpty() )
                {
                    // We are golden : let's apply the schema in the real registries
                    registries = clonedRegistries;
    View Full Code Here

    Examples of org.apache.directory.api.ldap.model.schema.registries.Registries.checkRefInteg()

            errors = clonedRegistries.buildReferences();

            if ( errors.isEmpty() )
            {
                // Ok no errors. Check the registries now
                errors = clonedRegistries.checkRefInteg();

                if ( errors.isEmpty() )
                {
                    // We are golden : let's apply the schema in the real registries
                    registries.setRelaxed();
    View Full Code Here

    Examples of org.apache.directory.api.ldap.model.schema.registries.Registries.checkRefInteg()

                        clonedRegistries.clear();
                        return false;
                    }

                    // Now, check the registries
                    List<Throwable> errors = clonedRegistries.checkRefInteg();

                    if ( errors.size() != 0 )
                    {
                        // We got an error : exit
                        clonedRegistries.clear();
    View Full Code Here

    Examples of org.apache.directory.api.ldap.model.schema.registries.Registries.checkRefInteg()

                // Clone the Registries
                Registries clonedRegistries = registries.clone();

                // And update references. We may have errors, that may be fixed
                // by the new loaded schemas.
                errors = clonedRegistries.checkRefInteg();

                // Now, relax the cloned Registries if there is no error
                clonedRegistries.setRelaxed();

                return clonedRegistries;
    View Full Code Here

    Examples of org.apache.directory.api.ldap.model.schema.registries.Registries.checkRefInteg()

            clonedRegistries.clear();

            if ( errors.isEmpty() )
            {
                // Ok no errors. Check the registries now
                errors = clonedRegistries.checkRefInteg();

                if ( errors.isEmpty() )
                {
                    // We are golden : let's apply the schemas in the real registries
                    for ( Schema schema : schemas )
    View Full Code Here

    Examples of org.apache.directory.api.ldap.model.schema.registries.Registries.checkRefInteg()

            clonedRegistries.clear();

            if ( errors.isEmpty() )
            {
                // Ok no errors. Check the registries now
                errors = clonedRegistries.checkRefInteg();

                if ( errors.isEmpty() )
                {
                    // We are golden : let's apply the schemas in the real registries
                    for ( Schema schema : schemas )
    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.