Liferay 6.0.5

com.liferay.portlet.asset.service.http
Class AssetCategoryServiceHttp

java.lang.Object
  extended by 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 is generated.

Constructor Summary
AssetCategoryServiceHttp()
           
 
Method Summary
static AssetCategory addCategory(HttpPrincipal httpPrincipal, long parentCategoryId, Map<Locale,String> titleMap, long vocabularyId, String[] categoryProperties, 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, int start, int end, OrderByComparator obc)
           
static List<AssetCategory> getVocabularyCategories(HttpPrincipal httpPrincipal, long vocabularyId, int start, int end, OrderByComparator obc)
           
static List<AssetCategory> getVocabularyRootCategories(HttpPrincipal httpPrincipal, 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, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetCategoryServiceHttp

public AssetCategoryServiceHttp()
Method Detail

addCategory

public static AssetCategory addCategory(HttpPrincipal httpPrincipal,
                                        long parentCategoryId,
                                        Map<Locale,String> titleMap,
                                        long vocabularyId,
                                        String[] categoryProperties,
                                        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,
                                                     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

getVocabularyRootCategories

public static List<AssetCategory> getVocabularyRootCategories(HttpPrincipal httpPrincipal,
                                                              long vocabularyId,
                                                              int start,
                                                              int end,
                                                              OrderByComparator obc)
                                                       throws PortalException,
                                                              SystemException
Throws:
PortalException
SystemException

search

public static JSONArray search(HttpPrincipal httpPrincipal,
                               long groupId,
                               String name,
                               String[] categoryProperties,
                               int start,
                               int end)
                        throws SystemException
Throws:
SystemException

updateCategory

public static AssetCategory updateCategory(HttpPrincipal httpPrincipal,
                                           long categoryId,
                                           long parentCategoryId,
                                           Map<Locale,String> titleMap,
                                           long vocabularyId,
                                           String[] categoryProperties,
                                           ServiceContext serviceContext)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

Liferay 6.0.5