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

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

public class AssetTagServiceHttp
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 AssetTagServiceUtil 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:
AssetTagServiceSoap, HttpPrincipal, AssetTagServiceUtil
Generated:

Constructor Summary
AssetTagServiceHttp()
           
 
Method Summary
static com.liferay.portlet.asset.model.AssetTag addTag(HttpPrincipal httpPrincipal, java.lang.String name, java.lang.String[] tagProperties, com.liferay.portal.service.ServiceContext serviceContext)
           
static void deleteTag(HttpPrincipal httpPrincipal, long tagId)
           
static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(HttpPrincipal httpPrincipal, long groupId)
           
static com.liferay.portlet.asset.model.AssetTag getTag(HttpPrincipal httpPrincipal, long tagId)
           
static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(HttpPrincipal httpPrincipal, long groupId, long classNameId, java.lang.String name)
           
static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(HttpPrincipal httpPrincipal, java.lang.String className, long classPK)
           
static void mergeTags(HttpPrincipal httpPrincipal, long fromTagId, long toTagId)
           
static com.liferay.portal.kernel.json.JSONArray search(HttpPrincipal httpPrincipal, long groupId, java.lang.String name, java.lang.String[] tagProperties, int start, int end)
           
static com.liferay.portlet.asset.model.AssetTag updateTag(HttpPrincipal httpPrincipal, long tagId, java.lang.String name, java.lang.String[] tagProperties, 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

AssetTagServiceHttp

public AssetTagServiceHttp()
Method Detail

addTag

public static com.liferay.portlet.asset.model.AssetTag addTag(HttpPrincipal httpPrincipal,
                                                              java.lang.String name,
                                                              java.lang.String[] tagProperties,
                                                              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

deleteTag

public static void deleteTag(HttpPrincipal httpPrincipal,
                             long tagId)
                      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

getGroupTags

public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(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

getTag

public static com.liferay.portlet.asset.model.AssetTag getTag(HttpPrincipal httpPrincipal,
                                                              long tagId)
                                                       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

getTags

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

getTags

public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(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

mergeTags

public static void mergeTags(HttpPrincipal httpPrincipal,
                             long fromTagId,
                             long toTagId)
                      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[] tagProperties,
                                                              int start,
                                                              int end)
                                                       throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateTag

public static com.liferay.portlet.asset.model.AssetTag updateTag(HttpPrincipal httpPrincipal,
                                                                 long tagId,
                                                                 java.lang.String name,
                                                                 java.lang.String[] tagProperties,
                                                                 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