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
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
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,
long vocabularyId,
java.lang.String[] categoryProperties,
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> |
getVocabularyCategories(HttpPrincipal httpPrincipal,
long vocabularyId)
|
static java.util.List<com.liferay.portlet.asset.model.AssetCategory> |
getVocabularyRootCategories(HttpPrincipal httpPrincipal,
long vocabularyId)
|
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,
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,
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
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
getVocabularyCategories
public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(HttpPrincipal httpPrincipal,
long vocabularyId)
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
getVocabularyRootCategories
public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(HttpPrincipal httpPrincipal,
long vocabularyId)
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.SystemException
- Throws:
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,
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