com.liferay.portlet.messageboards.service
Class MBCategoryLocalServiceUtil
java.lang.Object
com.liferay.portlet.messageboards.service.MBCategoryLocalServiceUtil
public class MBCategoryLocalServiceUtil
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This class provides static methods for the
com.liferay.portlet.messageboards.service.MBCategoryLocalService
bean. The static methods of this class calls the same methods of the bean
instance. It's convenient to be able to just write one line to call a method
on a bean instead of writing a lookup call and a method call.
- Author:
- Brian Wing Shun Chan
- See Also:
MBCategoryLocalService
Method Summary |
static 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)
|
static 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)
|
static void |
addCategoryResources(long categoryId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addCategoryResources(long categoryId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
static void |
addCategoryResources(MBCategory category,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addCategoryResources(MBCategory category,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
static MBCategory |
addMBCategory(MBCategory mbCategory)
|
static MBCategory |
createMBCategory(long categoryId)
|
static void |
deleteCategories(long groupId)
|
static void |
deleteCategory(long categoryId)
|
static void |
deleteCategory(MBCategory category)
|
static void |
deleteMBCategory(long categoryId)
|
static void |
deleteMBCategory(MBCategory mbCategory)
|
static java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static java.util.List<MBCategory> |
getCategories(long groupId,
long parentCategoryId)
|
static java.util.List<MBCategory> |
getCategories(long groupId,
long parentCategoryId,
int start,
int end)
|
static int |
getCategoriesCount(long groupId)
|
static int |
getCategoriesCount(long groupId,
long parentCategoryId)
|
static MBCategory |
getCategory(long categoryId)
|
static java.util.List<MBCategory> |
getMBCategories(int start,
int end)
|
static int |
getMBCategoriesCount()
|
static MBCategory |
getMBCategory(long categoryId)
|
static MBCategoryLocalService |
getService()
|
static void |
getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
long groupId,
long categoryId)
|
static java.util.List<MBCategory> |
getSubscribedCategories(long groupId,
long userId,
int start,
int end)
|
static int |
getSubscribedCategoriesCount(long groupId,
long userId)
|
static MBCategory |
getSystemCategory()
|
static void |
reIndex(java.lang.String[] ids)
|
static com.liferay.portal.kernel.search.Hits |
search(long companyId,
long groupId,
long[] categoryIds,
long threadId,
java.lang.String keywords,
int start,
int end)
|
void |
setService(MBCategoryLocalService service)
|
static void |
subscribeCategory(long userId,
long categoryId)
|
static void |
unsubscribeCategory(long userId,
long categoryId)
|
static 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)
|
static MBCategory |
updateMBCategory(MBCategory mbCategory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBCategoryLocalServiceUtil
public MBCategoryLocalServiceUtil()
addMBCategory
public static MBCategory addMBCategory(MBCategory mbCategory)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
createMBCategory
public static MBCategory createMBCategory(long categoryId)
deleteMBCategory
public static void deleteMBCategory(long categoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteMBCategory
public static void deleteMBCategory(MBCategory mbCategory)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public static 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
public static 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
public static MBCategory getMBCategory(long categoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getMBCategories
public static java.util.List<MBCategory> getMBCategories(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getMBCategoriesCount
public static int getMBCategoriesCount()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateMBCategory
public static MBCategory updateMBCategory(MBCategory mbCategory)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addCategory
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static void deleteCategories(long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteCategory
public static void deleteCategory(long categoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteCategory
public static void deleteCategory(MBCategory category)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getCategories
public static java.util.List<MBCategory> getCategories(long groupId,
long parentCategoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCategories
public static java.util.List<MBCategory> getCategories(long groupId,
long parentCategoryId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCategoriesCount
public static int getCategoriesCount(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCategoriesCount
public static int getCategoriesCount(long groupId,
long parentCategoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCategory
public static MBCategory getCategory(long categoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getSubcategoryIds
public static void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
long groupId,
long categoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getSubscribedCategories
public static java.util.List<MBCategory> getSubscribedCategories(long groupId,
long userId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getSubscribedCategoriesCount
public static int getSubscribedCategoriesCount(long groupId,
long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getSystemCategory
public static MBCategory getSystemCategory()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
reIndex
public static void reIndex(java.lang.String[] ids)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
public static 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
public static 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
public static 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
public static void unsubscribeCategory(long userId,
long categoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getService
public static MBCategoryLocalService getService()
setService
public void setService(MBCategoryLocalService service)