public class AssetCategoryServiceHttp
extends java.lang.Object
AssetCategoryServiceUtil 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.
AssetCategoryServiceSoap,
HttpPrincipal,
AssetCategoryServiceUtil| Constructor and Description |
|---|
AssetCategoryServiceHttp() |
| Modifier and Type | Method and Description |
|---|---|
static com.liferay.portlet.asset.model.AssetCategory |
addCategory(HttpPrincipal httpPrincipal,
long parentCategoryId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
long vocabularyId,
java.lang.String[] categoryProperties,
com.liferay.portal.service.ServiceContext serviceContext) |
static com.liferay.portlet.asset.model.AssetCategory |
addCategory(HttpPrincipal httpPrincipal,
java.lang.String title,
long vocabularyId,
com.liferay.portal.service.ServiceContext serviceContext) |
static void |
deleteCategories(HttpPrincipal httpPrincipal,
long[] categoryIds) |
static java.util.List<com.liferay.portlet.asset.model.AssetCategory> |
deleteCategories(HttpPrincipal httpPrincipal,
long[] categoryIds,
com.liferay.portal.service.ServiceContext serviceContext) |
static void |
deleteCategory(HttpPrincipal httpPrincipal,
long categoryId) |
static java.util.List<com.liferay.portlet.asset.model.AssetCategory> |
getCategories(HttpPrincipal httpPrincipal,
java.lang.String className,
long classPK) |
static com.liferay.portlet.asset.model.AssetCategory |
getCategory(HttpPrincipal httpPrincipal,
long categoryId) |
static java.util.List<com.liferay.portlet.asset.model.AssetCategory> |
getChildCategories(HttpPrincipal httpPrincipal,
long parentCategoryId) |
static java.util.List<com.liferay.portlet.asset.model.AssetCategory> |
getChildCategories(HttpPrincipal httpPrincipal,
long parentCategoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
static com.liferay.portal.kernel.json.JSONArray |
getJSONSearch(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
long[] vocabularyIds,
int start,
int end) |
static com.liferay.portal.kernel.json.JSONObject |
getJSONVocabularyCategories(HttpPrincipal httpPrincipal,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
static com.liferay.portal.kernel.json.JSONObject |
getJSONVocabularyCategories(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String title,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
static java.util.List<com.liferay.portlet.asset.model.AssetCategory> |
getVocabularyCategories(HttpPrincipal httpPrincipal,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
static java.util.List<com.liferay.portlet.asset.model.AssetCategory> |
getVocabularyCategories(HttpPrincipal httpPrincipal,
long parentCategoryId,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
static java.util.List<com.liferay.portlet.asset.model.AssetCategory> |
getVocabularyCategories(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
static int |
getVocabularyCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long vocabularyId) |
static int |
getVocabularyCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
long vocabularyId) |
static com.liferay.portlet.asset.model.AssetCategoryDisplay |
getVocabularyCategoriesDisplay(HttpPrincipal httpPrincipal,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
static com.liferay.portlet.asset.model.AssetCategoryDisplay |
getVocabularyCategoriesDisplay(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
static java.util.List<com.liferay.portlet.asset.model.AssetCategory> |
getVocabularyRootCategories(HttpPrincipal httpPrincipal,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
static java.util.List<com.liferay.portlet.asset.model.AssetCategory> |
getVocabularyRootCategories(HttpPrincipal httpPrincipal,
long groupId,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
static int |
getVocabularyRootCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long vocabularyId) |
static com.liferay.portlet.asset.model.AssetCategory |
moveCategory(HttpPrincipal httpPrincipal,
long categoryId,
long parentCategoryId,
long vocabularyId,
com.liferay.portal.service.ServiceContext serviceContext) |
static com.liferay.portal.kernel.json.JSONArray |
search(HttpPrincipal httpPrincipal,
long[] groupIds,
java.lang.String title,
long[] vocabularyIds,
int start,
int end) |
static java.util.List<com.liferay.portlet.asset.model.AssetCategory> |
search(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String keywords,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
static com.liferay.portal.kernel.json.JSONArray |
search(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
java.lang.String[] categoryProperties,
int start,
int end) |
static com.liferay.portlet.asset.model.AssetCategory |
updateCategory(HttpPrincipal httpPrincipal,
long categoryId,
long parentCategoryId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
long vocabularyId,
java.lang.String[] categoryProperties,
com.liferay.portal.service.ServiceContext serviceContext) |
public static com.liferay.portlet.asset.model.AssetCategory addCategory(HttpPrincipal httpPrincipal, long parentCategoryId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, long vocabularyId, java.lang.String[] categoryProperties, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.asset.model.AssetCategory addCategory(HttpPrincipal httpPrincipal, java.lang.String title, long vocabularyId, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void deleteCategories(HttpPrincipal httpPrincipal, long[] categoryIds) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetCategory> deleteCategories(HttpPrincipal httpPrincipal, long[] categoryIds, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void deleteCategory(HttpPrincipal httpPrincipal, long categoryId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(HttpPrincipal httpPrincipal, java.lang.String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.asset.model.AssetCategory getCategory(HttpPrincipal httpPrincipal, long categoryId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(HttpPrincipal httpPrincipal, long parentCategoryId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(HttpPrincipal httpPrincipal, long parentCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portal.kernel.json.JSONArray getJSONSearch(HttpPrincipal httpPrincipal, long groupId, java.lang.String name, long[] vocabularyIds, int start, int end) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(HttpPrincipal httpPrincipal, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(HttpPrincipal httpPrincipal, long groupId, java.lang.String title, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(HttpPrincipal httpPrincipal, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(HttpPrincipal httpPrincipal, long parentCategoryId, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(HttpPrincipal httpPrincipal, long groupId, java.lang.String name, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static int getVocabularyCategoriesCount(HttpPrincipal httpPrincipal, long groupId, long vocabularyId) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static int getVocabularyCategoriesCount(HttpPrincipal httpPrincipal, long groupId, java.lang.String name, long vocabularyId) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(HttpPrincipal httpPrincipal, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(HttpPrincipal httpPrincipal, long groupId, java.lang.String name, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(HttpPrincipal httpPrincipal, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(HttpPrincipal httpPrincipal, long groupId, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static int getVocabularyRootCategoriesCount(HttpPrincipal httpPrincipal, long groupId, long vocabularyId) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.asset.model.AssetCategory moveCategory(HttpPrincipal httpPrincipal, long categoryId, long parentCategoryId, long vocabularyId, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(HttpPrincipal httpPrincipal, long groupId, java.lang.String keywords, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portal.kernel.json.JSONArray search(HttpPrincipal httpPrincipal, long groupId, java.lang.String name, java.lang.String[] categoryProperties, int start, int end) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portal.kernel.json.JSONArray search(HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String title, long[] vocabularyIds, int start, int end) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.asset.model.AssetCategory updateCategory(HttpPrincipal httpPrincipal, long categoryId, long parentCategoryId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, long vocabularyId, java.lang.String[] categoryProperties, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException