@ProviderType
public class MBCategoryServiceUtil
extends Object
MBCategoryServiceImpl
and is the
primary 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.MBCategoryService
,
MBCategoryServiceBaseImpl
,
MBCategoryServiceImpl
Constructor and Description |
---|
MBCategoryServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static MBCategory |
addCategory(long userId,
long parentCategoryId,
String name,
String description,
ServiceContext serviceContext) |
static 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) |
static void |
deleteCategory(long categoryId,
boolean includeTrashedEntries) |
static void |
deleteCategory(long groupId,
long categoryId) |
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<Object> |
getCategoriesAndThreads(long groupId,
long categoryId) |
static List<Object> |
getCategoriesAndThreads(long groupId,
long categoryId,
int status) |
static List<Object> |
getCategoriesAndThreads(long groupId,
long categoryId,
int status,
int start,
int end) |
static List<Object> |
getCategoriesAndThreads(long groupId,
long categoryId,
int status,
int start,
int end,
OrderByComparator<?> obc) |
static List<Object> |
getCategoriesAndThreads(long groupId,
long categoryId,
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,
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 MBCategory |
getCategory(long categoryId) |
static long[] |
getCategoryIds(long groupId,
long categoryId) |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static MBCategoryService |
getService() |
static List<Long> |
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,
ServiceContext serviceContext) |
public static MBCategory addCategory(long userId, long parentCategoryId, String name, String description, ServiceContext serviceContext) throws PortalException
PortalException
public static 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
PortalException
public static void deleteCategory(long categoryId, boolean includeTrashedEntries) throws PortalException
PortalException
public static void deleteCategory(long groupId, long categoryId) throws PortalException
PortalException
public static List<MBCategory> getCategories(long groupId)
public static List<MBCategory> getCategories(long groupId, int status)
public static List<MBCategory> getCategories(long groupId, long parentCategoryId, int start, int end)
public static List<MBCategory> getCategories(long groupId, long parentCategoryId, int status, int start, int end)
public static List<MBCategory> getCategories(long groupId, long excludedCategoryId, long parentCategoryId, int status, int start, int end)
public static List<MBCategory> getCategories(long groupId, long[] parentCategoryIds, int start, int end)
public static List<MBCategory> getCategories(long groupId, long[] parentCategoryIds, int status, int start, int end)
public static List<MBCategory> getCategories(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status, int start, int end)
public static List<Object> getCategoriesAndThreads(long groupId, long categoryId)
public static List<Object> getCategoriesAndThreads(long groupId, long categoryId, int status)
public static List<Object> getCategoriesAndThreads(long groupId, long categoryId, int status, int start, int end)
public static List<Object> getCategoriesAndThreads(long groupId, long categoryId, int status, int start, int end, OrderByComparator<?> obc)
public static List<Object> getCategoriesAndThreads(long groupId, long categoryId, QueryDefinition<?> queryDefinition)
public static int getCategoriesAndThreadsCount(long groupId, long categoryId)
public static int getCategoriesAndThreadsCount(long groupId, long categoryId, int status)
public static int getCategoriesAndThreadsCount(long groupId, long categoryId, QueryDefinition<?> queryDefinition)
public static int getCategoriesCount(long groupId, long parentCategoryId)
public static int getCategoriesCount(long groupId, long parentCategoryId, int status)
public static int getCategoriesCount(long groupId, long excludedCategoryId, long parentCategoryId, int status)
public static int getCategoriesCount(long groupId, long[] parentCategoryIds)
public static int getCategoriesCount(long groupId, long[] parentCategoryIds, int status)
public static int getCategoriesCount(long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status)
public static MBCategory getCategory(long categoryId) throws PortalException
PortalException
public static long[] getCategoryIds(long groupId, long categoryId)
public static String getOSGiServiceIdentifier()
public static List<Long> getSubcategoryIds(List<Long> categoryIds, long groupId, long categoryId)
public static List<MBCategory> getSubscribedCategories(long groupId, long userId, int start, int end)
public static int getSubscribedCategoriesCount(long groupId, long userId)
public static MBCategory moveCategory(long categoryId, long parentCategoryId, boolean mergeWithParentCategory) throws PortalException
PortalException
public static MBCategory moveCategoryFromTrash(long categoryId, long newCategoryId) throws PortalException
PortalException
public static MBCategory moveCategoryToTrash(long categoryId) throws PortalException
PortalException
public static void restoreCategoryFromTrash(long categoryId) throws PortalException
PortalException
public static void subscribeCategory(long groupId, long categoryId) throws PortalException
PortalException
public static void unsubscribeCategory(long groupId, long categoryId) throws PortalException
PortalException
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, ServiceContext serviceContext) throws PortalException
PortalException
public static MBCategoryService getService()