Package org.apache.directory.shared.ldap.entry

Examples of org.apache.directory.shared.ldap.entry.DefaultServerEntry.toClientEntry()


        ServerEntry serverEntry = new DefaultServerEntry( schemaManager );
        serverEntry.setDn( dn );
        serverEntry.add( "cn", "test1", "test2" );
        serverEntry.add( "objectClass", "top", "person" );
       
        Entry clientEntry = serverEntry.toClientEntry();
       
        assertTrue( clientEntry instanceof Entry );
        assertFalse( clientEntry instanceof ServerEntry );
       
        assertTrue( clientEntry.containsAttribute( "cn", "objectClass" ) );
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.