Package ch.entwine.weblounge.workbench.suggest

Examples of ch.entwine.weblounge.workbench.suggest.SimpleSuggestion


    List<SimpleSuggestion> tags = new ArrayList<SimpleSuggestion>();
    List<String> suggestions;
    try {
      suggestions = site.getContentRepository().suggest("subject", text, limit);
      for (String s : suggestions) {
        tags.add(new SimpleSuggestion("subject", s));
      }
    } catch (ContentRepositoryException e) {
      logger.warn("Error loading subject suggestions for '" + text + "'", e);
      return null;
    }
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.workbench.suggest.SimpleSuggestion

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.