Package org.jibeframework.core.util

Examples of org.jibeframework.core.util.JsonModelEntry


  private static Logger log = Logger.getLogger(SupportController.class);

  @Cache("searchRestrictions")
  public List<JsonModelEntry> cacheSearchRestrictions() {
    List<JsonModelEntry> model = new ArrayList<JsonModelEntry>();
    model.add(new JsonModelEntry("0", "All Items"));
    model.add(new JsonModelEntry("1", "File names and contents"));
    model.add(new JsonModelEntry("2", "File names only"));
    model.add(new JsonModelEntry("3", "Space names only"));
    return model;
  }
View Full Code Here


        if (td != null) {
          String title = td.getTitle();
          if (StringUtils.isEmpty(title)) {
            title = type;
          }
          model.add(new JsonModelEntry(type, title));
        } else {
          log.warn("The type definition is not existing : " + type);
        }
      } catch (InvalidQNameException e) {
        log.warn("Invalid QName : " + type, e);
View Full Code Here

TOP

Related Classes of org.jibeframework.core.util.JsonModelEntry

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.