Package org.opoo.press

Examples of org.opoo.press.Category


       
        tags.add(stringTag);
      }
      if("category".equals(domain)){
        String stringCategory = text;
        Category category = site.getCategory(nicename);
        if(category != null){
          stringCategory = category.getNicename();
        }
        cats.add(stringCategory);
      }
    }
   
View Full Code Here


    if(stringCategories == null || stringCategories.isEmpty()){
      return;
    }
    Site site = getSite();
    for(String stringCategory: stringCategories){
      Category category = site.getCategory(stringCategory);
      if(category == null){
        String nicename = site.toNicename(stringCategory);
        category = new CategoryImpl(nicename, stringCategory, site);
        //add to site categories
        site.getCategories().add(category);
      }
      category.getPosts().add(this);
      this.categories.add(category);
    }
  }
View Full Code Here

      if(index != -1){
        nicename = path.substring(index + 1);
        parentPath = path.substring(0, index);
      }
     
      Category parent = null;
      if(parentPath != null){
        parent = categories.get(parentPath);
        if(parent == null){
          throw new IllegalArgumentException("Parent category not found: " + parentPath);
        }
View Full Code Here

TOP

Related Classes of org.opoo.press.Category

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.