Liferay 6.2.0

com.liferay.portlet.messageboards.service
Interface MBCategoryService

All Superinterfaces:
BaseService
All Known Implementing Classes:
MBCategoryServiceBaseImpl, MBCategoryServiceImpl, MBCategoryServiceWrapper

@ProviderType
@AccessControlled
@JSONWebService
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface MBCategoryService
extends BaseService

Provides the remote service interface for MBCategory. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
MBCategoryServiceUtil, MBCategoryServiceBaseImpl, MBCategoryServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
abstract  MBCategory addCategory(long userId, long parentCategoryId, String name, String description, ServiceContext serviceContext)
           
abstract  MBCategory addCategory(long parentCategoryId, String name, String description, String displayStyle, String emailAddress, String inProtocol, String inServerName, int inServerPort, boolean inUseSSL, String inUserName, String inPassword, int inReadInterval, String outEmailAddress, boolean outCustom, String outServerName, int outServerPort, boolean outUseSSL, String outUserName, String outPassword, boolean mailingListActive, boolean allowAnonymousEmail, ServiceContext serviceContext)
           
abstract  void deleteCategory(long categoryId, boolean includeTrashedEntries)
           
abstract  void deleteCategory(long groupId, long categoryId)
           
abstract  String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
abstract  List<MBCategory> getCategories(long groupId)
           
abstract  List<MBCategory> getCategories(long groupId, int status)
           
abstract  List<MBCategory> getCategories(long groupId, long[] parentCategoryIds, int start, int end)
           
abstract  List<MBCategory> getCategories(long groupId, long[] parentCategoryIds, int status, int start, int end)
           
abstract  List<MBCategory> getCategories(long groupId, long parentCategoryId, int start, int end)
           
abstract  List<MBCategory> getCategories(long groupId, long parentCategoryId, int status, int start, int end)
           
abstract  int getCategoriesCount(long groupId, long parentCategoryId)
           
abstract  int getCategoriesCount(long groupId, long[] parentCategoryIds)
           
abstract  int getCategoriesCount(long groupId, long[] parentCategoryIds, int status)
           
abstract  int getCategoriesCount(long groupId, long parentCategoryId, int status)
           
abstract  MBCategory getCategory(long categoryId)
           
abstract  long[] getCategoryIds(long groupId, long categoryId)
           
abstract  List<Long> getSubcategoryIds(List<Long> categoryIds, long groupId, long categoryId)
           
abstract  List<MBCategory> getSubscribedCategories(long groupId, long userId, int start, int end)
           
abstract  int getSubscribedCategoriesCount(long groupId, long userId)
           
abstract  MBCategory moveCategory(long categoryId, long parentCategoryId, boolean mergeWithParentCategory)
           
abstract  MBCategory moveCategoryFromTrash(long categoryId, long newCategoryId)
           
abstract  MBCategory moveCategoryToTrash(long categoryId)
           
abstract  void restoreCategoryFromTrash(long categoryId)
           
abstract  void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
abstract  void subscribeCategory(long groupId, long categoryId)
           
abstract  void unsubscribeCategory(long groupId, long categoryId)
           
abstract  MBCategory updateCategory(long categoryId, long parentCategoryId, String name, String description, String displayStyle, String emailAddress, String inProtocol, String inServerName, int inServerPort, boolean inUseSSL, String inUserName, String inPassword, int inReadInterval, String outEmailAddress, boolean outCustom, String outServerName, int outServerPort, boolean outUseSSL, String outUserName, String outPassword, boolean mailingListActive, boolean allowAnonymousEmail, boolean mergeWithParentCategory, ServiceContext serviceContext)
           
 

Method Detail

getBeanIdentifier

String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addCategory

MBCategory addCategory(long userId,
                       long parentCategoryId,
                       String name,
                       String description,
                       ServiceContext serviceContext)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

addCategory

MBCategory addCategory(long parentCategoryId,
                       String name,
                       String description,
                       String displayStyle,
                       String emailAddress,
                       String inProtocol,
                       String inServerName,
                       int inServerPort,
                       boolean inUseSSL,
                       String inUserName,
                       String inPassword,
                       int inReadInterval,
                       String outEmailAddress,
                       boolean outCustom,
                       String outServerName,
                       int outServerPort,
                       boolean outUseSSL,
                       String outUserName,
                       String outPassword,
                       boolean mailingListActive,
                       boolean allowAnonymousEmail,
                       ServiceContext serviceContext)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

deleteCategory

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

deleteCategory

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

getCategories

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

getCategories

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

getCategories

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

getCategories

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

getCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBCategory> getCategories(long groupId,
                                                                        long[] parentCategoryIds,
                                                                        int start,
                                                                        int end)
                               throws SystemException
Throws:
SystemException

getCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBCategory> getCategories(long groupId,
                                                                        long[] parentCategoryIds,
                                                                        int status,
                                                                        int start,
                                                                        int end)
                               throws SystemException
Throws:
SystemException

getCategoriesCount

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

getCategoriesCount

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

getCategoriesCount

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

getCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCategoriesCount(long groupId,
                                                                long[] parentCategoryIds,
                                                                int status)
                       throws SystemException
Throws:
SystemException

getCategory

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

getCategoryIds

@Transactional(propagation=SUPPORTS,
               readOnly=true)
long[] getCategoryIds(long groupId,
                                                               long categoryId)
                      throws SystemException
Throws:
SystemException

getSubcategoryIds

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

getSubscribedCategories

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

moveCategory

MBCategory moveCategory(long categoryId,
                        long parentCategoryId,
                        boolean mergeWithParentCategory)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

moveCategoryFromTrash

MBCategory moveCategoryFromTrash(long categoryId,
                                 long newCategoryId)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

moveCategoryToTrash

MBCategory moveCategoryToTrash(long categoryId)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

restoreCategoryFromTrash

void restoreCategoryFromTrash(long categoryId)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
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,
                          String name,
                          String description,
                          String displayStyle,
                          String emailAddress,
                          String inProtocol,
                          String inServerName,
                          int inServerPort,
                          boolean inUseSSL,
                          String inUserName,
                          String inPassword,
                          int inReadInterval,
                          String outEmailAddress,
                          boolean outCustom,
                          String outServerName,
                          int outServerPort,
                          boolean outUseSSL,
                          String outUserName,
                          String outPassword,
                          boolean mailingListActive,
                          boolean allowAnonymousEmail,
                          boolean mergeWithParentCategory,
                          ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

Liferay 6.2.0