com.liferay.portlet.messageboards.model.impl
Class MBCategoryDisplayImpl
java.lang.Object
com.liferay.portlet.messageboards.model.impl.MBCategoryDisplayImpl
- All Implemented Interfaces:
- MBCategoryDisplay
public class MBCategoryDisplayImpl
- extends Object
- implements MBCategoryDisplay
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBCategoryDisplayImpl
public MBCategoryDisplayImpl(long scopeGroupId,
long categoryId)
getAllCategories
public List<MBCategory> getAllCategories()
- Specified by:
getAllCategories
in interface MBCategoryDisplay
getAllCategoriesCount
public int getAllCategoriesCount()
- Specified by:
getAllCategoriesCount
in interface MBCategoryDisplay
getCategories
public List<MBCategory> getCategories()
- Specified by:
getCategories
in interface MBCategoryDisplay
getCategories
public List<MBCategory> getCategories(MBCategory category)
- Specified by:
getCategories
in interface MBCategoryDisplay
getRootCategory
public MBCategory getRootCategory()
- Specified by:
getRootCategory
in interface MBCategoryDisplay
getSubcategoriesCount
public int getSubcategoriesCount(MBCategory category)
- Specified by:
getSubcategoriesCount
in interface MBCategoryDisplay
getSubcategoriesMessagesCount
public int getSubcategoriesMessagesCount(MBCategory category)
- Specified by:
getSubcategoriesMessagesCount
in interface MBCategoryDisplay
getSubcategoriesThreadsCount
public int getSubcategoriesThreadsCount(MBCategory category)
- Specified by:
getSubcategoriesThreadsCount
in interface MBCategoryDisplay
getSubcategoryIds
public void getSubcategoryIds(MBCategory category,
List<Long> categoryIds)
- Specified by:
getSubcategoryIds
in interface MBCategoryDisplay
init
protected void init(long scopeGroupId,
long categoryId)
throws Exception
- Throws:
Exception
populateCategoryNodesMap
protected void populateCategoryNodesMap(TreeNode<MBCategory> node,
Map<Long,List<MBCategory>> categoriesMap)