Package net.datacrow.core.services

Examples of net.datacrow.core.services.OnlineSearchHelper.query()


            osh.setServer(client.getServer());
            osh.setRegion(client.getRegion());
            osh.setMode(client.getSearchMode());
            osh.setMaximum(2);
           
            Collection<DcObject> results = osh.query(searchString, dco);
            for (DcObject result : results) {
                if (matches(result, searchString, fieldIdx)) {
                    merge(dco, result, osh);
                    updated = true;
                    break;
View Full Code Here


           
            if (!updated) {
                searchString = StringUtils.normalize(searchString);
                client.addMessage(DcResources.getText("msgSearchingOnlineFor", searchString));
                results.clear();
                results.addAll(osh.query(searchString, dco));
                for (DcObject result : results) {
                    if (matches(result, searchString, fieldIdx)) {
                        merge(dco, result, osh);
                        updated = true;
                        break;
View Full Code Here

                    ref.setValue(ref.getSystemDisplayFieldIdx(), name);
                }
               
                if (onlinesearch) {
                    OnlineSearchHelper osh = new OnlineSearchHelper(moduleIdx, SearchTask._ITEM_MODE_FULL);
                    DcObject queried = osh.query(ref, name, new int[] {module.getSystemDisplayFieldIdx()});
                    ref = queried != null ? queried : ref;
                    osh.clear();
                }
               
                ref.setIDs();
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.