com.liferay.portlet.asset.service.http
Class AssetCategoryServiceHttp
java.lang.Object
com.liferay.portlet.asset.service.http.AssetCategoryServiceHttp
public class AssetCategoryServiceHttp
- extends java.lang.Object
This class provides a HTTP utility for the
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.
- Author:
- Brian Wing Shun Chan
- See Also:
AssetCategoryServiceSoap,
HttpPrincipal,
AssetCategoryServiceUtil- Generated:
|
Method Summary |
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 void |
deleteCategories(HttpPrincipal httpPrincipal,
long[] categoryIds)
|
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.JSONObject |
getJSONVocabularyCategories(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> |
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 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 com.liferay.portlet.asset.model.AssetCategory |
moveCategory(HttpPrincipal httpPrincipal,
long categoryId,
long parentCategoryId,
long vocabularyId,
com.liferay.portal.service.ServiceContext serviceContext)
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssetCategoryServiceHttp
public AssetCategoryServiceHttp()
addCategory
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteCategories
public static void deleteCategories(HttpPrincipal httpPrincipal,
long[] categoryIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteCategory
public static void deleteCategory(HttpPrincipal httpPrincipal,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getCategories
public 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getCategory
public 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getChildCategories
public 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getChildCategories
public 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getJSONVocabularyCategories
public static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getVocabularyCategories
public 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getVocabularyCategories
public 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getVocabularyCategories
public 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
- Throws:
com.liferay.portal.kernel.exception.SystemException
getVocabularyCategoriesCount
public static int getVocabularyCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long vocabularyId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getVocabularyCategoriesCount
public static int getVocabularyCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
long vocabularyId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getVocabularyRootCategories
public 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
moveCategory
public 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
search
public 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.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
search
public 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateCategory
public 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException