Examples of searchById()


Examples of com.tubeonfire.service.YoutubeService.searchById()

          Matcher matcher = compiledPattern.matcher(keyword);
          if (matcher.find()) {
            String fullStrId = matcher.group();
            fullStrId = (fullStrId.substring(
                fullStrId.length() - 11, fullStrId.length()));
            tubeService.searchById(fullStrId);
          }
        }
        resp.setCharacterEncoding("UTF-8");
        req.setAttribute("url", "/admin/youtube/search" + "?type=" + type
            + "&quanlity=" + quanlity + "&keyword=" + keyword
View Full Code Here

Examples of org.fao.geonet.kernel.search.KeywordsSearcher.searchById()

      }else{
        GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME);
        ThesaurusManager thesaurusMan = gc.getBean(ThesaurusManager.class);
        KeywordsSearcher searcher = new KeywordsSearcher(context, thesaurusMan);
       
        kb = searcher.searchById(uri, ref, lang);
       
      }
      // Add info needed by thesaurus.edit
      elResp.addContent(new Element("prefLab").setText(kb.getDefaultValue()));
      elResp.addContent(new Element("definition").setText(kb.getDefaultDefinition()));
View Full Code Here

Examples of org.fao.geonet.kernel.search.KeywordsSearcher.searchById()

        } else {
            searcher = new KeywordsSearcher(context, thesaurusMan);
            KeywordBean kb = null;
           
            if (!multiple) {
                kb = searcher.searchById(uri, sThesaurusName, lang);
                if (kb == null) {
                    root = new Element("descKeys");
                } else {
                    root = KeywordsSearcher.toRawElement(new Element("descKeys"),
                            kb);
View Full Code Here

Examples of org.fao.geonet.kernel.search.KeywordsSearcher.searchById()

            } else {
                String[] url = uri.split(",");
                List<KeywordBean> kbList = new ArrayList<KeywordBean>();
                for (int i = 0; i < url.length; i++) {
                    String currentUri = url[i];
                    kb = searcher.searchById(currentUri, sThesaurusName, lang);
                    if (kb == null) {
                        root = new Element("null");
                    } else {
                        kbList.add(kb);
                        kb = null;
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.