com.liferay.portlet.asset.service.http
Class AssetCategoryServiceHttp
java.lang.Object
com.liferay.portlet.asset.service.http.AssetCategoryServiceHttp
@ProviderType
public class AssetCategoryServiceHttp
- extends Object
Provides the 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- {$generated.description}
|
Method Summary |
static com.liferay.asset.kernel.model.AssetCategory |
addCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
|
static com.liferay.asset.kernel.model.AssetCategory |
addCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String title,
long vocabularyId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
|
static void |
deleteCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long[] categoryIds)
|
static List<com.liferay.asset.kernel.model.AssetCategory> |
deleteCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long[] categoryIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
|
static void |
deleteCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId)
|
static com.liferay.asset.kernel.model.AssetCategory |
fetchCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId)
|
static List<com.liferay.asset.kernel.model.AssetCategory> |
getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String className,
long classPK)
|
static com.liferay.asset.kernel.model.AssetCategory |
getCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId)
|
static String |
getCategoryPath(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId)
|
static List<com.liferay.asset.kernel.model.AssetCategory> |
getChildCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long parentCategoryId)
|
static List<com.liferay.asset.kernel.model.AssetCategory> |
getChildCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long parentCategoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
|
static List<com.liferay.asset.kernel.model.AssetCategory> |
getVocabularyCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
|
static List<com.liferay.asset.kernel.model.AssetCategory> |
getVocabularyCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long parentCategoryId,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
|
static List<com.liferay.asset.kernel.model.AssetCategory> |
getVocabularyCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long parentCategoryId,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
|
static List<com.liferay.asset.kernel.model.AssetCategory> |
getVocabularyCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String name,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
|
static int |
getVocabularyCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long vocabularyId)
|
static int |
getVocabularyCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long parentCategory,
long vocabularyId)
|
static int |
getVocabularyCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String name,
long vocabularyId)
|
static com.liferay.asset.kernel.model.AssetCategoryDisplay |
getVocabularyCategoriesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
|
static com.liferay.asset.kernel.model.AssetCategoryDisplay |
getVocabularyCategoriesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String name,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
|
static List<com.liferay.asset.kernel.model.AssetCategory> |
getVocabularyRootCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
|
static int |
getVocabularyRootCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long vocabularyId)
|
static com.liferay.asset.kernel.model.AssetCategory |
moveCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId,
long parentCategoryId,
long vocabularyId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
|
static com.liferay.portal.kernel.json.JSONArray |
search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long[] groupIds,
String name,
long[] vocabularyIds,
int start,
int end)
|
static List<com.liferay.asset.kernel.model.AssetCategory> |
search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String keywords,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
|
static com.liferay.portal.kernel.json.JSONArray |
search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String name,
String[] categoryProperties,
int start,
int end)
|
static com.liferay.asset.kernel.model.AssetCategoryDisplay |
searchCategoriesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long[] groupIds,
String title,
long[] vocabularyIds,
int start,
int end)
|
static com.liferay.asset.kernel.model.AssetCategoryDisplay |
searchCategoriesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long[] groupIds,
String title,
long[] parentCategoryIds,
long[] vocabularyIds,
int start,
int end)
|
static com.liferay.asset.kernel.model.AssetCategoryDisplay |
searchCategoriesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long[] groupIds,
String title,
long[] vocabularyIds,
long[] parentCategoryIds,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort)
|
static com.liferay.asset.kernel.model.AssetCategoryDisplay |
searchCategoriesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String title,
long vocabularyId,
int start,
int end)
|
static com.liferay.asset.kernel.model.AssetCategoryDisplay |
searchCategoriesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String title,
long parentCategoryId,
long vocabularyId,
int start,
int end)
|
static com.liferay.asset.kernel.model.AssetCategoryDisplay |
searchCategoriesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String title,
long vocabularyId,
long parentCategoryId,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort)
|
static com.liferay.asset.kernel.model.AssetCategory |
updateCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
com.liferay.portal.kernel.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.asset.kernel.model.AssetCategory addCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
addCategory
public static com.liferay.asset.kernel.model.AssetCategory addCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String title,
long vocabularyId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
deleteCategories
public static void deleteCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long[] categoryIds)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
deleteCategories
public static List<com.liferay.asset.kernel.model.AssetCategory> deleteCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long[] categoryIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
deleteCategory
public static void deleteCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
fetchCategory
public static com.liferay.asset.kernel.model.AssetCategory fetchCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getCategories
public static List<com.liferay.asset.kernel.model.AssetCategory> getCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getCategory
public static com.liferay.asset.kernel.model.AssetCategory getCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getCategoryPath
public static String getCategoryPath(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getChildCategories
public static List<com.liferay.asset.kernel.model.AssetCategory> getChildCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long parentCategoryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getChildCategories
public static List<com.liferay.asset.kernel.model.AssetCategory> getChildCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long parentCategoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getVocabularyCategories
public static List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getVocabularyCategories
public static List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long parentCategoryId,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getVocabularyCategories
public static List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long parentCategoryId,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
getVocabularyCategories
public static List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String name,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
getVocabularyCategoriesCount
public static int getVocabularyCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long vocabularyId)
getVocabularyCategoriesCount
public static int getVocabularyCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long parentCategory,
long vocabularyId)
getVocabularyCategoriesCount
public static int getVocabularyCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String name,
long vocabularyId)
getVocabularyCategoriesDisplay
public static com.liferay.asset.kernel.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getVocabularyCategoriesDisplay
public static com.liferay.asset.kernel.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String name,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getVocabularyRootCategories
public static List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyRootCategories(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
getVocabularyRootCategoriesCount
public static int getVocabularyRootCategoriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long vocabularyId)
moveCategory
public static com.liferay.asset.kernel.model.AssetCategory moveCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId,
long parentCategoryId,
long vocabularyId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
search
public static List<com.liferay.asset.kernel.model.AssetCategory> search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String keywords,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
search
public static com.liferay.portal.kernel.json.JSONArray search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String name,
String[] categoryProperties,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
search
public static com.liferay.portal.kernel.json.JSONArray search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long[] groupIds,
String name,
long[] vocabularyIds,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
searchCategoriesDisplay
public static com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String title,
long vocabularyId,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
searchCategoriesDisplay
public static com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String title,
long parentCategoryId,
long vocabularyId,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
searchCategoriesDisplay
public static com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String title,
long vocabularyId,
long parentCategoryId,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
searchCategoriesDisplay
public static com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long[] groupIds,
String title,
long[] vocabularyIds,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
searchCategoriesDisplay
public static com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long[] groupIds,
String title,
long[] parentCategoryIds,
long[] vocabularyIds,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
searchCategoriesDisplay
public static com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long[] groupIds,
String title,
long[] vocabularyIds,
long[] parentCategoryIds,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
updateCategory
public static com.liferay.asset.kernel.model.AssetCategory updateCategory(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException