Examples of DitStructureRule


Examples of org.apache.directory.shared.ldap.schema.DITStructureRule

        int pos = 0;

        for ( Value<?> value : attr )
        {
            DITStructureRule ditStructureRule = null;

            try
            {
                ditStructureRule = ditStructureRuleParser.parseDITStructureRuleDescription( value.getString() );
                ditStructureRule.setSpecification( value.getString() );
            }
            catch ( ParseException e )
            {
                LdapInvalidAttributeValueException iave = new LdapInvalidAttributeValueException( ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, I18n.err( I18n.ERR_426,
                        value.getString() ) );
View Full Code Here

Examples of org.apache.ldap.common.schema.DITStructureRule

    {
        id = oidRegistry.getOid( id );

        if ( byOid.containsKey( id ) )
        {
            DITStructureRule dITStructureRule = ( DITStructureRule ) byOid.get( id );
            monitor.lookedUp( dITStructureRule );
            return dITStructureRule;
        }

        if ( bootstrap.hasDITStructureRule( id ) )
        {
            DITStructureRule dITStructureRule = bootstrap.lookup( id );
            monitor.lookedUp( dITStructureRule );
            return dITStructureRule;
        }

        NamingException e = new NamingException( "dITStructureRule w/ OID "
View Full Code Here

Examples of org.apache.ldap.common.schema.DITStructureRule

                + id + " not registered!" );
            monitor.lookupFailed( id, e );
            throw e;
        }

        DITStructureRule dITStructureRule = ( DITStructureRule ) byOid.get( id );
        monitor.lookedUp( dITStructureRule );
        return dITStructureRule;
    }
View Full Code Here

Examples of org.apache.ldap.common.schema.DITStructureRule

                + id + " not registered!" );
            monitor.lookupFailed( id, e );
            throw e;
        }

        DITStructureRule dITStructureRule = ( DITStructureRule ) byOid.get( id );
        monitor.lookedUp( dITStructureRule );
        return dITStructureRule;
    }
View Full Code Here

Examples of org.apache.ldap.common.schema.DITStructureRule

    {
        id = oidRegistry.getOid( id );

        if ( byOid.containsKey( id ) )
        {
            DITStructureRule dITStructureRule = ( DITStructureRule ) byOid.get( id );
            monitor.lookedUp( dITStructureRule );
            return dITStructureRule;
        }

        if ( bootstrap.hasDITStructureRule( id ) )
        {
            DITStructureRule dITStructureRule = bootstrap.lookup( id );
            monitor.lookedUp( dITStructureRule );
            return dITStructureRule;
        }

        NamingException e = new NamingException( "dITStructureRule w/ OID "
View Full Code Here

Examples of org.apache.ldap.common.schema.DITStructureRule

                NameFormRegistry nameFormRegistry;
                nameFormRegistry = registries.getNameFormRegistry();
                nameFormRegistry.register( schema.getSchemaName(), nameForm );
                break;
            case( ProducerTypeEnum.DIT_STRUCTURE_RULE_PRODUCER_VAL ):
                DITStructureRule ditStructureRule = ( DITStructureRule ) schemaObject;
                DITStructureRuleRegistry ditStructureRuleRegistry;
                ditStructureRuleRegistry = registries.getDitStructureRuleRegistry();
                ditStructureRuleRegistry.register( schema.getSchemaName(), ditStructureRule );
                break;
            case( ProducerTypeEnum.STATE_FACTORY_PRODUCER_VAL ):
View Full Code Here

Examples of org.apache.ldap.common.schema.DITStructureRule

        {
            attr = new LockableAttributeImpl( attrs, "dITStructureRules" );
            Iterator list = globalRegistries.getDitStructureRuleRegistry().list();
            while ( list.hasNext() )
            {
                DITStructureRule dsr = ( DITStructureRule ) list.next();
                attr.add( SchemaUtils.render( dsr ).toString() );
            }
            attrs.put( attr );
        }
View Full Code Here

Examples of org.apache.ldap.common.schema.DITStructureRule

                + id + " not registered!" );
            monitor.lookupFailed( id, e );
            throw e;
        }

        DITStructureRule dITStructureRule = ( DITStructureRule ) byOid.get( id );
        monitor.lookedUp( dITStructureRule );
        return dITStructureRule;
    }
View Full Code Here

Examples of org.apache.ldap.common.schema.DITStructureRule

                NameFormRegistry nameFormRegistry;
                nameFormRegistry = registries.getNameFormRegistry();
                nameFormRegistry.register( schema.getSchemaName(), nameForm );
                break;
            case( ProducerTypeEnum.DIT_STRUCTURE_RULE_PRODUCER_VAL ):
                DITStructureRule ditStructureRule = ( DITStructureRule ) schemaObject;
                DITStructureRuleRegistry ditStructureRuleRegistry;
                ditStructureRuleRegistry = registries.getDitStructureRuleRegistry();
                ditStructureRuleRegistry.register( schema.getSchemaName(), ditStructureRule );
                break;
            case( ProducerTypeEnum.STATE_FACTORY_PRODUCER_VAL ):
View Full Code Here

Examples of org.apache.ldap.common.schema.DITStructureRule

        {
            attr = new LockableAttributeImpl( attrs, "dITStructureRules" );
            Iterator list = globalRegistries.getDitStructureRuleRegistry().list();
            while ( list.hasNext() )
            {
                DITStructureRule dsr = ( DITStructureRule ) list.next();
                attr.add( SchemaUtils.render( dsr ).toString() );
            }
            attrs.put( attr );
        }
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.