Package javax.naming.directory

Examples of javax.naming.directory.InitialDirContext.modifyAttributes()


        // Add a second value to description
        String description2 = "Grammy award winning";
        Attribute otherDescr = new BasicAttribute( "description", description2 );

        modification = new ModificationItem( DirContext.ADD_ATTRIBUTE, otherDescr );
        ctx.modifyAttributes( rdn, new ModificationItem[]
            { modification } );

        // Add a third value to description
        String description3 = "MTV Music Award winning";
        Attribute thirdDescr = new BasicAttribute( "description", description3 );
View Full Code Here


        // Add a third value to description
        String description3 = "MTV Music Award winning";
        Attribute thirdDescr = new BasicAttribute( "description", description3 );

        modification = new ModificationItem( DirContext.ADD_ATTRIBUTE, thirdDescr );
        ctx.modifyAttributes( rdn, new ModificationItem[]
            { modification } );

        // Search Entry
        SearchControls sctls = new SearchControls();
        sctls.setSearchScope( SearchControls.ONELEVEL_SCOPE );
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.