Liferay 7.0-ce-b4

com.liferay.portlet.messageboards.service
Interface MBCategoryService

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

@AccessControlled
@JSONWebService
@ProviderType
@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
 MBCategory addCategory(long userId, long parentCategoryId, String name, String description, ServiceContext serviceContext)
           
 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)
           
 void deleteCategory(long categoryId, boolean includeTrashedEntries)
           
 void deleteCategory(long groupId, long categoryId)
           
 List<MBCategory> getCategories(long groupId)
           
 List<MBCategory> getCategories(long groupId, int status)
           
 List<MBCategory> getCategories(long groupId, long[] parentCategoryIds, int start, int end)
           
 List<MBCategory> getCategories(long groupId, long[] parentCategoryIds, int status, int start, int end)
           
 List<MBCategory> getCategories(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status, int start, int end)
           
 List<MBCategory> getCategories(long groupId, long parentCategoryId, int start, int end)
           
 List<MBCategory> getCategories(long groupId, long parentCategoryId, int status, int start, int end)
           
 List<MBCategory> getCategories(long groupId, long excludedCategoryId, long parentCategoryId, int status, int start, int end)
           
 List<Object> getCategoriesAndThreads(long groupId, long categoryId)
           
 List<Object> getCategoriesAndThreads(long groupId, long categoryId, int status)
           
 List<Object> getCategoriesAndThreads(long groupId, long categoryId, int status, int start, int end)
           
 int getCategoriesAndThreadsCount(long groupId, long categoryId)
           
 int getCategoriesAndThreadsCount(long groupId, long categoryId, int status)
           
 int getCategoriesCount(long groupId, long parentCategoryId)
           
 int getCategoriesCount(long groupId, long[] parentCategoryIds)
           
 int getCategoriesCount(long groupId, long[] parentCategoryIds, int status)
           
 int getCategoriesCount(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status)
           
 int getCategoriesCount(long groupId, long parentCategoryId, int status)
           
 int getCategoriesCount(long groupId, long excludedCategoryId, long parentCategoryId, int status)
           
 MBCategory getCategory(long categoryId)
           
 long[] getCategoryIds(long groupId, long categoryId)
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 List<Long> getSubcategoryIds(List<Long> categoryIds, long groupId, long categoryId)
           
 List<MBCategory> getSubscribedCategories(long groupId, long userId, int start, int end)
           
 int getSubscribedCategoriesCount(long groupId, long userId)
           
 MBCategory moveCategory(long categoryId, long parentCategoryId, boolean mergeWithParentCategory)
           
 MBCategory moveCategoryFromTrash(long categoryId, long newCategoryId)
           
 MBCategory moveCategoryToTrash(long categoryId)
           
 void restoreCategoryFromTrash(long categoryId)
           
 void subscribeCategory(long groupId, long categoryId)
           
 void unsubscribeCategory(long groupId, long categoryId)
           
 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

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
Throws:
PortalException

addCategory

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

deleteCategory

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

deleteCategory

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

getCategories

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

getCategories

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

getCategories

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

getCategories

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

getCategories

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

getCategories

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

getCategories

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

getCategories

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

getCategoriesAndThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<Object> getCategoriesAndThreads(long groupId,
                                                                              long categoryId)

getCategoriesAndThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<Object> getCategoriesAndThreads(long groupId,
                                                                              long categoryId,
                                                                              int status)

getCategoriesAndThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<Object> getCategoriesAndThreads(long groupId,
                                                                              long categoryId,
                                                                              int status,
                                                                              int start,
                                                                              int end)

getCategoriesAndThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCategoriesAndThreadsCount(long groupId,
                                                                          long categoryId)

getCategoriesAndThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCategoriesAndThreadsCount(long groupId,
                                                                          long categoryId,
                                                                          int status)

getCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCategoriesCount(long groupId,
                                                                long excludedCategoryId,
                                                                long parentCategoryId,
                                                                int status)

getCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCategoriesCount(long groupId,
                                                                long[] excludedCategoryIds,
                                                                long[] parentCategoryIds,
                                                                int status)

getCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCategoriesCount(long groupId,
                                                                long parentCategoryId)

getCategoriesCount

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

getCategoriesCount

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

getCategoriesCount

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

getCategory

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

getCategoryIds

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

getOSGiServiceIdentifier

String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Returns:
the OSGi service identifier

getSubcategoryIds

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

getSubscribedCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBCategory> getSubscribedCategories(long groupId,
                                                                                  long userId,
                                                                                  int start,
                                                                                  int end)

getSubscribedCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getSubscribedCategoriesCount(long groupId,
                                                                          long userId)

moveCategory

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

moveCategoryFromTrash

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

moveCategoryToTrash

MBCategory moveCategoryToTrash(long categoryId)
                               throws PortalException
Throws:
PortalException

restoreCategoryFromTrash

void restoreCategoryFromTrash(long categoryId)
                              throws PortalException
Throws:
PortalException

subscribeCategory

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

unsubscribeCategory

void unsubscribeCategory(long groupId,
                         long categoryId)
                         throws PortalException
Throws:
PortalException

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
Throws:
PortalException

Liferay 7.0-ce-b4