com.liferay.portlet.blogs.service.impl
Class BlogsCategoryLocalServiceImpl

java.lang.Object
  extended bycom.liferay.portlet.blogs.service.base.BlogsCategoryLocalServiceBaseImpl
      extended bycom.liferay.portlet.blogs.service.impl.BlogsCategoryLocalServiceImpl
All Implemented Interfaces:
com.liferay.portlet.blogs.service.BlogsCategoryLocalService

public class BlogsCategoryLocalServiceImpl
extends BlogsCategoryLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
BlogsCategoryLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.blogs.model.BlogsCategory addCategory(long userId, long parentCategoryId, java.lang.String name, java.lang.String description, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.blogs.model.BlogsCategory addCategory(long userId, long parentCategoryId, java.lang.String name, java.lang.String description, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 com.liferay.portlet.blogs.model.BlogsCategory addCategory(long userId, long parentCategoryId, java.lang.String name, java.lang.String description, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addCategoryResources(com.liferay.portlet.blogs.model.BlogsCategory category, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(com.liferay.portlet.blogs.model.BlogsCategory category, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addCategoryResources(long categoryId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(long categoryId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void deleteCategory(com.liferay.portlet.blogs.model.BlogsCategory category)
           
 void deleteCategory(long categoryId)
           
 java.util.List getCategories(long parentCategoryId, int begin, int end)
           
 int getCategoriesCount(long parentCategoryId)
           
 com.liferay.portlet.blogs.model.BlogsCategory getCategory(long categoryId)
           
 void getSubcategoryIds(java.util.List categoryIds, long categoryId)
           
 com.liferay.portlet.blogs.model.BlogsCategory updateCategory(long categoryId, long parentCategoryId, java.lang.String name, java.lang.String description)
           
protected  void validate(java.lang.String name)
           
 
Methods inherited from class com.liferay.portlet.blogs.service.base.BlogsCategoryLocalServiceBaseImpl
addBlogsCategory, dynamicQuery, dynamicQuery, updateBlogsCategory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlogsCategoryLocalServiceImpl

public BlogsCategoryLocalServiceImpl()
Method Detail

addCategory

public com.liferay.portlet.blogs.model.BlogsCategory addCategory(long userId,
                                                                 long parentCategoryId,
                                                                 java.lang.String name,
                                                                 java.lang.String description,
                                                                 boolean addCommunityPermissions,
                                                                 boolean addGuestPermissions)
                                                          throws com.liferay.portal.PortalException,
                                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addCategory

public com.liferay.portlet.blogs.model.BlogsCategory addCategory(long userId,
                                                                 long parentCategoryId,
                                                                 java.lang.String name,
                                                                 java.lang.String description,
                                                                 java.lang.String[] communityPermissions,
                                                                 java.lang.String[] guestPermissions)
                                                          throws com.liferay.portal.PortalException,
                                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addCategory

public com.liferay.portlet.blogs.model.BlogsCategory addCategory(long userId,
                                                                 long parentCategoryId,
                                                                 java.lang.String name,
                                                                 java.lang.String description,
                                                                 java.lang.Boolean addCommunityPermissions,
                                                                 java.lang.Boolean addGuestPermissions,
                                                                 java.lang.String[] communityPermissions,
                                                                 java.lang.String[] guestPermissions)
                                                          throws com.liferay.portal.PortalException,
                                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addCategoryResources

public void addCategoryResources(long categoryId,
                                 boolean addCommunityPermissions,
                                 boolean addGuestPermissions)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addCategoryResources

public void addCategoryResources(com.liferay.portlet.blogs.model.BlogsCategory category,
                                 boolean addCommunityPermissions,
                                 boolean addGuestPermissions)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addCategoryResources

public void addCategoryResources(long categoryId,
                                 java.lang.String[] communityPermissions,
                                 java.lang.String[] guestPermissions)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addCategoryResources

public void addCategoryResources(com.liferay.portlet.blogs.model.BlogsCategory category,
                                 java.lang.String[] communityPermissions,
                                 java.lang.String[] guestPermissions)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteCategory

public void deleteCategory(long categoryId)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteCategory

public void deleteCategory(com.liferay.portlet.blogs.model.BlogsCategory category)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCategories

public java.util.List getCategories(long parentCategoryId,
                                    int begin,
                                    int end)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCategoriesCount

public int getCategoriesCount(long parentCategoryId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCategory

public com.liferay.portlet.blogs.model.BlogsCategory getCategory(long categoryId)
                                                          throws com.liferay.portal.PortalException,
                                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getSubcategoryIds

public void getSubcategoryIds(java.util.List categoryIds,
                              long categoryId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateCategory

public com.liferay.portlet.blogs.model.BlogsCategory updateCategory(long categoryId,
                                                                    long parentCategoryId,
                                                                    java.lang.String name,
                                                                    java.lang.String description)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validate

protected void validate(java.lang.String name)
                 throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException