com.liferay.portlet.messageboards.service.impl
Class MBCategoryLocalServiceImpl

java.lang.Object
  extended by com.liferay.portlet.messageboards.service.base.MBCategoryLocalServiceBaseImpl
      extended by com.liferay.portlet.messageboards.service.impl.MBCategoryLocalServiceImpl
All Implemented Interfaces:
com.liferay.portlet.messageboards.service.MBCategoryLocalService, org.springframework.beans.factory.InitializingBean

public class MBCategoryLocalServiceImpl
extends MBCategoryLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portlet.messageboards.service.base.MBCategoryLocalServiceBaseImpl
counterLocalService, counterService, mbBanLocalService, mbBanPersistence, mbBanService, mbCategoryFinder, mbCategoryPersistence, mbDiscussionPersistence, mbMessageFinder, mbMessageFlagFinder, mbMessageFlagLocalService, mbMessageFlagPersistence, mbMessageLocalService, mbMessagePersistence, mbMessageService, mbStatsUserLocalService, mbStatsUserPersistence, mbThreadFinder, mbThreadLocalService, mbThreadPersistence, mbThreadService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, subscriptionLocalService, subscriptionPersistence, tagsEntryFinder, tagsEntryLocalService, tagsEntryPersistence, tagsEntryService, userFinder, userLocalService, userPersistence, userService
 
Constructor Summary
MBCategoryLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.messageboards.model.MBCategory addCategory(long userId, long plid, long parentCategoryId, java.lang.String name, java.lang.String description, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.messageboards.model.MBCategory addCategory(long userId, long plid, long parentCategoryId, java.lang.String name, java.lang.String description, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 com.liferay.portlet.messageboards.model.MBCategory addCategory(java.lang.String uuid, long userId, long plid, long parentCategoryId, java.lang.String name, java.lang.String description, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.messageboards.model.MBCategory addCategory(java.lang.String uuid, long userId, long plid, 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)
           
 void addCategoryResources(long categoryId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(long categoryId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addCategoryResources(com.liferay.portlet.messageboards.model.MBCategory category, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(com.liferay.portlet.messageboards.model.MBCategory category, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void deleteCategories(long groupId)
           
 void deleteCategory(long categoryId)
           
 void deleteCategory(com.liferay.portlet.messageboards.model.MBCategory category)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(long groupId, long parentCategoryId)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(long groupId, long parentCategoryId, int begin, int end)
           
 int getCategoriesCount(long groupId)
           
 int getCategoriesCount(long groupId, long parentCategoryId)
           
 com.liferay.portlet.messageboards.model.MBCategory getCategory(long categoryId)
           
protected  long getParentCategoryId(long groupId, long parentCategoryId)
           
protected  long getParentCategoryId(com.liferay.portlet.messageboards.model.MBCategory category, long parentCategoryId)
           
 void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds, long groupId, long categoryId)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(long groupId, long userId, int begin, int end)
           
 int getSubscribedCategoriesCount(long groupId, long userId)
           
 com.liferay.portlet.messageboards.model.MBCategory getSystemCategory()
           
protected  void mergeCategories(com.liferay.portlet.messageboards.model.MBCategory fromCategory, long toCategoryId)
           
 void reIndex(java.lang.String[] ids)
           
 com.liferay.portal.kernel.search.Hits search(long companyId, long groupId, long[] categoryIds, long threadId, java.lang.String keywords)
           
 void subscribeCategory(long userId, long categoryId)
           
 void unsubscribeCategory(long userId, long categoryId)
           
 com.liferay.portlet.messageboards.model.MBCategory updateCategory(long categoryId, long parentCategoryId, java.lang.String name, java.lang.String description, boolean mergeWithParentCategory)
           
protected  void validate(java.lang.String name)
           
 
Methods inherited from class com.liferay.portlet.messageboards.service.base.MBCategoryLocalServiceBaseImpl
addMBCategory, afterPropertiesSet, deleteMBCategory, deleteMBCategory, dynamicQuery, dynamicQuery, getCounterLocalService, getCounterService, getMBBanLocalService, getMBBanPersistence, getMBBanService, getMBCategoryFinder, getMBCategoryPersistence, getMBDiscussionPersistence, getMBMessageFinder, getMBMessageFlagFinder, getMBMessageFlagLocalService, getMBMessageFlagPersistence, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getMBStatsUserLocalService, getMBStatsUserPersistence, getMBThreadFinder, getMBThreadLocalService, getMBThreadPersistence, getMBThreadService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSubscriptionLocalService, getSubscriptionPersistence, getTagsEntryFinder, getTagsEntryLocalService, getTagsEntryPersistence, getTagsEntryService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, setCounterLocalService, setCounterService, setMBBanLocalService, setMBBanPersistence, setMBBanService, setMBCategoryFinder, setMBCategoryPersistence, setMBDiscussionPersistence, setMBMessageFinder, setMBMessageFlagFinder, setMBMessageFlagLocalService, setMBMessageFlagPersistence, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setMBStatsUserLocalService, setMBStatsUserPersistence, setMBThreadFinder, setMBThreadLocalService, setMBThreadPersistence, setMBThreadService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSubscriptionLocalService, setSubscriptionPersistence, setTagsEntryFinder, setTagsEntryLocalService, setTagsEntryPersistence, setTagsEntryService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateMBCategory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBCategoryLocalServiceImpl

public MBCategoryLocalServiceImpl()
Method Detail

addCategory

public com.liferay.portlet.messageboards.model.MBCategory addCategory(long userId,
                                                                      long plid,
                                                                      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.messageboards.model.MBCategory addCategory(java.lang.String uuid,
                                                                      long userId,
                                                                      long plid,
                                                                      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.messageboards.model.MBCategory addCategory(long userId,
                                                                      long plid,
                                                                      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.messageboards.model.MBCategory addCategory(java.lang.String uuid,
                                                                      long userId,
                                                                      long plid,
                                                                      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.messageboards.model.MBCategory 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.messageboards.model.MBCategory 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

deleteCategories

public void deleteCategories(long groupId)
                      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.messageboards.model.MBCategory category)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCategories

public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(long groupId,
                                                                                        long parentCategoryId)
                                                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCategories

public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(long groupId,
                                                                                        long parentCategoryId,
                                                                                        int begin,
                                                                                        int end)
                                                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCategoriesCount

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

getCategoriesCount

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

getCategory

public com.liferay.portlet.messageboards.model.MBCategory 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<java.lang.Long> categoryIds,
                              long groupId,
                              long categoryId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getSubscribedCategories

public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(long groupId,
                                                                                                  long userId,
                                                                                                  int begin,
                                                                                                  int end)
                                                                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getSubscribedCategoriesCount

public int getSubscribedCategoriesCount(long groupId,
                                        long userId)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getSystemCategory

public com.liferay.portlet.messageboards.model.MBCategory getSystemCategory()
                                                                     throws com.liferay.portal.PortalException,
                                                                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

reIndex

public void reIndex(java.lang.String[] ids)
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

public com.liferay.portal.kernel.search.Hits search(long companyId,
                                                    long groupId,
                                                    long[] categoryIds,
                                                    long threadId,
                                                    java.lang.String keywords)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateCategory

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

getParentCategoryId

protected long getParentCategoryId(long groupId,
                                   long parentCategoryId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getParentCategoryId

protected long getParentCategoryId(com.liferay.portlet.messageboards.model.MBCategory category,
                                   long parentCategoryId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

mergeCategories

protected void mergeCategories(com.liferay.portlet.messageboards.model.MBCategory fromCategory,
                               long toCategoryId)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

subscribeCategory

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

unsubscribeCategory

public void unsubscribeCategory(long userId,
                                long categoryId)
                         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