|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pebble.domain.CategoryBuilder
public class CategoryBuilder
A class to manage blog categories.
Constructor Summary | |
---|---|
CategoryBuilder(Blog blog)
Creates a new instance. |
|
CategoryBuilder(Blog blog,
Category rootCategory)
Creates a new instance. |
Method Summary | |
---|---|
void |
addCategory(Category category)
Adds a category. |
java.util.List<Category> |
getCategories()
Gets a collection containing all blog categories, ordered by category name. |
java.util.List<Category> |
getCategories(Category category)
|
Category |
getCategory(java.lang.String id)
Gets (and creates if necessary), the specified category. |
Category |
getRootCategory()
Gets the root category. |
void |
removeCategory(Category category)
Removes a category. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CategoryBuilder(Blog blog)
public CategoryBuilder(Blog blog, Category rootCategory)
Method Detail |
---|
public void addCategory(Category category)
category
- a Category instancepublic void removeCategory(Category category)
category
- a Category instancepublic Category getCategory(java.lang.String id)
id
- the id of the category to find
public Category getRootCategory()
public java.util.List<Category> getCategories()
public java.util.List<Category> getCategories(Category category)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |