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

Examples of org.apache.directory.shared.ldap.name.AVA


            // below we only process multi-valued rdns
            StringBuffer buf = new StringBuffer();
       
            for ( Iterator<AVA> atavs = rdn.iterator(); atavs.hasNext(); /**/ )
            {
                AVA atav = atavs.next();
                String type = schemaManager.lookupAttributeTypeRegistry( rdn.getNormType() ).getName();
                buf.append( type ).append( '=' ).append( atav.getNormValue() );
               
                if ( atavs.hasNext() )
                {
                    buf.append( '+' );
                }
View Full Code Here


        }
        else
        {
            for ( Iterator<AVA> ii = rdn.iterator(); ii.hasNext(); /**/)
            {
                AVA atav = ii.next();

                // Add the RDN attribute
                boolean doRdnPut = attributes.get( atav.getNormType() ) == null;
                doRdnPut = doRdnPut || attributes.get( atav.getNormType() ).size() == 0;

                // TODO Fix DIRSERVER-832
                doRdnPut = doRdnPut || !attributes.get( atav.getNormType() ).contains( atav.getNormValue() );

                if ( doRdnPut )
                {
                    attributes.put( atav.getNormType(), atav.getNormValue() );
                }
            }
        }

        // Add the new context to the server which as a side effect adds
View Full Code Here

            // below we only process multi-valued rdns
            StringBuffer buf = new StringBuffer();
       
            for ( Iterator<AVA> atavs = rdn.iterator(); atavs.hasNext(); /**/ )
            {
                AVA atav = atavs.next();
                String type = schemaManager.lookupAttributeTypeRegistry( rdn.getNormType() ).getName();
                buf.append( type ).append( '=' ).append( atav.getNormValue() );
               
                if ( atavs.hasNext() )
                {
                    buf.append( '+' );
                }
View Full Code Here

        String fileName = "";

        Iterator<AVA> iterator = rdn.iterator();
        while ( iterator.hasNext() )
        {
            AVA ava = iterator.next();

            // First, get the AT name, or OID
            String normAT = ava.getNormType();
            AttributeType at = schemaManager.lookupAttributeTypeRegistry( normAT );

            String atName = at.getName();

            // Now, get the normalized value
            String normValue = ava.getNormValue().getString();

            fileName += atName + "=" + normValue;

            if ( iterator.hasNext() )
            {
View Full Code Here

        }
        else
        {
            for ( Iterator<AVA> ii = rdn.iterator(); ii.hasNext(); /**/)
            {
                AVA atav = ii.next();

                // Add the RDN attribute
                boolean doRdnPut = attributes.get( atav.getNormType() ) == null;
                doRdnPut = doRdnPut || attributes.get( atav.getNormType() ).size() == 0;

                // TODO Fix DIRSERVER-832
                doRdnPut = doRdnPut || !attributes.get( atav.getNormType() ).contains( atav.getNormValue() );

                if ( doRdnPut )
                {
                    attributes.put( atav.getNormType(), atav.getNormValue() );
                }
            }
        }

        // Add the new context to the server which as a side effect adds
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.ldap.name.AVA

Copyright © 2018 www.massapicom. 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.