com.liferay.portlet.messageboards.service.http
Class MBCategoryServiceHttp
java.lang.Object
com.liferay.portlet.messageboards.service.http.MBCategoryServiceHttp
@ProviderType
public class MBCategoryServiceHttp
- extends Object
Provides the HTTP utility for the
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.
- See Also:
MBCategoryServiceSoap,
HttpPrincipal,
MBCategoryServiceUtil- ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.
|
Method Summary |
static MBCategory |
addCategory(HttpPrincipal httpPrincipal,
long userId,
long parentCategoryId,
String name,
String description,
ServiceContext serviceContext)
|
static MBCategory |
addCategory(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,
ServiceContext serviceContext)
|
static void |
deleteCategory(HttpPrincipal httpPrincipal,
long categoryId,
boolean includeTrashedEntries)
|
static void |
deleteCategory(HttpPrincipal httpPrincipal,
long groupId,
long categoryId)
|
static List<MBCategory> |
getCategories(HttpPrincipal httpPrincipal,
long groupId)
|
static List<MBCategory> |
getCategories(HttpPrincipal httpPrincipal,
long groupId,
int status)
|
static List<MBCategory> |
getCategories(HttpPrincipal httpPrincipal,
long groupId,
long[] parentCategoryIds,
int start,
int end)
|
static List<MBCategory> |
getCategories(HttpPrincipal httpPrincipal,
long groupId,
long[] parentCategoryIds,
int status,
int start,
int end)
|
static List<MBCategory> |
getCategories(HttpPrincipal httpPrincipal,
long groupId,
long[] excludedCategoryIds,
long[] parentCategoryIds,
int status,
int start,
int end)
|
static List<MBCategory> |
getCategories(HttpPrincipal httpPrincipal,
long groupId,
long parentCategoryId,
int start,
int end)
|
static List<MBCategory> |
getCategories(HttpPrincipal httpPrincipal,
long groupId,
long parentCategoryId,
int status,
int start,
int end)
|
static List<MBCategory> |
getCategories(HttpPrincipal httpPrincipal,
long groupId,
long excludedCategoryId,
long parentCategoryId,
int status,
int start,
int end)
|
static List<Object> |
getCategoriesAndThreads(HttpPrincipal httpPrincipal,
long groupId,
long categoryId)
|
static List<Object> |
getCategoriesAndThreads(HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
int status)
|
static List<Object> |
getCategoriesAndThreads(HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
int status,
int start,
int end)
|
static int |
getCategoriesAndThreadsCount(HttpPrincipal httpPrincipal,
long groupId,
long categoryId)
|
static int |
getCategoriesAndThreadsCount(HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
int status)
|
static int |
getCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long parentCategoryId)
|
static int |
getCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long[] parentCategoryIds)
|
static int |
getCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long[] parentCategoryIds,
int status)
|
static int |
getCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long[] excludedCategoryIds,
long[] parentCategoryIds,
int status)
|
static int |
getCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long parentCategoryId,
int status)
|
static int |
getCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long excludedCategoryId,
long parentCategoryId,
int status)
|
static MBCategory |
getCategory(HttpPrincipal httpPrincipal,
long categoryId)
|
static long[] |
getCategoryIds(HttpPrincipal httpPrincipal,
long groupId,
long categoryId)
|
static List<Long> |
getSubcategoryIds(HttpPrincipal httpPrincipal,
List<Long> categoryIds,
long groupId,
long categoryId)
|
static List<MBCategory> |
getSubscribedCategories(HttpPrincipal httpPrincipal,
long groupId,
long userId,
int start,
int end)
|
static int |
getSubscribedCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long userId)
|
static MBCategory |
moveCategory(HttpPrincipal httpPrincipal,
long categoryId,
long parentCategoryId,
boolean mergeWithParentCategory)
|
static MBCategory |
moveCategoryFromTrash(HttpPrincipal httpPrincipal,
long categoryId,
long newCategoryId)
|
static MBCategory |
moveCategoryToTrash(HttpPrincipal httpPrincipal,
long categoryId)
|
static void |
restoreCategoryFromTrash(HttpPrincipal httpPrincipal,
long categoryId)
|
static void |
subscribeCategory(HttpPrincipal httpPrincipal,
long groupId,
long categoryId)
|
static void |
unsubscribeCategory(HttpPrincipal httpPrincipal,
long groupId,
long categoryId)
|
static MBCategory |
updateCategory(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,
ServiceContext serviceContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBCategoryServiceHttp
public MBCategoryServiceHttp()
addCategory
public static MBCategory addCategory(HttpPrincipal httpPrincipal,
long userId,
long parentCategoryId,
String name,
String description,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
addCategory
public static MBCategory addCategory(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,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
deleteCategory
public static void deleteCategory(HttpPrincipal httpPrincipal,
long categoryId,
boolean includeTrashedEntries)
throws PortalException
- Throws:
PortalException
deleteCategory
public static void deleteCategory(HttpPrincipal httpPrincipal,
long groupId,
long categoryId)
throws PortalException
- Throws:
PortalException
getCategories
public static List<MBCategory> getCategories(HttpPrincipal httpPrincipal,
long groupId)
getCategories
public static List<MBCategory> getCategories(HttpPrincipal httpPrincipal,
long groupId,
int status)
getCategories
public static List<MBCategory> getCategories(HttpPrincipal httpPrincipal,
long groupId,
long parentCategoryId,
int start,
int end)
getCategories
public static List<MBCategory> getCategories(HttpPrincipal httpPrincipal,
long groupId,
long parentCategoryId,
int status,
int start,
int end)
getCategories
public static List<MBCategory> getCategories(HttpPrincipal httpPrincipal,
long groupId,
long excludedCategoryId,
long parentCategoryId,
int status,
int start,
int end)
getCategories
public static List<MBCategory> getCategories(HttpPrincipal httpPrincipal,
long groupId,
long[] parentCategoryIds,
int start,
int end)
getCategories
public static List<MBCategory> getCategories(HttpPrincipal httpPrincipal,
long groupId,
long[] parentCategoryIds,
int status,
int start,
int end)
getCategories
public static List<MBCategory> getCategories(HttpPrincipal httpPrincipal,
long groupId,
long[] excludedCategoryIds,
long[] parentCategoryIds,
int status,
int start,
int end)
getCategoriesAndThreads
public static List<Object> getCategoriesAndThreads(HttpPrincipal httpPrincipal,
long groupId,
long categoryId)
getCategoriesAndThreads
public static List<Object> getCategoriesAndThreads(HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
int status)
getCategoriesAndThreads
public static List<Object> getCategoriesAndThreads(HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
int status,
int start,
int end)
getCategoriesAndThreadsCount
public static int getCategoriesAndThreadsCount(HttpPrincipal httpPrincipal,
long groupId,
long categoryId)
getCategoriesAndThreadsCount
public static int getCategoriesAndThreadsCount(HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
int status)
getCategoriesCount
public static int getCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long parentCategoryId)
getCategoriesCount
public static int getCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long parentCategoryId,
int status)
getCategoriesCount
public static int getCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long excludedCategoryId,
long parentCategoryId,
int status)
getCategoriesCount
public static int getCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long[] parentCategoryIds)
getCategoriesCount
public static int getCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long[] parentCategoryIds,
int status)
getCategoriesCount
public static int getCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long[] excludedCategoryIds,
long[] parentCategoryIds,
int status)
getCategory
public static MBCategory getCategory(HttpPrincipal httpPrincipal,
long categoryId)
throws PortalException
- Throws:
PortalException
getCategoryIds
public static long[] getCategoryIds(HttpPrincipal httpPrincipal,
long groupId,
long categoryId)
getSubcategoryIds
public static List<Long> getSubcategoryIds(HttpPrincipal httpPrincipal,
List<Long> categoryIds,
long groupId,
long categoryId)
getSubscribedCategories
public static List<MBCategory> getSubscribedCategories(HttpPrincipal httpPrincipal,
long groupId,
long userId,
int start,
int end)
getSubscribedCategoriesCount
public static int getSubscribedCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long userId)
moveCategory
public static MBCategory moveCategory(HttpPrincipal httpPrincipal,
long categoryId,
long parentCategoryId,
boolean mergeWithParentCategory)
throws PortalException
- Throws:
PortalException
moveCategoryFromTrash
public static MBCategory moveCategoryFromTrash(HttpPrincipal httpPrincipal,
long categoryId,
long newCategoryId)
throws PortalException
- Throws:
PortalException
moveCategoryToTrash
public static MBCategory moveCategoryToTrash(HttpPrincipal httpPrincipal,
long categoryId)
throws PortalException
- Throws:
PortalException
restoreCategoryFromTrash
public static void restoreCategoryFromTrash(HttpPrincipal httpPrincipal,
long categoryId)
throws PortalException
- Throws:
PortalException
subscribeCategory
public static void subscribeCategory(HttpPrincipal httpPrincipal,
long groupId,
long categoryId)
throws PortalException
- Throws:
PortalException
unsubscribeCategory
public static void unsubscribeCategory(HttpPrincipal httpPrincipal,
long groupId,
long categoryId)
throws PortalException
- Throws:
PortalException
updateCategory
public static MBCategory updateCategory(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,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException