Liferay 7.0-ce-b4

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

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.messageboards.service.base.MBCategoryLocalServiceBaseImpl
          extended by com.liferay.portlet.messageboards.service.impl.MBCategoryLocalServiceImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, MBCategoryLocalService

public class MBCategoryLocalServiceImpl
extends MBCategoryLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portlet.messageboards.service.base.MBCategoryLocalServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, counterLocalService, expandoRowLocalService, expandoRowPersistence, groupFinder, groupLocalService, groupPersistence, mbCategoryFinder, mbCategoryLocalService, mbCategoryPersistence, mbMailingListLocalService, mbMailingListPersistence, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbThreadFinder, mbThreadLocalService, mbThreadPersistence, persistedModelLocalServiceRegistry, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceLocalService, subscriptionLocalService, subscriptionPersistence, systemEventLocalService, systemEventPersistence, trashEntryLocalService, trashEntryPersistence, trashVersionLocalService, trashVersionPersistence, userFinder, userLocalService, userPersistence
 
Constructor Summary
MBCategoryLocalServiceImpl()
           
 
Method Summary
 MBCategory addCategory(long userId, long parentCategoryId, String name, String description, ServiceContext serviceContext)
           
 MBCategory addCategory(long userId, long parentCategoryId, String name, String description, String displayStyle, String emailAddress, String inProtocol, String inServerName, int inServerPort, boolean inUseSSL, String inUserName, String inPassword, int inReadInterval, String outEmailAddress, boolean outCustom, String outServerName, int outServerPort, boolean outUseSSL, String outUserName, String outPassword, boolean allowAnonymous, boolean mailingListActive, ServiceContext serviceContext)
           
 void addCategoryResources(long categoryId, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(long categoryId, ModelPermissions modelPermissions)
           
 void addCategoryResources(MBCategory category, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(MBCategory category, ModelPermissions modelPermissions)
           
 void deleteCategories(long groupId)
           
 void deleteCategory(long categoryId)
           
 void deleteCategory(MBCategory category)
           
 void deleteCategory(MBCategory category, boolean includeTrashedEntries)
           
 List<MBCategory> getCategories(long groupId)
           
 List<MBCategory> getCategories(long groupId, int status)
           
 List<MBCategory> getCategories(long groupId, long[] parentCategoryIds, int start, int end)
           
 List<MBCategory> getCategories(long groupId, long[] parentCategoryIds, int status, int start, int end)
           
 List<MBCategory> getCategories(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status, int start, int end)
           
 List<MBCategory> getCategories(long groupId, long parentCategoryId, int start, int end)
           
 List<MBCategory> getCategories(long groupId, long parentCategoryId, int status, int start, int end)
           
 List<MBCategory> getCategories(long groupId, long excludedCategoryId, long parentCategoryId, int status, int start, int end)
           
 List<Object> getCategoriesAndThreads(long groupId, long categoryId)
           
 List<Object> getCategoriesAndThreads(long groupId, long categoryId, int status)
           
 List<Object> getCategoriesAndThreads(long groupId, long categoryId, int status, int start, int end)
           
 int getCategoriesAndThreadsCount(long groupId, long categoryId)
           
 int getCategoriesAndThreadsCount(long groupId, long categoryId, int status)
           
 int getCategoriesCount(long groupId)
           
 int getCategoriesCount(long groupId, int status)
           
 int getCategoriesCount(long groupId, long parentCategoryId)
           
 int getCategoriesCount(long groupId, long[] parentCategoryIds)
           
 int getCategoriesCount(long groupId, long[] parentCategoryIds, int status)
           
 int getCategoriesCount(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status)
           
 int getCategoriesCount(long groupId, long parentCategoryId, int status)
           
 int getCategoriesCount(long groupId, long excludedCategoryId, long parentCategoryId, int status)
           
 MBCategory getCategory(long categoryId)
           
 List<MBCategory> getCompanyCategories(long companyId, int start, int end)
           
 int getCompanyCategoriesCount(long companyId)
           
protected  long getParentCategoryId(long groupId, long parentCategoryId)
           
protected  long getParentCategoryId(MBCategory category, long parentCategoryId)
           
 List<Long> getSubcategoryIds(List<Long> categoryIds, long groupId, long categoryId)
           
 List<MBCategory> getSubscribedCategories(long groupId, long userId, int start, int end)
           
 int getSubscribedCategoriesCount(long groupId, long userId)
           
protected  void mergeCategories(MBCategory fromCategory, long toCategoryId)
           
 void moveCategoriesToTrash(long groupId, long userId)
           
 MBCategory moveCategory(long categoryId, long parentCategoryId, boolean mergeWithParentCategory)
           
 MBCategory moveCategoryFromTrash(long userId, long categoryId, long newCategoryId)
           
 MBCategory moveCategoryToTrash(long userId, long categoryId)
           
protected  void moveDependentsToTrash(User user, List<Object> categoriesAndThreads, long trashEntryId)
           
 void restoreCategoryFromTrash(long userId, long categoryId)
           
protected  void restoreDependentsFromTrash(User user, List<Object> categoriesAndThreads)
           
 void subscribeCategory(long userId, long groupId, long categoryId)
           
 void unsubscribeCategory(long userId, long groupId, long categoryId)
           
 MBCategory updateCategory(long categoryId, long parentCategoryId, String name, String description, String displayStyle, String emailAddress, String inProtocol, String inServerName, int inServerPort, boolean inUseSSL, String inUserName, String inPassword, int inReadInterval, String outEmailAddress, boolean outCustom, String outServerName, int outServerPort, boolean outUseSSL, String outUserName, String outPassword, boolean allowAnonymous, boolean mailingListActive, boolean mergeWithParentCategory, ServiceContext serviceContext)
           
protected  void updateChildCategoriesDisplayStyle(MBCategory category, String displayStyle)
           
 MBCategory updateMessageCount(long categoryId)
           
 MBCategory updateStatistics(long categoryId)
           
 MBCategory updateStatus(long userId, long categoryId, int status)
           
 MBCategory updateThreadCount(long categoryId)
           
protected  void validate(String name)
           
 
Methods inherited from class com.liferay.portlet.messageboards.service.base.MBCategoryLocalServiceBaseImpl
addMBCategory, afterPropertiesSet, createMBCategory, deleteMBCategory, deleteMBCategory, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchMBCategory, fetchMBCategoryByUuidAndGroupId, getActionableDynamicQuery, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getCounterLocalService, getExpandoRowLocalService, getExpandoRowPersistence, getExportActionableDynamicQuery, getGroupFinder, getGroupLocalService, getGroupPersistence, getIndexableActionableDynamicQuery, getMBCategories, getMBCategoriesByUuidAndCompanyId, getMBCategoriesByUuidAndCompanyId, getMBCategoriesCount, getMBCategory, getMBCategoryByUuidAndGroupId, getMBCategoryFinder, getMBCategoryLocalService, getMBCategoryPersistence, getMBMailingListLocalService, getMBMailingListPersistence, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBThreadFinder, getMBThreadLocalService, getMBThreadPersistence, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceLocalService, getSubscriptionLocalService, getSubscriptionPersistence, getSystemEventLocalService, getSystemEventPersistence, getTrashEntryLocalService, getTrashEntryPersistence, getTrashVersionLocalService, getTrashVersionPersistence, getUserFinder, getUserLocalService, getUserPersistence, initActionableDynamicQuery, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setCounterLocalService, setExpandoRowLocalService, setExpandoRowPersistence, setGroupFinder, setGroupLocalService, setGroupPersistence, setMBCategoryFinder, setMBCategoryLocalService, setMBCategoryPersistence, setMBMailingListLocalService, setMBMailingListPersistence, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBThreadFinder, setMBThreadLocalService, setMBThreadPersistence, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceLocalService, setSubscriptionLocalService, setSubscriptionPersistence, setSystemEventLocalService, setSystemEventPersistence, setTrashEntryLocalService, setTrashEntryPersistence, setTrashVersionLocalService, setTrashVersionPersistence, setUserFinder, setUserLocalService, setUserPersistence, updateMBCategory
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
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 MBCategory addCategory(long userId,
                              long parentCategoryId,
                              String name,
                              String description,
                              ServiceContext serviceContext)
                       throws PortalException
Throws:
PortalException

addCategory

public MBCategory addCategory(long userId,
                              long parentCategoryId,
                              String name,
                              String description,
                              String displayStyle,
                              String emailAddress,
                              String inProtocol,
                              String inServerName,
                              int inServerPort,
                              boolean inUseSSL,
                              String inUserName,
                              String inPassword,
                              int inReadInterval,
                              String outEmailAddress,
                              boolean outCustom,
                              String outServerName,
                              int outServerPort,
                              boolean outUseSSL,
                              String outUserName,
                              String outPassword,
                              boolean allowAnonymous,
                              boolean mailingListActive,
                              ServiceContext serviceContext)
                       throws PortalException
Throws:
PortalException

addCategoryResources

public void addCategoryResources(long categoryId,
                                 boolean addGroupPermissions,
                                 boolean addGuestPermissions)
                          throws PortalException
Throws:
PortalException

addCategoryResources

public void addCategoryResources(long categoryId,
                                 ModelPermissions modelPermissions)
                          throws PortalException
Throws:
PortalException

addCategoryResources

public void addCategoryResources(MBCategory category,
                                 boolean addGroupPermissions,
                                 boolean addGuestPermissions)
                          throws PortalException
Throws:
PortalException

addCategoryResources

public void addCategoryResources(MBCategory category,
                                 ModelPermissions modelPermissions)
                          throws PortalException
Throws:
PortalException

deleteCategories

public void deleteCategories(long groupId)
                      throws PortalException
Throws:
PortalException

deleteCategory

public void deleteCategory(long categoryId)
                    throws PortalException
Throws:
PortalException

deleteCategory

public void deleteCategory(MBCategory category)
                    throws PortalException
Throws:
PortalException

deleteCategory

@SystemEvent(action=1,
             type=1)
public void deleteCategory(MBCategory category,
                                                 boolean includeTrashedEntries)
                    throws PortalException
Throws:
PortalException

getCategories

public List<MBCategory> getCategories(long groupId)

getCategories

public List<MBCategory> getCategories(long groupId,
                                      int status)

getCategories

public List<MBCategory> getCategories(long groupId,
                                      long parentCategoryId,
                                      int start,
                                      int end)

getCategories

public List<MBCategory> getCategories(long groupId,
                                      long parentCategoryId,
                                      int status,
                                      int start,
                                      int end)

getCategories

public List<MBCategory> getCategories(long groupId,
                                      long excludedCategoryId,
                                      long parentCategoryId,
                                      int status,
                                      int start,
                                      int end)

getCategories

public List<MBCategory> getCategories(long groupId,
                                      long[] parentCategoryIds,
                                      int start,
                                      int end)

getCategories

public List<MBCategory> getCategories(long groupId,
                                      long[] parentCategoryIds,
                                      int status,
                                      int start,
                                      int end)

getCategories

public List<MBCategory> getCategories(long groupId,
                                      long[] excludedCategoryIds,
                                      long[] parentCategoryIds,
                                      int status,
                                      int start,
                                      int end)

getCategoriesAndThreads

public List<Object> getCategoriesAndThreads(long groupId,
                                            long categoryId)

getCategoriesAndThreads

public List<Object> getCategoriesAndThreads(long groupId,
                                            long categoryId,
                                            int status)

getCategoriesAndThreads

public List<Object> getCategoriesAndThreads(long groupId,
                                            long categoryId,
                                            int status,
                                            int start,
                                            int end)

getCategoriesAndThreadsCount

public int getCategoriesAndThreadsCount(long groupId,
                                        long categoryId)

getCategoriesAndThreadsCount

public int getCategoriesAndThreadsCount(long groupId,
                                        long categoryId,
                                        int status)

getCategoriesCount

public int getCategoriesCount(long groupId)

getCategoriesCount

public int getCategoriesCount(long groupId,
                              int status)

getCategoriesCount

public int getCategoriesCount(long groupId,
                              long parentCategoryId)

getCategoriesCount

public int getCategoriesCount(long groupId,
                              long parentCategoryId,
                              int status)

getCategoriesCount

public int getCategoriesCount(long groupId,
                              long excludedCategoryId,
                              long parentCategoryId,
                              int status)

getCategoriesCount

public int getCategoriesCount(long groupId,
                              long[] parentCategoryIds)

getCategoriesCount

public int getCategoriesCount(long groupId,
                              long[] parentCategoryIds,
                              int status)

getCategoriesCount

public int getCategoriesCount(long groupId,
                              long[] excludedCategoryIds,
                              long[] parentCategoryIds,
                              int status)

getCategory

public MBCategory getCategory(long categoryId)
                       throws PortalException
Throws:
PortalException

getCompanyCategories

public List<MBCategory> getCompanyCategories(long companyId,
                                             int start,
                                             int end)

getCompanyCategoriesCount

public int getCompanyCategoriesCount(long companyId)

getSubcategoryIds

public List<Long> getSubcategoryIds(List<Long> categoryIds,
                                    long groupId,
                                    long categoryId)

getSubscribedCategories

public List<MBCategory> getSubscribedCategories(long groupId,
                                                long userId,
                                                int start,
                                                int end)

getSubscribedCategoriesCount

public int getSubscribedCategoriesCount(long groupId,
                                        long userId)

moveCategoriesToTrash

public void moveCategoriesToTrash(long groupId,
                                  long userId)
                           throws PortalException
Throws:
PortalException

moveCategory

public MBCategory moveCategory(long categoryId,
                               long parentCategoryId,
                               boolean mergeWithParentCategory)
                        throws PortalException
Throws:
PortalException

moveCategoryFromTrash

public MBCategory moveCategoryFromTrash(long userId,
                                        long categoryId,
                                        long newCategoryId)
                                 throws PortalException
Throws:
PortalException

moveCategoryToTrash

public MBCategory moveCategoryToTrash(long userId,
                                      long categoryId)
                               throws PortalException
Throws:
PortalException

restoreCategoryFromTrash

public void restoreCategoryFromTrash(long userId,
                                     long categoryId)
                              throws PortalException
Throws:
PortalException

subscribeCategory

public void subscribeCategory(long userId,
                              long groupId,
                              long categoryId)
                       throws PortalException
Throws:
PortalException

unsubscribeCategory

public void unsubscribeCategory(long userId,
                                long groupId,
                                long categoryId)
                         throws PortalException
Throws:
PortalException

updateCategory

public MBCategory updateCategory(long categoryId,
                                 long parentCategoryId,
                                 String name,
                                 String description,
                                 String displayStyle,
                                 String emailAddress,
                                 String inProtocol,
                                 String inServerName,
                                 int inServerPort,
                                 boolean inUseSSL,
                                 String inUserName,
                                 String inPassword,
                                 int inReadInterval,
                                 String outEmailAddress,
                                 boolean outCustom,
                                 String outServerName,
                                 int outServerPort,
                                 boolean outUseSSL,
                                 String outUserName,
                                 String outPassword,
                                 boolean allowAnonymous,
                                 boolean mailingListActive,
                                 boolean mergeWithParentCategory,
                                 ServiceContext serviceContext)
                          throws PortalException
Throws:
PortalException

updateMessageCount

public MBCategory updateMessageCount(long categoryId)

updateStatistics

public MBCategory updateStatistics(long categoryId)

updateStatus

public MBCategory updateStatus(long userId,
                               long categoryId,
                               int status)
                        throws PortalException
Throws:
PortalException

updateThreadCount

public MBCategory updateThreadCount(long categoryId)

getParentCategoryId

protected long getParentCategoryId(long groupId,
                                   long parentCategoryId)

getParentCategoryId

protected long getParentCategoryId(MBCategory category,
                                   long parentCategoryId)

mergeCategories

protected void mergeCategories(MBCategory fromCategory,
                               long toCategoryId)
                        throws PortalException
Throws:
PortalException

moveDependentsToTrash

protected void moveDependentsToTrash(User user,
                                     List<Object> categoriesAndThreads,
                                     long trashEntryId)
                              throws PortalException
Throws:
PortalException

restoreDependentsFromTrash

protected void restoreDependentsFromTrash(User user,
                                          List<Object> categoriesAndThreads)
                                   throws PortalException
Throws:
PortalException

updateChildCategoriesDisplayStyle

protected void updateChildCategoriesDisplayStyle(MBCategory category,
                                                 String displayStyle)
                                          throws PortalException
Throws:
PortalException

validate

protected void validate(String name)
                 throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4