com.liferay.portlet.messageboards.service
Interface MBCategoryLocalService

All Known Implementing Classes:
MBCategoryLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,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
Generated:

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 dynamicQuery(DynamicQuery dynamicQuery)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
 long dynamicQueryCount(DynamicQuery dynamicQuery)
           
 java.util.List<MBCategory> getCategories(long groupId)
           
 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> getCompanyCategories(long companyId, int start, int end)
           
 int getCompanyCategoriesCount(long companyId)
           
 java.util.List<MBCategory> getMBCategories(int start, int end)
           
 int getMBCategoriesCount()
           
 MBCategory getMBCategory(long categoryId)
           
 MBCategory getMBCategoryByUuidAndGroupId(java.lang.String uuid, long groupId)
           
 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)
           
 MBCategory getSystemCategory()
           
 void subscribeCategory(long userId, long groupId, long categoryId)
           
 void unsubscribeCategory(long userId, 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)
           
 MBCategory updateMBCategory(MBCategory mbCategory)
           
 MBCategory updateMBCategory(MBCategory mbCategory, boolean merge)
           
 

Method Detail

addMBCategory

MBCategory addMBCategory(MBCategory mbCategory)
                         throws SystemException
Throws:
SystemException

createMBCategory

MBCategory createMBCategory(long categoryId)

deleteMBCategory

void deleteMBCategory(long categoryId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

deleteMBCategory

void deleteMBCategory(MBCategory mbCategory)
                      throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end,
                            OrderByComparator orderByComparator)
                            throws SystemException
Throws:
SystemException

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Throws:
SystemException

getMBCategory

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

getMBCategoryByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBCategory getMBCategoryByUuidAndGroupId(java.lang.String uuid,
                                                                                  long groupId)
                                         throws PortalException,
                                                SystemException
Throws:
PortalException
SystemException

getMBCategories

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

getMBCategoriesCount

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

updateMBCategory

MBCategory updateMBCategory(MBCategory mbCategory)
                            throws SystemException
Throws:
SystemException

updateMBCategory

MBCategory updateMBCategory(MBCategory mbCategory,
                            boolean merge)
                            throws SystemException
Throws:
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 PortalException,
                              SystemException
Throws:
PortalException
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 PortalException,
                              SystemException
Throws:
PortalException
SystemException

addCategoryResources

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

addCategoryResources

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

addCategoryResources

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

addCategoryResources

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

deleteCategories

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

deleteCategory

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

deleteCategory

void deleteCategory(MBCategory category)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

getCategories

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

getCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBCategory> getCategories(long groupId,
                                                                                  long parentCategoryId)
                                         throws SystemException
Throws:
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)
                       throws SystemException
Throws:
SystemException

getCategoriesCount

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

getCategory

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

getCompanyCategories

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

getCompanyCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCompanyCategoriesCount(long companyId)
                              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

getSystemCategory

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

subscribeCategory

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

unsubscribeCategory

void unsubscribeCategory(long userId,
                         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