Liferay 6.2-ce-ga5

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:
IdentifiableBean, BaseLocalService, PersistedModelLocalService, MBCategoryLocalService

public class MBCategoryLocalServiceImpl
extends MBCategoryLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portlet.messageboards.service.base.MBCategoryLocalServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, counterLocalService, expandoRowLocalService, expandoRowPersistence, groupFinder, groupLocalService, groupPersistence, groupService, mbBanLocalService, mbBanPersistence, mbBanService, mbCategoryFinder, mbCategoryLocalService, mbCategoryPersistence, mbCategoryService, mbDiscussionLocalService, mbDiscussionPersistence, mbMailingListLocalService, mbMailingListPersistence, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, mbStatsUserLocalService, mbStatsUserPersistence, mbThreadFinder, mbThreadFlagLocalService, mbThreadFlagPersistence, mbThreadLocalService, mbThreadPersistence, mbThreadService, persistedModelLocalServiceRegistry, resourceLocalService, subscriptionLocalService, subscriptionPersistence, systemEventLocalService, systemEventPersistence, trashEntryLocalService, trashEntryPersistence, trashEntryService, trashVersionLocalService, trashVersionPersistence, userFinder, userLocalService, userPersistence, userService
 
Fields inherited from class com.liferay.portal.service.BaseLocalServiceImpl
layoutPersistence
 
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, String[] groupPermissions, String[] guestPermissions)
           
 void addCategoryResources(MBCategory category, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(MBCategory category, String[] groupPermissions, String[] guestPermissions)
           
 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 parentCategoryId, int start, int end)
           
 List<MBCategory> getCategories(long groupId, long parentCategoryId, int status, int start, int end)
           
 List<Object> getCategoriesAndThreads(long groupId, long categoryId)
           
 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 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, long trashEntryId)
           
 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 updateStatus(long userId, long categoryId, int status)
           
protected  void validate(String name)
           
 
Methods inherited from class com.liferay.portlet.messageboards.service.base.MBCategoryLocalServiceBaseImpl
addMBCategory, afterPropertiesSet, createMBCategory, deleteMBCategory, deleteMBCategory, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchMBCategory, fetchMBCategoryByUuidAndCompanyId, fetchMBCategoryByUuidAndGroupId, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBeanIdentifier, getCounterLocalService, getExpandoRowLocalService, getExpandoRowPersistence, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getMBBanLocalService, getMBBanPersistence, getMBBanService, getMBCategories, getMBCategoriesCount, getMBCategory, getMBCategoryByUuidAndCompanyId, getMBCategoryByUuidAndGroupId, getMBCategoryFinder, getMBCategoryLocalService, getMBCategoryPersistence, getMBCategoryService, getMBDiscussionLocalService, getMBDiscussionPersistence, getMBMailingListLocalService, getMBMailingListPersistence, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getMBStatsUserLocalService, getMBStatsUserPersistence, getMBThreadFinder, getMBThreadFlagLocalService, getMBThreadFlagPersistence, getMBThreadLocalService, getMBThreadPersistence, getMBThreadService, getModelClass, getModelClassName, getPersistedModel, getResourceLocalService, getSubscriptionLocalService, getSubscriptionPersistence, getSystemEventLocalService, getSystemEventPersistence, getTrashEntryLocalService, getTrashEntryPersistence, getTrashEntryService, getTrashVersionLocalService, getTrashVersionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setBeanIdentifier, setCounterLocalService, setExpandoRowLocalService, setExpandoRowPersistence, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setMBBanLocalService, setMBBanPersistence, setMBBanService, setMBCategoryFinder, setMBCategoryLocalService, setMBCategoryPersistence, setMBCategoryService, setMBDiscussionLocalService, setMBDiscussionPersistence, setMBMailingListLocalService, setMBMailingListPersistence, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setMBStatsUserLocalService, setMBStatsUserPersistence, setMBThreadFinder, setMBThreadFlagLocalService, setMBThreadFlagPersistence, setMBThreadLocalService, setMBThreadPersistence, setMBThreadService, setResourceLocalService, setSubscriptionLocalService, setSubscriptionPersistence, setSystemEventLocalService, setSystemEventPersistence, setTrashEntryLocalService, setTrashEntryPersistence, setTrashEntryService, setTrashVersionLocalService, setTrashVersionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateMBCategory
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLayoutURL, getLayoutURL
 
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,
                              SystemException
Throws:
PortalException
SystemException

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,
                              SystemException
Throws:
PortalException
SystemException

addCategoryResources

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

addCategoryResources

public void addCategoryResources(long categoryId,
                                 String[] groupPermissions,
                                 String[] guestPermissions)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addCategoryResources

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

addCategoryResources

public void addCategoryResources(MBCategory category,
                                 String[] groupPermissions,
                                 String[] guestPermissions)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

deleteCategories

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

deleteCategory

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

deleteCategory

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

deleteCategory

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

getCategories

public List<MBCategory> getCategories(long groupId)
                               throws SystemException
Throws:
SystemException

getCategories

public List<MBCategory> getCategories(long groupId,
                                      int status)
                               throws SystemException
Throws:
SystemException

getCategories

public List<MBCategory> getCategories(long groupId,
                                      long parentCategoryId,
                                      int start,
                                      int end)
                               throws SystemException
Throws:
SystemException

getCategories

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

getCategories

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

getCategories

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

getCategoriesAndThreads

public List<Object> getCategoriesAndThreads(long groupId,
                                            long categoryId)
                                     throws SystemException
Throws:
SystemException

getCategoriesCount

public int getCategoriesCount(long groupId)
                       throws SystemException
Throws:
SystemException

getCategoriesCount

public int getCategoriesCount(long groupId,
                              int status)
                       throws SystemException
Throws:
SystemException

getCategoriesCount

public int getCategoriesCount(long groupId,
                              long parentCategoryId)
                       throws SystemException
Throws:
SystemException

getCategoriesCount

public int getCategoriesCount(long groupId,
                              long parentCategoryId,
                              int status)
                       throws SystemException
Throws:
SystemException

getCategoriesCount

public int getCategoriesCount(long groupId,
                              long[] parentCategoryIds)
                       throws SystemException
Throws:
SystemException

getCategoriesCount

public int getCategoriesCount(long groupId,
                              long[] parentCategoryIds,
                              int status)
                       throws SystemException
Throws:
SystemException

getCategory

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

getCompanyCategories

public List<MBCategory> getCompanyCategories(long companyId,
                                             int start,
                                             int end)
                                      throws SystemException
Throws:
SystemException

getCompanyCategoriesCount

public int getCompanyCategoriesCount(long companyId)
                              throws SystemException
Throws:
SystemException

getSubcategoryIds

public List<Long> getSubcategoryIds(List<Long> categoryIds,
                                    long groupId,
                                    long categoryId)
                             throws SystemException
Throws:
SystemException

getSubscribedCategories

public List<MBCategory> getSubscribedCategories(long groupId,
                                                long userId,
                                                int start,
                                                int end)
                                         throws SystemException
Throws:
SystemException

getSubscribedCategoriesCount

public int getSubscribedCategoriesCount(long groupId,
                                        long userId)
                                 throws SystemException
Throws:
SystemException

moveCategoriesToTrash

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

moveCategory

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

moveCategoryFromTrash

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

moveCategoryToTrash

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

restoreCategoryFromTrash

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

subscribeCategory

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

unsubscribeCategory

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

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,
                                 SystemException
Throws:
PortalException
SystemException

updateStatus

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

getParentCategoryId

protected long getParentCategoryId(long groupId,
                                   long parentCategoryId)
                            throws SystemException
Throws:
SystemException

getParentCategoryId

protected long getParentCategoryId(MBCategory category,
                                   long parentCategoryId)
                            throws SystemException
Throws:
SystemException

mergeCategories

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

moveDependentsToTrash

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

restoreDependentsFromTrash

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

updateChildCategoriesDisplayStyle

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

validate

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

Liferay 6.2-ce-ga5