com.liferay.portlet.messageboards.service
Interface MBCategoryService

All Known Implementing Classes:
MBCategoryServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface MBCategoryService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.messageboards.service.impl.MBCategoryServiceImpl}. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

Author:
Brian Wing Shun Chan
See Also:
MBCategoryServiceUtil
Generated:

Method Summary
 MBCategory addCategory(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, ServiceContext serviceContext)
           
 void deleteCategory(long groupId, long categoryId)
           
 java.util.List<MBCategory> getCategories(long groupId, long parentCategoryId, int start, int end)
           
 int getCategoriesCount(long groupId, long parentCategoryId)
           
 MBCategory getCategory(long categoryId)
           
 java.util.List<java.lang.Long> getSubcategoryIds(java.util.List<java.lang.Long> categoryIds, long groupId, long categoryId)
           
 java.util.List<MBCategory> getSubscribedCategories(long groupId, long userId, int start, int end)
           
 int getSubscribedCategoriesCount(long groupId, long userId)
           
 void subscribeCategory(long groupId, long categoryId)
           
 void unsubscribeCategory(long groupId, long categoryId)
           
 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, ServiceContext serviceContext)
           
 

Method Detail

addCategory

MBCategory addCategory(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,
                       ServiceContext serviceContext)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

deleteCategory

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

getCategory

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBCategory getCategory(long categoryId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBCategory> getCategories(long groupId,
                                                                                  long parentCategoryId,
                                                                                  int start,
                                                                                  int end)
                                         throws SystemException
Throws:
SystemException

getCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCategoriesCount(long groupId,
                                                                long parentCategoryId)
                       throws SystemException
Throws:
SystemException

getSubcategoryIds

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Long> getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
                                                                                          long groupId,
                                                                                          long categoryId)
                                                 throws SystemException
Throws:
SystemException

getSubscribedCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBCategory> getSubscribedCategories(long groupId,
                                                                                            long userId,
                                                                                            int start,
                                                                                            int end)
                                                   throws SystemException
Throws:
SystemException

getSubscribedCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getSubscribedCategoriesCount(long groupId,
                                                                          long userId)
                                 throws SystemException
Throws:
SystemException

subscribeCategory

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

unsubscribeCategory

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

updateCategory

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,
                          ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException