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
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
- Generated:
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 |
dynamicQuery(DynamicQuery dynamicQuery)
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
|
static java.util.List<MBCategory> |
getCategories(long groupId)
|
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> |
getCompanyCategories(long companyId,
int start,
int end)
|
static int |
getCompanyCategoriesCount(long companyId)
|
static java.util.List<MBCategory> |
getMBCategories(int start,
int end)
|
static int |
getMBCategoriesCount()
|
static MBCategory |
getMBCategory(long categoryId)
|
static MBCategory |
getMBCategoryByUuidAndGroupId(java.lang.String uuid,
long groupId)
|
static MBCategoryLocalService |
getService()
|
static java.util.List<java.lang.Long> |
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()
|
void |
setService(MBCategoryLocalService service)
|
static void |
subscribeCategory(long userId,
long groupId,
long categoryId)
|
static void |
unsubscribeCategory(long userId,
long groupId,
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,
ServiceContext serviceContext)
|
static MBCategory |
updateMBCategory(MBCategory mbCategory)
|
static MBCategory |
updateMBCategory(MBCategory mbCategory,
boolean merge)
|
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 SystemException
- Throws:
SystemException
createMBCategory
public static MBCategory createMBCategory(long categoryId)
deleteMBCategory
public static void deleteMBCategory(long categoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteMBCategory
public static void deleteMBCategory(MBCategory mbCategory)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static java.util.List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
- Throws:
SystemException
dynamicQueryCount
public static long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
getMBCategory
public static MBCategory getMBCategory(long categoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getMBCategoryByUuidAndGroupId
public static MBCategory getMBCategoryByUuidAndGroupId(java.lang.String uuid,
long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getMBCategories
public static java.util.List<MBCategory> getMBCategories(int start,
int end)
throws SystemException
- Throws:
SystemException
getMBCategoriesCount
public static int getMBCategoriesCount()
throws SystemException
- Throws:
SystemException
updateMBCategory
public static MBCategory updateMBCategory(MBCategory mbCategory)
throws SystemException
- Throws:
SystemException
updateMBCategory
public static MBCategory updateMBCategory(MBCategory mbCategory,
boolean merge)
throws SystemException
- Throws:
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 PortalException,
SystemException
- Throws:
PortalException
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 PortalException,
SystemException
- Throws:
PortalException
SystemException
addCategoryResources
public static void addCategoryResources(long categoryId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addCategoryResources
public static void addCategoryResources(long categoryId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addCategoryResources
public static void addCategoryResources(MBCategory category,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addCategoryResources
public static void addCategoryResources(MBCategory category,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteCategories
public static void deleteCategories(long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteCategory
public static void deleteCategory(long categoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteCategory
public static void deleteCategory(MBCategory category)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCategories
public static java.util.List<MBCategory> getCategories(long groupId)
throws SystemException
- Throws:
SystemException
getCategories
public static java.util.List<MBCategory> getCategories(long groupId,
long parentCategoryId)
throws SystemException
- Throws:
SystemException
getCategories
public static java.util.List<MBCategory> getCategories(long groupId,
long parentCategoryId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getCategoriesCount
public static int getCategoriesCount(long groupId)
throws SystemException
- Throws:
SystemException
getCategoriesCount
public static int getCategoriesCount(long groupId,
long parentCategoryId)
throws SystemException
- Throws:
SystemException
getCategory
public static MBCategory getCategory(long categoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCompanyCategories
public static java.util.List<MBCategory> getCompanyCategories(long companyId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getCompanyCategoriesCount
public static int getCompanyCategoriesCount(long companyId)
throws SystemException
- Throws:
SystemException
getSubcategoryIds
public static java.util.List<java.lang.Long> getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
long groupId,
long categoryId)
throws SystemException
- Throws:
SystemException
getSubscribedCategories
public static java.util.List<MBCategory> getSubscribedCategories(long groupId,
long userId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getSubscribedCategoriesCount
public static int getSubscribedCategoriesCount(long groupId,
long userId)
throws SystemException
- Throws:
SystemException
getSystemCategory
public static MBCategory getSystemCategory()
throws SystemException
- Throws:
SystemException
subscribeCategory
public static void subscribeCategory(long userId,
long groupId,
long categoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsubscribeCategory
public static void unsubscribeCategory(long userId,
long groupId,
long categoryId)
throws PortalException,
SystemException
- Throws:
PortalException
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,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getService
public static MBCategoryLocalService getService()
setService
public void setService(MBCategoryLocalService service)