com.liferay.portlet.messageboards.service
Interface MBCategoryService


@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.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

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 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 categoryId)
           
 void unsubscribeCategory(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)
           
 

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.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteCategory

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

getCategory

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

getCategories

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

getCategoriesCount

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

subscribeCategory

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

unsubscribeCategory

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