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

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, mbCategoryLocalService, mbCategoryPersistence, mbCategoryService, mbDiscussionLocalService, mbDiscussionPersistence, mbMailingListLocalService, mbMailingListPersistence, mbMessageFinder, mbMessageFlagLocalService, mbMessageFlagPersistence, mbMessageFlagService, 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 parentCategoryId, java.lang.String name, java.lang.String description, java.lang.String emailAddress, java.lang.String inProtocol, java.lang.String inServerName, int inServerPort, boolean inUseSSL, java.lang.String inUserName, java.lang.String inPassword, int inReadInterval, java.lang.String outEmailAddress, boolean outCustom, java.lang.String outServerName, int outServerPort, boolean outUseSSL, java.lang.String outUserName, java.lang.String outPassword, boolean mailingListActive, com.liferay.portal.service.ServiceContext serviceContext)
           
 com.liferay.portlet.messageboards.model.MBCategory addCategory(java.lang.String uuid, long userId, long parentCategoryId, java.lang.String name, java.lang.String description, java.lang.String emailAddress, java.lang.String inProtocol, java.lang.String inServerName, int inServerPort, boolean inUseSSL, java.lang.String inUserName, java.lang.String inPassword, int inReadInterval, java.lang.String outEmailAddress, boolean outCustom, java.lang.String outServerName, int outServerPort, boolean outUseSSL, java.lang.String outUserName, java.lang.String outPassword, boolean mailingListActive, com.liferay.portal.service.ServiceContext serviceContext)
           
 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)
           
 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 start, 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 start, 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)
           
protected  void reIndexCategories(long companyId)
           
protected  void reIndexCategories(long companyId, int categoryStart, int categoryEnd)
           
protected  void reIndexMessages(long categoryId, int messageStart, int messageEnd)
           
 com.liferay.portal.kernel.search.Hits search(long companyId, long groupId, long[] categoryIds, long threadId, java.lang.String keywords, int start, int end)
           
 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, java.lang.String emailAddress, java.lang.String inProtocol, java.lang.String inServerName, int inServerPort, boolean inUseSSL, java.lang.String inUserName, java.lang.String inPassword, int inReadInterval, java.lang.String outEmailAddress, boolean outCustom, java.lang.String outServerName, int outServerPort, boolean outUseSSL, java.lang.String outUserName, java.lang.String outPassword, boolean mailingListActive, boolean mergeWithParentCategory)
           
protected  void validate(java.lang.String name)
           
 
Methods inherited from class com.liferay.portlet.messageboards.service.base.MBCategoryLocalServiceBaseImpl
addMBCategory, createMBCategory, deleteMBCategory, deleteMBCategory, dynamicQuery, dynamicQuery, getCounterLocalService, getCounterService, getMBBanLocalService, getMBBanPersistence, getMBBanService, getMBCategories, getMBCategoriesCount, getMBCategory, getMBCategoryFinder, getMBCategoryLocalService, getMBCategoryPersistence, getMBCategoryService, getMBDiscussionLocalService, getMBDiscussionPersistence, getMBMailingListLocalService, getMBMailingListPersistence, getMBMessageFinder, getMBMessageFlagLocalService, getMBMessageFlagPersistence, getMBMessageFlagService, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getMBStatsUserLocalService, getMBStatsUserPersistence, getMBThreadFinder, getMBThreadLocalService, getMBThreadPersistence, getMBThreadService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSubscriptionLocalService, getSubscriptionPersistence, getTagsEntryFinder, getTagsEntryLocalService, getTagsEntryPersistence, getTagsEntryService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setCounterLocalService, setCounterService, setMBBanLocalService, setMBBanPersistence, setMBBanService, setMBCategoryFinder, setMBCategoryLocalService, setMBCategoryPersistence, setMBCategoryService, setMBDiscussionLocalService, setMBDiscussionPersistence, setMBMailingListLocalService, setMBMailingListPersistence, setMBMessageFinder, setMBMessageFlagLocalService, setMBMessageFlagPersistence, setMBMessageFlagService, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setMBStatsUserLocalService, setMBStatsUserPersistence, setMBThreadFinder, setMBThreadLocalService, setMBThreadPersistence, setMBThreadService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSubscriptionLocalService, setSubscriptionPersistence, setTagsEntryFinder, setTagsEntryLocalService, setTagsEntryPersistence, setTagsEntryService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateMBCategory, 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 parentCategoryId,
                                                                      java.lang.String name,
                                                                      java.lang.String description,
                                                                      java.lang.String emailAddress,
                                                                      java.lang.String inProtocol,
                                                                      java.lang.String inServerName,
                                                                      int inServerPort,
                                                                      boolean inUseSSL,
                                                                      java.lang.String inUserName,
                                                                      java.lang.String inPassword,
                                                                      int inReadInterval,
                                                                      java.lang.String outEmailAddress,
                                                                      boolean outCustom,
                                                                      java.lang.String outServerName,
                                                                      int outServerPort,
                                                                      boolean outUseSSL,
                                                                      java.lang.String outUserName,
                                                                      java.lang.String outPassword,
                                                                      boolean mailingListActive,
                                                                      com.liferay.portal.service.ServiceContext serviceContext)
                                                               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 parentCategoryId,
                                                                      java.lang.String name,
                                                                      java.lang.String description,
                                                                      java.lang.String emailAddress,
                                                                      java.lang.String inProtocol,
                                                                      java.lang.String inServerName,
                                                                      int inServerPort,
                                                                      boolean inUseSSL,
                                                                      java.lang.String inUserName,
                                                                      java.lang.String inPassword,
                                                                      int inReadInterval,
                                                                      java.lang.String outEmailAddress,
                                                                      boolean outCustom,
                                                                      java.lang.String outServerName,
                                                                      int outServerPort,
                                                                      boolean outUseSSL,
                                                                      java.lang.String outUserName,
                                                                      java.lang.String outPassword,
                                                                      boolean mailingListActive,
                                                                      com.liferay.portal.service.ServiceContext serviceContext)
                                                               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)
                                                                                 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)
                                                                                 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 start,
                                                                                        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 start,
                                                                                                  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.SystemException
Throws:
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,
                                                    int start,
                                                    int end)
                                             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,
                                                                         java.lang.String emailAddress,
                                                                         java.lang.String inProtocol,
                                                                         java.lang.String inServerName,
                                                                         int inServerPort,
                                                                         boolean inUseSSL,
                                                                         java.lang.String inUserName,
                                                                         java.lang.String inPassword,
                                                                         int inReadInterval,
                                                                         java.lang.String outEmailAddress,
                                                                         boolean outCustom,
                                                                         java.lang.String outServerName,
                                                                         int outServerPort,
                                                                         boolean outUseSSL,
                                                                         java.lang.String outUserName,
                                                                         java.lang.String outPassword,
                                                                         boolean mailingListActive,
                                                                         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

reIndexCategories

protected void reIndexCategories(long companyId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

reIndexCategories

protected void reIndexCategories(long companyId,
                                 int categoryStart,
                                 int categoryEnd)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

reIndexMessages

protected void reIndexMessages(long categoryId,
                               int messageStart,
                               int messageEnd)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

validate

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