Class MBCategoryServiceUtil
java.lang.Object
com.liferay.message.boards.service.MBCategoryServiceUtil
Provides the remote service utility for MBCategory. This utility wraps
com.liferay.message.boards.service.impl.MBCategoryServiceImpl
and is an
access point for service operations in application layer code running on a
remote server. 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:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MBCategory
addCategory
(String externalReferenceCode, long userId, long parentCategoryId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) static MBCategory
addCategory
(String externalReferenceCode, 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, com.liferay.portal.kernel.service.ServiceContext serviceContext) static void
deleteCategory
(long categoryId, boolean includeTrashedEntries) static void
deleteCategory
(long groupId, long categoryId) static void
deleteCategory
(String externalReferenceCode, long groupId) static MBCategory
fetchMBCategory
(long groupId, String friendlyURL) static List<MBCategory>
getCategories
(long groupId) static List<MBCategory>
getCategories
(long groupId, int status) static List<MBCategory>
getCategories
(long groupId, long[] parentCategoryIds, int start, int end) static List<MBCategory>
getCategories
(long groupId, long[] parentCategoryIds, int status, int start, int end) static List<MBCategory>
getCategories
(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status, int start, int end) static List<MBCategory>
getCategories
(long groupId, long parentCategoryId, int start, int end) static List<MBCategory>
getCategories
(long groupId, long parentCategoryId, int status, int start, int end) static List<MBCategory>
getCategories
(long groupId, long excludedCategoryId, long parentCategoryId, int status, int start, int end) static List<MBCategory>
getCategories
(long groupId, long parentCategoryId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBCategory> queryDefinition) getCategoriesAndThreads
(long groupId, long categoryId) getCategoriesAndThreads
(long groupId, long categoryId, int status) getCategoriesAndThreads
(long groupId, long categoryId, int status, int start, int end) getCategoriesAndThreads
(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) getCategoriesAndThreads
(long groupId, long categoryId, com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) static int
getCategoriesAndThreadsCount
(long groupId, long categoryId) static int
getCategoriesAndThreadsCount
(long groupId, long categoryId, int status) static int
getCategoriesAndThreadsCount
(long groupId, long categoryId, com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) static int
getCategoriesCount
(long groupId, long parentCategoryId) static int
getCategoriesCount
(long groupId, long[] parentCategoryIds) static int
getCategoriesCount
(long groupId, long[] parentCategoryIds, int status) static int
getCategoriesCount
(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status) static int
getCategoriesCount
(long groupId, long parentCategoryId, int status) static int
getCategoriesCount
(long groupId, long excludedCategoryId, long parentCategoryId, int status) static int
getCategoriesCount
(long groupId, long parentCategoryId, com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) static MBCategory
getCategory
(long categoryId) static long[]
getCategoryIds
(long groupId, long categoryId) static MBCategory
getMBCategory
(long groupId, String friendlyURL) static String
Returns the OSGi service identifier.static MBCategoryService
getSubcategoryIds
(List<Long> categoryIds, long groupId, long categoryId) static List<MBCategory>
getSubscribedCategories
(long groupId, long userId, int start, int end) static int
getSubscribedCategoriesCount
(long groupId, long userId) static MBCategory
moveCategory
(long categoryId, long parentCategoryId, boolean mergeWithParentCategory) static MBCategory
moveCategoryFromTrash
(long categoryId, long newCategoryId) static MBCategory
moveCategoryToTrash
(long categoryId) static void
restoreCategoryFromTrash
(long categoryId) static void
subscribeCategory
(long groupId, long categoryId) static void
unsubscribeCategory
(long groupId, long categoryId) static 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, com.liferay.portal.kernel.service.ServiceContext serviceContext)
-
Constructor Details
-
MBCategoryServiceUtil
public MBCategoryServiceUtil()
-
-
Method Details
-
addCategory
public static MBCategory addCategory(String externalReferenceCode, long userId, long parentCategoryId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCategory
public static MBCategory addCategory(String externalReferenceCode, 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, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCategory
public static void deleteCategory(long categoryId, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCategory
public static void deleteCategory(long groupId, long categoryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCategory
public static void deleteCategory(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchMBCategory
public static MBCategory fetchMBCategory(long groupId, String friendlyURL) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCategories
-
getCategories
-
getCategories
public static List<MBCategory> getCategories(long groupId, long parentCategoryId, int start, int end) -
getCategories
public static List<MBCategory> getCategories(long groupId, long parentCategoryId, int status, int start, int end) -
getCategories
public static List<MBCategory> getCategories(long groupId, long excludedCategoryId, long parentCategoryId, int status, int start, int end) -
getCategories
public static List<MBCategory> getCategories(long groupId, long parentCategoryId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBCategory> queryDefinition) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCategories
public static List<MBCategory> getCategories(long groupId, long[] parentCategoryIds, int start, int end) -
getCategories
public static List<MBCategory> getCategories(long groupId, long[] parentCategoryIds, int status, int start, int end) -
getCategories
public static List<MBCategory> getCategories(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status, int start, int end) -
getCategoriesAndThreads
-
getCategoriesAndThreads
-
getCategoriesAndThreads
-
getCategoriesAndThreads
-
getCategoriesAndThreads
public static List<Object> getCategoriesAndThreads(long groupId, long categoryId, com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCategoriesAndThreadsCount
public static int getCategoriesAndThreadsCount(long groupId, long categoryId) -
getCategoriesAndThreadsCount
public static int getCategoriesAndThreadsCount(long groupId, long categoryId, int status) -
getCategoriesAndThreadsCount
public static int getCategoriesAndThreadsCount(long groupId, long categoryId, com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCategoriesCount
public static int getCategoriesCount(long groupId, long parentCategoryId) -
getCategoriesCount
public static int getCategoriesCount(long groupId, long parentCategoryId, int status) -
getCategoriesCount
public static int getCategoriesCount(long groupId, long excludedCategoryId, long parentCategoryId, int status) -
getCategoriesCount
public static int getCategoriesCount(long groupId, long parentCategoryId, com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCategoriesCount
public static int getCategoriesCount(long groupId, long[] parentCategoryIds) -
getCategoriesCount
public static int getCategoriesCount(long groupId, long[] parentCategoryIds, int status) -
getCategoriesCount
public static int getCategoriesCount(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status) -
getCategory
public static MBCategory getCategory(long categoryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCategoryIds
public static long[] getCategoryIds(long groupId, long categoryId) -
getMBCategory
public static MBCategory getMBCategory(long groupId, String friendlyURL) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getSubcategoryIds
-
getSubscribedCategories
public static List<MBCategory> getSubscribedCategories(long groupId, long userId, int start, int end) -
getSubscribedCategoriesCount
public static int getSubscribedCategoriesCount(long groupId, long userId) -
moveCategory
public static MBCategory moveCategory(long categoryId, long parentCategoryId, boolean mergeWithParentCategory) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveCategoryFromTrash
public static MBCategory moveCategoryFromTrash(long categoryId, long newCategoryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveCategoryToTrash
public static MBCategory moveCategoryToTrash(long categoryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
restoreCategoryFromTrash
public static void restoreCategoryFromTrash(long categoryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
subscribeCategory
public static void subscribeCategory(long groupId, long categoryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
unsubscribeCategory
public static void unsubscribeCategory(long groupId, long categoryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCategory
public static 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, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getService
-