com.liferay.portlet.messageboards.service
Interface MBCategoryLocalService


@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface MBCategoryLocalService

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.MBCategoryLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
MBCategoryLocalServiceUtil

Method Summary
 MBCategory addCategory(long userId, 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)
           
 MBCategory addCategory(java.lang.String uuid, long userId, 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 addCategoryResources(long categoryId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(long categoryId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addCategoryResources(MBCategory category, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(MBCategory category, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 MBCategory addMBCategory(MBCategory mbCategory)
           
 MBCategory createMBCategory(long categoryId)
           
 void deleteCategories(long groupId)
           
 void deleteCategory(long categoryId)
           
 void deleteCategory(MBCategory category)
           
 void deleteMBCategory(long categoryId)
           
 void deleteMBCategory(MBCategory mbCategory)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List<MBCategory> getCategories(long groupId, long parentCategoryId)
           
 java.util.List<MBCategory> getCategories(long groupId, long parentCategoryId, int start, int end)
           
 int getCategoriesCount(long groupId)
           
 int getCategoriesCount(long groupId, long parentCategoryId)
           
 MBCategory getCategory(long categoryId)
           
 java.util.List<MBCategory> getMBCategories(int start, int end)
           
 int getMBCategoriesCount()
           
 MBCategory getMBCategory(long categoryId)
           
 void 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)
           
 MBCategory getSystemCategory()
           
 void reIndex(java.lang.String[] ids)
           
 com.liferay.portal.kernel.search.Hits search(long companyId, long groupId, long[] categoryIds, long threadId, java.lang.String keywords, int start, int end)
           
 void subscribeCategory(long userId, long categoryId)
           
 void unsubscribeCategory(long userId, 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)
           
 MBCategory updateMBCategory(MBCategory mbCategory)
           
 

Method Detail

addMBCategory

MBCategory addMBCategory(MBCategory mbCategory)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createMBCategory

MBCategory createMBCategory(long categoryId)

deleteMBCategory

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

deleteMBCategory

void deleteMBCategory(MBCategory mbCategory)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                              int start,
                                              int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getMBCategory

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

getMBCategories

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

getMBCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getMBCategoriesCount()
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateMBCategory

MBCategory updateMBCategory(MBCategory mbCategory)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addCategory

MBCategory addCategory(long userId,
                       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

addCategory

MBCategory addCategory(java.lang.String uuid,
                       long userId,
                       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

addCategoryResources

void addCategoryResources(long categoryId,
                          boolean addCommunityPermissions,
                          boolean addGuestPermissions)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addCategoryResources

void addCategoryResources(MBCategory category,
                          boolean addCommunityPermissions,
                          boolean addGuestPermissions)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addCategoryResources

void addCategoryResources(long categoryId,
                          java.lang.String[] communityPermissions,
                          java.lang.String[] guestPermissions)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addCategoryResources

void addCategoryResources(MBCategory category,
                          java.lang.String[] communityPermissions,
                          java.lang.String[] guestPermissions)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteCategories

void deleteCategories(long groupId)
                      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

deleteCategory

void deleteCategory(MBCategory category)
                    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)
                                         throws com.liferay.portal.SystemException
Throws:
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.SystemException
Throws:
com.liferay.portal.SystemException

getCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCategoriesCount(long groupId)
                       throws com.liferay.portal.SystemException
Throws:
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

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

getSubcategoryIds

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

getSubscribedCategories

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

getSubscribedCategoriesCount

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

getSystemCategory

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBCategory getSystemCategory()
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

reIndex

void reIndex(java.lang.String[] ids)
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
com.liferay.portal.kernel.search.Hits search(long companyId,
                                                           long groupId,
                                                           long[] categoryIds,
                                                           long threadId,
                                                           java.lang.String keywords,
                                                           int start,
                                                           int end)
                                             throws com.liferay.portal.SystemException
Throws:
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

subscribeCategory

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

unsubscribeCategory

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