Package com.commafeed.backend.model

Examples of com.commafeed.backend.model.FeedCategory


    if (CollectionUtils.isNotEmpty(children)) {
      String name = FeedUtils.truncate(outline.getText(), 128);
      if (name == null) {
        name = FeedUtils.truncate(outline.getTitle(), 128);
      }
      FeedCategory category = feedCategoryDAO.findByName(user, name, parent);
      if (category == null) {
        if (StringUtils.isBlank(name)) {
          name = "Unnamed category";
        }

        category = new FeedCategory();
        category.setName(name);
        category.setParent(parent);
        category.setUser(user);
        feedCategoryDAO.saveOrUpdate(category);
      }

      for (Outline child : children) {
        handleOutline(user, child, category);
View Full Code Here

TOP

Related Classes of com.commafeed.backend.model.FeedCategory

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.