@ProviderType
public class MBCategoryServiceHttp
extends Object
MBCategoryServiceUtil
service utility. The
static methods of this class calls the same methods of the service utility.
However, the signatures are different because it requires an additional
HttpPrincipal
parameter.
The benefits of using the HTTP utility is that it is fast and allows for tunneling without the cost of serializing to text. The drawback is that it only works with Java.
Set the property tunnel.servlet.hosts.allowed in portal.properties to configure security.
The HTTP utility is only generated for remote services.
MBCategoryServiceSoap
,
HttpPrincipal
,
MBCategoryServiceUtil
Constructor and Description |
---|
MBCategoryServiceHttp() |
Modifier and Type | Method and Description |
---|---|
static com.liferay.message.boards.kernel.model.MBCategory |
addCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long userId,
long parentCategoryId,
String name,
String description,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.message.boards.kernel.model.MBCategory |
addCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
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(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId,
boolean includeTrashedEntries) |
static void |
deleteCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId) |
static List<com.liferay.message.boards.kernel.model.MBCategory> |
getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId) |
static List<com.liferay.message.boards.kernel.model.MBCategory> |
getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
int status) |
static List<com.liferay.message.boards.kernel.model.MBCategory> |
getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long[] parentCategoryIds,
int start,
int end) |
static List<com.liferay.message.boards.kernel.model.MBCategory> |
getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long[] parentCategoryIds,
int status,
int start,
int end) |
static List<com.liferay.message.boards.kernel.model.MBCategory> |
getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long[] excludedCategoryIds,
long[] parentCategoryIds,
int status,
int start,
int end) |
static List<com.liferay.message.boards.kernel.model.MBCategory> |
getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long parentCategoryId,
int start,
int end) |
static List<com.liferay.message.boards.kernel.model.MBCategory> |
getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long parentCategoryId,
int status,
int start,
int end) |
static List<com.liferay.message.boards.kernel.model.MBCategory> |
getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long excludedCategoryId,
long parentCategoryId,
int status,
int start,
int end) |
static List<Object> |
getCategoriesAndThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId) |
static List<Object> |
getCategoriesAndThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
int status) |
static List<Object> |
getCategoriesAndThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
int status,
int start,
int end) |
static List<Object> |
getCategoriesAndThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<?> obc) |
static List<Object> |
getCategoriesAndThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) |
static int |
getCategoriesAndThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId) |
static int |
getCategoriesAndThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
int status) |
static int |
getCategoriesAndThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) |
static int |
getCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long parentCategoryId) |
static int |
getCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long[] parentCategoryIds) |
static int |
getCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long[] parentCategoryIds,
int status) |
static int |
getCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long[] excludedCategoryIds,
long[] parentCategoryIds,
int status) |
static int |
getCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long parentCategoryId,
int status) |
static int |
getCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long excludedCategoryId,
long parentCategoryId,
int status) |
static com.liferay.message.boards.kernel.model.MBCategory |
getCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId) |
static long[] |
getCategoryIds(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId) |
static List<Long> |
getSubcategoryIds(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
List<Long> categoryIds,
long groupId,
long categoryId) |
static List<com.liferay.message.boards.kernel.model.MBCategory> |
getSubscribedCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long userId,
int start,
int end) |
static int |
getSubscribedCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long userId) |
static com.liferay.message.boards.kernel.model.MBCategory |
moveCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId,
long parentCategoryId,
boolean mergeWithParentCategory) |
static com.liferay.message.boards.kernel.model.MBCategory |
moveCategoryFromTrash(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId,
long newCategoryId) |
static com.liferay.message.boards.kernel.model.MBCategory |
moveCategoryToTrash(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId) |
static void |
restoreCategoryFromTrash(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId) |
static void |
subscribeCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId) |
static void |
unsubscribeCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId) |
static com.liferay.message.boards.kernel.model.MBCategory |
updateCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
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) |
public static com.liferay.message.boards.kernel.model.MBCategory addCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long userId, long parentCategoryId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.message.boards.kernel.model.MBCategory addCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, 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
com.liferay.portal.kernel.exception.PortalException
public static void deleteCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long categoryId, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long categoryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId)
public static List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, int status)
public static List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long parentCategoryId, int start, int end)
public static List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long parentCategoryId, int status, int start, int end)
public static List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long excludedCategoryId, long parentCategoryId, int status, int start, int end)
public static List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long[] parentCategoryIds, int start, int end)
public static List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long[] parentCategoryIds, int status, int start, int end)
public static List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status, int start, int end)
public static List<Object> getCategoriesAndThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long categoryId)
public static List<Object> getCategoriesAndThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long categoryId, int status)
public static List<Object> getCategoriesAndThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long categoryId, int status, int start, int end)
public static List<Object> getCategoriesAndThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> obc)
public static List<Object> getCategoriesAndThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long categoryId, com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition)
public static int getCategoriesAndThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long categoryId)
public static int getCategoriesAndThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long categoryId, int status)
public static int getCategoriesAndThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long categoryId, com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition)
public static int getCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long parentCategoryId)
public static int getCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long parentCategoryId, int status)
public static int getCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long excludedCategoryId, long parentCategoryId, int status)
public static int getCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long[] parentCategoryIds)
public static int getCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long[] parentCategoryIds, int status)
public static int getCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long[] excludedCategoryIds, long[] parentCategoryIds, int status)
public static com.liferay.message.boards.kernel.model.MBCategory getCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long categoryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static long[] getCategoryIds(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long categoryId)
public static List<Long> getSubcategoryIds(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, List<Long> categoryIds, long groupId, long categoryId)
public static List<com.liferay.message.boards.kernel.model.MBCategory> getSubscribedCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long userId, int start, int end)
public static int getSubscribedCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long userId)
public static com.liferay.message.boards.kernel.model.MBCategory moveCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long categoryId, long parentCategoryId, boolean mergeWithParentCategory) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.message.boards.kernel.model.MBCategory moveCategoryFromTrash(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long categoryId, long newCategoryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.message.boards.kernel.model.MBCategory moveCategoryToTrash(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long categoryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void restoreCategoryFromTrash(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long categoryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void subscribeCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long categoryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void unsubscribeCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long categoryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.message.boards.kernel.model.MBCategory updateCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, 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
com.liferay.portal.kernel.exception.PortalException