com.liferay.portlet.messageboards.service
Interface MBCategoryService

All Known Implementing Classes:
MBCategoryServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.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)
           
 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 com.liferay.portal.kernel.exception.PortalException,
                              com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteCategory

void deleteCategory(long groupId,
                    long categoryId)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getCategory

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBCategory getCategory(long categoryId)
                       throws com.liferay.portal.kernel.exception.PortalException,
                              com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getCategories

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

getCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCategoriesCount(long groupId,
                                     long parentCategoryId)
                       throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

subscribeCategory

void subscribeCategory(long groupId,
                       long categoryId)
                       throws com.liferay.portal.kernel.exception.PortalException,
                              com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

unsubscribeCategory

void unsubscribeCategory(long groupId,
                         long categoryId)
                         throws com.liferay.portal.kernel.exception.PortalException,
                                com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.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 com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException