Package org.apache.ldap.server.db

Examples of org.apache.ldap.server.db.IndexRecord


    try {
            ArrayList records = new ArrayList();
            NamingEnumeration childList = db.list( id );
            while( childList.hasMore() )
            {
                IndexRecord old = ( IndexRecord ) childList.next();
                IndexRecord newRec = new IndexRecord();
                newRec.copy( old );
                records.add( newRec );
            }
            childList.close();

            Iterator list = records.iterator();
           
            while( list.hasNext() )
            {
                IndexRecord rec = ( IndexRecord ) list.next();

                if ( engine != null && exprNode != null )
                {
                    if ( db.getChildCount( rec.getEntryId() ) == 0 )
                    {
                        if( engine.evaluate( exprNode, rec.getEntryId() ) )
                        {
                            Attributes newEntry = db.lookup( rec.getEntryId() );
                            EntryNode child = new EntryNode( rec.getEntryId(),
                                    this, db, newEntry, map, exprNode, engine);
                            children.add(child);
                        }
                        else
                        {
                            continue;
                        }
                    }
                    else
                    {
                        Attributes newEntry = db.lookup( rec.getEntryId() );
                        EntryNode child = new EntryNode( rec.getEntryId(),
                            this, db, newEntry, map, exprNode, engine );
                        children.add( child );
                    }
                }
                else
                {
                    Attributes newEntry = db.lookup( rec.getEntryId() );
                    EntryNode child = new EntryNode( rec.getEntryId(), this,
                        db, newEntry, map );
                    children.add( child );
                }
            }
        }
View Full Code Here


            l_cols[1] = "Values ( Entry Id )" ;
            DefaultTableModel l_model = new DefaultTableModel( l_cols, 0 ) ;
            int l_count = 0 ;
            while( l_list.hasMore() )
            {
                IndexRecord l_rec = ( IndexRecord ) l_list.next() ;
                l_row = new Object [2] ;
                l_row[0] = l_rec.getIndexKey() ;
                l_row[1] = l_rec.getEntryId() ;
                l_model.addRow( l_row ) ;
                l_count++ ;
            }

            m_resultsTbl.setModel( l_model ) ;
View Full Code Here

        DefaultTableModel tableModel = new DefaultTableModel( cols, 0 );
        Object [] row = new Object[2];
        int count = 0;
        while ( cursor.hasMore() && count < limitMax )
        {
            IndexRecord rec = ( IndexRecord ) cursor.next();
            row[0] = rec.getEntryId();
            row[1] = database.getEntryDn( ( BigInteger ) row[0] );
            tableModel.addRow( row );
            count++;
        }
View Full Code Here

TOP

Related Classes of org.apache.ldap.server.db.IndexRecord

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.