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

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

public class MBCategoryDisplayImpl
extends java.lang.Object
implements com.liferay.portlet.messageboards.model.MBCategoryDisplay

View Source

Author:
Shuyang Zhou

Constructor Summary
MBCategoryDisplayImpl(long scopeGroupId, long categoryId)
           
 
Method Summary
 java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getAllCategories()
           
 int getAllCategoriesCount()
           
 java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories()
           
 java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(com.liferay.portlet.messageboards.model.MBCategory category)
           
 com.liferay.portlet.messageboards.model.MBCategory getRootCategory()
           
 int getSubcategoriesCount(com.liferay.portlet.messageboards.model.MBCategory category)
           
 int getSubcategoriesMessagesCount(com.liferay.portlet.messageboards.model.MBCategory category)
           
 int getSubcategoriesThreadsCount(com.liferay.portlet.messageboards.model.MBCategory category)
           
 void getSubcategoryIds(com.liferay.portlet.messageboards.model.MBCategory category, java.util.List<java.lang.Long> categoryIds)
           
protected  void init(long scopeGroupId, long categoryId)
           
protected  void populateCategoryNodesMap(com.liferay.portal.kernel.util.TreeNode<com.liferay.portlet.messageboards.model.MBCategory> node, java.util.Map<java.lang.Long,java.util.List<com.liferay.portlet.messageboards.model.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 java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getAllCategories()
Specified by:
getAllCategories in interface com.liferay.portlet.messageboards.model.MBCategoryDisplay

getAllCategoriesCount

public int getAllCategoriesCount()
Specified by:
getAllCategoriesCount in interface com.liferay.portlet.messageboards.model.MBCategoryDisplay

getCategories

public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories()
Specified by:
getCategories in interface com.liferay.portlet.messageboards.model.MBCategoryDisplay

getCategories

public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(com.liferay.portlet.messageboards.model.MBCategory category)
Specified by:
getCategories in interface com.liferay.portlet.messageboards.model.MBCategoryDisplay

getRootCategory

public com.liferay.portlet.messageboards.model.MBCategory getRootCategory()
Specified by:
getRootCategory in interface com.liferay.portlet.messageboards.model.MBCategoryDisplay

getSubcategoriesCount

public int getSubcategoriesCount(com.liferay.portlet.messageboards.model.MBCategory category)
Specified by:
getSubcategoriesCount in interface com.liferay.portlet.messageboards.model.MBCategoryDisplay

getSubcategoriesMessagesCount

public int getSubcategoriesMessagesCount(com.liferay.portlet.messageboards.model.MBCategory category)
Specified by:
getSubcategoriesMessagesCount in interface com.liferay.portlet.messageboards.model.MBCategoryDisplay

getSubcategoriesThreadsCount

public int getSubcategoriesThreadsCount(com.liferay.portlet.messageboards.model.MBCategory category)
Specified by:
getSubcategoriesThreadsCount in interface com.liferay.portlet.messageboards.model.MBCategoryDisplay

getSubcategoryIds

public void getSubcategoryIds(com.liferay.portlet.messageboards.model.MBCategory category,
                              java.util.List<java.lang.Long> categoryIds)
Specified by:
getSubcategoryIds in interface com.liferay.portlet.messageboards.model.MBCategoryDisplay

init

protected void init(long scopeGroupId,
                    long categoryId)
             throws java.lang.Exception
Throws:
java.lang.Exception

populateCategoryNodesMap

protected void populateCategoryNodesMap(com.liferay.portal.kernel.util.TreeNode<com.liferay.portlet.messageboards.model.MBCategory> node,
                                        java.util.Map<java.lang.Long,java.util.List<com.liferay.portlet.messageboards.model.MBCategory>> categoriesMap)