Package netscape.ldap

Examples of netscape.ldap.LDAPObjectClassSchema


     
          // Gib schemas.
          dirSchema.fetchSchema( connection);
          Enumeration ocs = dirSchema.getObjectClasses();
          while ( ocs.hasMoreElements() ) {
              LDAPObjectClassSchema oc = (LDAPObjectClassSchema)ocs.nextElement();
             
              if(logger != null){
                  logger.debug5(SOSClassUtil.getMethodName()+" Object = "+oc.getName());
              }
             
              System.out.println("Schema Object = "+oc.getName());
          }
          System.out.println("---------------------------------------");
        
      }
      catch(Exception e){
View Full Code Here


          LDAPSchema dirSchema = new LDAPSchema();
       
          // Get the schema from the directory.
          dirSchema.fetchSchema( connection );
         
          LDAPObjectClassSchema objClass = dirSchema.getObjectClass(object);
          if ( objClass == null ) {
              System.out.println("Object = "+object+" not found ");
          }
          else{
              System.out.println("-------------------------");
            System.out.println(object+" : "+objClass.toString());
             
            Enumeration reqAttribute = objClass.getRequiredAttributes();
           
            System.out.println("MUST Attributes");
           
            while ( reqAttribute.hasMoreElements() ) {
                String req = (String)reqAttribute.nextElement();
                  System.out.println("\t\t"+req);
            }
             
              Enumeration optAttribute = objClass.getOptionalAttributes();
              System.out.println("MAY Attributes");
              while ( optAttribute.hasMoreElements() ) {
                String opt = (String)optAttribute.nextElement();
             
                //System.out.println("schema oc = "+oc.getName());
View Full Code Here

TOP

Related Classes of netscape.ldap.LDAPObjectClassSchema

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.