Liferay 6.2-ce-ga5

com.liferay.portlet.messageboards.model.impl
Class MBCategoryDisplayImpl

java.lang.Object
  extended by com.liferay.portlet.messageboards.model.impl.MBCategoryDisplayImpl
All Implemented Interfaces:
MBCategoryDisplay

public class MBCategoryDisplayImpl
extends Object
implements MBCategoryDisplay


Constructor Summary
MBCategoryDisplayImpl(long scopeGroupId, long categoryId)
           
 
Method Summary
 List<MBCategory> getAllCategories()
           
 int getAllCategoriesCount()
           
 List<MBCategory> getCategories()
           
 List<MBCategory> getCategories(MBCategory category)
           
 MBCategory getRootCategory()
           
 int getSubcategoriesCount(MBCategory category)
           
 int getSubcategoriesMessagesCount(MBCategory category)
           
 int getSubcategoriesThreadsCount(MBCategory category)
           
 void getSubcategoryIds(MBCategory category, List<Long> categoryIds)
           
protected  void init(long scopeGroupId, long categoryId)
           
protected  void populateCategoryNodesMap(TreeNode<MBCategory> node, Map<Long,List<MBCategory>> categoriesMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBCategoryDisplayImpl

public MBCategoryDisplayImpl(long scopeGroupId,
                             long categoryId)
Method Detail

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)

Liferay 6.2-ce-ga5