Examples of WGContentIterator


Examples of de.innovationgate.webgate.api.WGContentIterator

            //_initialIndexDBs.add(dbkey);
           
            //index all content
            long time = System.currentTimeMillis();
            _core.getLog().info("Fetching all contentkeys from db '" + dbkey + "'.");
            WGContentIterator docsIt = (WGContentIterator)db.getAllContent(true);
            if (docsIt != null) {
                Iterator contentKeys = docsIt.getContentKeys().iterator();
                while (contentKeys.hasNext()) {
                    Thread.yield();
                    WGContentKey key = (WGContentKey) contentKeys.next();                   
                    addAdditionRequest(new IndexingRequest(dbkey, WGDocument.TYPENAME_CONTENT + "/" + key.toString()));
                }               
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.