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

java.lang.Object
  extended by com.liferay.portlet.asset.service.http.AssetVocabularyServiceHttp

public class AssetVocabularyServiceHttp
extends java.lang.Object

This class provides a HTTP utility for the AssetVocabularyServiceUtil 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:
AssetVocabularyServiceSoap, HttpPrincipal, AssetVocabularyServiceUtil
Generated:

Constructor Summary
AssetVocabularyServiceHttp()
           
 
Method Summary
static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(HttpPrincipal httpPrincipal, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String settings, com.liferay.portal.service.ServiceContext serviceContext)
           
static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(HttpPrincipal httpPrincipal, java.lang.String title, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String settings, com.liferay.portal.service.ServiceContext serviceContext)
           
static void deleteVocabularies(HttpPrincipal httpPrincipal, long[] vocabularyIds)
           
static void deleteVocabulary(HttpPrincipal httpPrincipal, long vocabularyId)
           
static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(HttpPrincipal httpPrincipal, long companyId)
           
static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(HttpPrincipal httpPrincipal, long[] groupIds)
           
static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String className)
           
static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal, long groupId)
           
static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal, long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal, long groupId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal, long groupId)
           
static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal, long groupId, java.lang.String name)
           
static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(HttpPrincipal httpPrincipal, long groupId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(HttpPrincipal httpPrincipal, long[] vocabularyIds)
           
static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(HttpPrincipal httpPrincipal, long vocabularyId)
           
static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(HttpPrincipal httpPrincipal, long vocabularyId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String settings, com.liferay.portal.service.ServiceContext serviceContext)
           
static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(HttpPrincipal httpPrincipal, long vocabularyId, java.lang.String title, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String settings, com.liferay.portal.service.ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetVocabularyServiceHttp

public AssetVocabularyServiceHttp()
Method Detail

addVocabulary

public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(HttpPrincipal httpPrincipal,
                                                                            java.util.Map<java.util.Locale,java.lang.String> titleMap,
                                                                            java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
                                                                            java.lang.String settings,
                                                                            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

addVocabulary

public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(HttpPrincipal httpPrincipal,
                                                                            java.lang.String title,
                                                                            java.util.Map<java.util.Locale,java.lang.String> titleMap,
                                                                            java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
                                                                            java.lang.String settings,
                                                                            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

deleteVocabularies

public static void deleteVocabularies(HttpPrincipal httpPrincipal,
                                      long[] vocabularyIds)
                               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

deleteVocabulary

public static void deleteVocabulary(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

getCompanyVocabularies

public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(HttpPrincipal httpPrincipal,
                                                                                                     long companyId)
                                                                                              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

getGroupsVocabularies

public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(HttpPrincipal httpPrincipal,
                                                                                                    long[] groupIds)
                                                                                             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

getGroupsVocabularies

public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(HttpPrincipal httpPrincipal,
                                                                                                    long[] groupIds,
                                                                                                    java.lang.String className)
                                                                                             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

getGroupVocabularies

public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal,
                                                                                                   long groupId)
                                                                                            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

getGroupVocabularies

public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal,
                                                                                                   long groupId,
                                                                                                   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

getGroupVocabularies

public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal,
                                                                                                   long groupId,
                                                                                                   java.lang.String name,
                                                                                                   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

getGroupVocabulariesCount

public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
                                            long groupId)
                                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupVocabulariesCount

public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
                                            long groupId,
                                            java.lang.String name)
                                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getJSONGroupVocabularies

public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(HttpPrincipal httpPrincipal,
                                                                                 long groupId,
                                                                                 java.lang.String name,
                                                                                 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

getVocabularies

public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(HttpPrincipal httpPrincipal,
                                                                                              long[] vocabularyIds)
                                                                                       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

getVocabulary

public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(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

updateVocabulary

public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(HttpPrincipal httpPrincipal,
                                                                               long vocabularyId,
                                                                               java.util.Map<java.util.Locale,java.lang.String> titleMap,
                                                                               java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
                                                                               java.lang.String settings,
                                                                               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

updateVocabulary

public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(HttpPrincipal httpPrincipal,
                                                                               long vocabularyId,
                                                                               java.lang.String title,
                                                                               java.util.Map<java.util.Locale,java.lang.String> titleMap,
                                                                               java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
                                                                               java.lang.String settings,
                                                                               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