com.liferay.portlet.asset.service.http
Class AssetCategoryServiceHttp
java.lang.Object
com.liferay.portlet.asset.service.http.AssetCategoryServiceHttp
public class AssetCategoryServiceHttp
- extends 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.
- See Also:
AssetCategoryServiceSoap
,
HttpPrincipal
,
AssetCategoryServiceUtil
- ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.
Method Summary |
static AssetCategory |
addCategory(HttpPrincipal httpPrincipal,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
|
static void |
deleteCategories(HttpPrincipal httpPrincipal,
long[] categoryIds)
|
static List<AssetCategory> |
deleteCategories(HttpPrincipal httpPrincipal,
long[] categoryIds,
ServiceContext serviceContext)
|
static void |
deleteCategory(HttpPrincipal httpPrincipal,
long categoryId)
|
static List<AssetCategory> |
getCategories(HttpPrincipal httpPrincipal,
String className,
long classPK)
|
static AssetCategory |
getCategory(HttpPrincipal httpPrincipal,
long categoryId)
|
static List<AssetCategory> |
getChildCategories(HttpPrincipal httpPrincipal,
long parentCategoryId)
|
static List<AssetCategory> |
getChildCategories(HttpPrincipal httpPrincipal,
long parentCategoryId,
int start,
int end,
OrderByComparator obc)
|
static JSONArray |
getJSONSearch(HttpPrincipal httpPrincipal,
long groupId,
String name,
long[] vocabularyIds,
int start,
int end)
|
static JSONArray |
getJSONSearch(HttpPrincipal httpPrincipal,
long groupId,
String keywords,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
static JSONObject |
getJSONVocabularyCategories(HttpPrincipal httpPrincipal,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
static JSONObject |
getJSONVocabularyCategories(HttpPrincipal httpPrincipal,
long groupId,
String name,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
static List<AssetCategory> |
getVocabularyCategories(HttpPrincipal httpPrincipal,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
static List<AssetCategory> |
getVocabularyCategories(HttpPrincipal httpPrincipal,
long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
static List<AssetCategory> |
getVocabularyCategories(HttpPrincipal httpPrincipal,
long groupId,
String name,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
static int |
getVocabularyCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long vocabularyId)
|
static int |
getVocabularyCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
String name,
long vocabularyId)
|
static List<AssetCategory> |
getVocabularyRootCategories(HttpPrincipal httpPrincipal,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
static List<AssetCategory> |
getVocabularyRootCategories(HttpPrincipal httpPrincipal,
long groupId,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
static int |
getVocabularyRootCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long vocabularyId)
|
static AssetCategory |
moveCategory(HttpPrincipal httpPrincipal,
long categoryId,
long parentCategoryId,
long vocabularyId,
ServiceContext serviceContext)
|
static JSONArray |
search(HttpPrincipal httpPrincipal,
long[] groupIds,
String name,
long[] vocabularyIds,
int start,
int end)
|
static List<AssetCategory> |
search(HttpPrincipal httpPrincipal,
long groupId,
String keywords,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
static JSONArray |
search(HttpPrincipal httpPrincipal,
long groupId,
String name,
String[] categoryProperties,
int start,
int end)
|
static AssetCategory |
updateCategory(HttpPrincipal httpPrincipal,
long categoryId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
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 AssetCategory addCategory(HttpPrincipal httpPrincipal,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteCategories
public static void deleteCategories(HttpPrincipal httpPrincipal,
long[] categoryIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteCategories
public static List<AssetCategory> deleteCategories(HttpPrincipal httpPrincipal,
long[] categoryIds,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteCategory
public static void deleteCategory(HttpPrincipal httpPrincipal,
long categoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCategories
public static List<AssetCategory> getCategories(HttpPrincipal httpPrincipal,
String className,
long classPK)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCategory
public static AssetCategory getCategory(HttpPrincipal httpPrincipal,
long categoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getChildCategories
public static List<AssetCategory> getChildCategories(HttpPrincipal httpPrincipal,
long parentCategoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getChildCategories
public static List<AssetCategory> getChildCategories(HttpPrincipal httpPrincipal,
long parentCategoryId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getJSONSearch
public static JSONArray getJSONSearch(HttpPrincipal httpPrincipal,
long groupId,
String keywords,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getJSONSearch
public static JSONArray getJSONSearch(HttpPrincipal httpPrincipal,
long groupId,
String name,
long[] vocabularyIds,
int start,
int end)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getJSONVocabularyCategories
public static JSONObject getJSONVocabularyCategories(HttpPrincipal httpPrincipal,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getJSONVocabularyCategories
public static JSONObject getJSONVocabularyCategories(HttpPrincipal httpPrincipal,
long groupId,
String name,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getVocabularyCategories
public static List<AssetCategory> getVocabularyCategories(HttpPrincipal httpPrincipal,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getVocabularyCategories
public static List<AssetCategory> getVocabularyCategories(HttpPrincipal httpPrincipal,
long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getVocabularyCategories
public static List<AssetCategory> getVocabularyCategories(HttpPrincipal httpPrincipal,
long groupId,
String name,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getVocabularyCategoriesCount
public static int getVocabularyCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long vocabularyId)
throws SystemException
- Throws:
SystemException
getVocabularyCategoriesCount
public static int getVocabularyCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
String name,
long vocabularyId)
throws SystemException
- Throws:
SystemException
getVocabularyRootCategories
public static List<AssetCategory> getVocabularyRootCategories(HttpPrincipal httpPrincipal,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getVocabularyRootCategories
public static List<AssetCategory> getVocabularyRootCategories(HttpPrincipal httpPrincipal,
long groupId,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getVocabularyRootCategoriesCount
public static int getVocabularyRootCategoriesCount(HttpPrincipal httpPrincipal,
long groupId,
long vocabularyId)
throws SystemException
- Throws:
SystemException
moveCategory
public static AssetCategory moveCategory(HttpPrincipal httpPrincipal,
long categoryId,
long parentCategoryId,
long vocabularyId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
search
public static List<AssetCategory> search(HttpPrincipal httpPrincipal,
long groupId,
String keywords,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
search
public static JSONArray search(HttpPrincipal httpPrincipal,
long groupId,
String name,
String[] categoryProperties,
int start,
int end)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
search
public static JSONArray search(HttpPrincipal httpPrincipal,
long[] groupIds,
String name,
long[] vocabularyIds,
int start,
int end)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateCategory
public static AssetCategory updateCategory(HttpPrincipal httpPrincipal,
long categoryId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException