Package org.apache.directory.shared.ldap.name

Examples of org.apache.directory.shared.ldap.name.LdapDN.normalize()


        LdapDN dn = staticMatchingRulesDNs.get( schema.getSchemaName() );
       
        if ( dn == null )
        {
            dn = new LdapDN( "ou=matchingRules,cn=" + schema.getSchemaName() + ",ou=schema" );
            dn.normalize( atRegistry.getNormalizerMapping() );
            staticMatchingRulesDNs.put( schema.getSchemaName(), dn );
        }
       
        if ( ! partition.hasEntry( new EntryOperationContext( null, dn ) ) )
        {
View Full Code Here


       
        while ( list.next() )
        {
            ServerEntry result = list.get();
            LdapDN resultDN = result.getDn();
            resultDN.normalize( atRegistry.getNormalizerMapping() );
            ServerEntry attrs = lookupPartition( resultDN );
            MatchingRule mrule = factory.getMatchingRule( attrs, targetRegistries, schema.getSchemaName() );
            targetRegistries.getMatchingRuleRegistry().register( mrule );

        }
View Full Code Here

        LdapDN dn = staticSyntaxesDNs.get( schema.getSchemaName() );
       
        if ( dn == null )
        {
            dn = new LdapDN( "ou=syntaxes,cn=" + schema.getSchemaName() + ",ou=schema" );
            dn.normalize( atRegistry.getNormalizerMapping() );
            staticSyntaxesDNs.put( schema.getSchemaName(), dn );
        }
       
        if ( ! partition.hasEntry( new EntryOperationContext( null, dn ) ) )
        {
View Full Code Here

       
        while ( list.next() )
        {
            ServerEntry result = list.get();
            LdapDN resultDN = result.getDn();
            resultDN.normalize( atRegistry.getNormalizerMapping() );
            ServerEntry attrs = lookupPartition( resultDN );
            Syntax syntax = factory.getSyntax( attrs, targetRegistries, schema.getSchemaName() );
            targetRegistries.getSyntaxRegistry().register( syntax );
        }
    }
View Full Code Here

        LdapDN dn = staticSyntaxCheckersDNs.get( schema.getSchemaName() );
       
        if ( dn == null )
        {
            dn = new LdapDN( "ou=syntaxCheckers,cn=" + schema.getSchemaName() + ",ou=schema" );
            dn.normalize( atRegistry.getNormalizerMapping() );
            staticSyntaxCheckersDNs.put( schema.getSchemaName(), dn );
        }
       
        if ( ! partition.hasEntry( new EntryOperationContext( null, dn ) ) )
        {
View Full Code Here

       
        while ( list.next() )
        {
            ServerEntry result = list.get();
            LdapDN resultDN = result.getDn();
            resultDN.normalize( atRegistry.getNormalizerMapping() );
            ServerEntry attrs = lookupPartition( resultDN );
            SyntaxChecker sc = factory.getSyntaxChecker( attrs, targetRegistries );
            SyntaxCheckerDescription syntaxCheckerDescription =
                getSyntaxCheckerDescription( schema.getSchemaName(), attrs );
            targetRegistries.getSyntaxCheckerRegistry().register( syntaxCheckerDescription, sc );
View Full Code Here

       
        Modification mod = new ClientModification( ModificationOperation.REPLACE_ATTRIBUTE, attribute );
        mods.add( mod );
     
        LdapDN userDn = new LdapDN( "uid=akarasulu,ou=users,ou=system" );
        userDn.normalize( service.getRegistries().getAttributeTypeRegistry().getNormalizerMapping() );
        LdapPrincipal principal = new LdapPrincipal( userDn, AuthenticationLevel.SIMPLE );
        CoreSession akarasuluSession = service.getSession( principal );

        try
        {
View Full Code Here

   
    @Test
    public void testChangeLogSerialization() throws NamingException, IOException, ClassNotFoundException
    {
        LdapDN systemDn = new LdapDN( "ou=system" );
        systemDn.normalize( oidsMap );
       
        LdapDN adminDn = new LdapDN( "uid=admin, ou=system" );
        adminDn.normalize( oidsMap );

        LdifEntry forward = new LdifEntry();
View Full Code Here

    {
        LdapDN systemDn = new LdapDN( "ou=system" );
        systemDn.normalize( oidsMap );
       
        LdapDN adminDn = new LdapDN( "uid=admin, ou=system" );
        adminDn.normalize( oidsMap );

        LdifEntry forward = new LdifEntry();
        forward.setDn( systemDn );
        forward.setChangeType( ChangeType.Add );
        forward.putAttribute( "objectClass", "organizationalUnit" );
View Full Code Here

        forward.setChangeType( ChangeType.Add );
        forward.putAttribute( "objectClass", "organizationalUnit" );
        forward.putAttribute( "ou", "system" );
       
        LdapDN reverseDn = new LdapDN( forward.getDn() );
        reverseDn.normalize( oidsMap );

        LdifEntry reverse = LdifRevertor.reverseAdd( reverseDn );

        String zuluTime = DateUtils.getGeneralizedTime();
        long revision = 1L;
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.