Liferay 6.1.2-ce-ga3

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

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

public class AssetTagServiceHttp
extends Object

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.

See Also:
AssetTagServiceSoap, HttpPrincipal, AssetTagServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
AssetTagServiceHttp()
           
 
Method Summary
static AssetTag addTag(HttpPrincipal httpPrincipal, String name, String[] tagProperties, ServiceContext serviceContext)
           
static void deleteTag(HttpPrincipal httpPrincipal, long tagId)
           
static void deleteTags(HttpPrincipal httpPrincipal, long[] tagIds)
           
static List<AssetTag> getGroupsTags(HttpPrincipal httpPrincipal, long[] groupIds)
           
static List<AssetTag> getGroupTags(HttpPrincipal httpPrincipal, long groupId)
           
static List<AssetTag> getGroupTags(HttpPrincipal httpPrincipal, long groupId, int start, int end, OrderByComparator obc)
           
static int getGroupTagsCount(HttpPrincipal httpPrincipal, long groupId)
           
static JSONObject getJSONGroupTags(HttpPrincipal httpPrincipal, long groupId, String name, int start, int end)
           
static AssetTag getTag(HttpPrincipal httpPrincipal, long tagId)
           
static List<AssetTag> getTags(HttpPrincipal httpPrincipal, long[] groupIds, String name, String[] tagProperties, int start, int end)
           
static List<AssetTag> getTags(HttpPrincipal httpPrincipal, long groupId, long classNameId, String name)
           
static List<AssetTag> getTags(HttpPrincipal httpPrincipal, long groupId, long classNameId, String name, int start, int end, OrderByComparator obc)
           
static List<AssetTag> getTags(HttpPrincipal httpPrincipal, long groupId, String name, String[] tagProperties, int start, int end)
           
static List<AssetTag> getTags(HttpPrincipal httpPrincipal, String className, long classPK)
           
static int getTagsCount(HttpPrincipal httpPrincipal, long groupId, long classNameId, String name)
           
static int getTagsCount(HttpPrincipal httpPrincipal, long groupId, String name)
           
static int getTagsCount(HttpPrincipal httpPrincipal, long groupId, String name, String[] tagProperties)
           
static void mergeTags(HttpPrincipal httpPrincipal, long[] fromTagIds, long toTagId, boolean overrideProperties)
           
static void mergeTags(HttpPrincipal httpPrincipal, long fromTagId, long toTagId, boolean overrideProperties)
           
static JSONArray search(HttpPrincipal httpPrincipal, long[] groupIds, String name, String[] tagProperties, int start, int end)
           
static JSONArray search(HttpPrincipal httpPrincipal, long groupId, String name, String[] tagProperties, int start, int end)
           
static AssetTag updateTag(HttpPrincipal httpPrincipal, long tagId, String name, String[] tagProperties, 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 AssetTag addTag(HttpPrincipal httpPrincipal,
                              String name,
                              String[] tagProperties,
                              ServiceContext serviceContext)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

deleteTag

public static void deleteTag(HttpPrincipal httpPrincipal,
                             long tagId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

deleteTags

public static void deleteTags(HttpPrincipal httpPrincipal,
                              long[] tagIds)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getGroupsTags

public static List<AssetTag> getGroupsTags(HttpPrincipal httpPrincipal,
                                           long[] groupIds)
                                    throws SystemException
Throws:
SystemException

getGroupTags

public static List<AssetTag> getGroupTags(HttpPrincipal httpPrincipal,
                                          long groupId)
                                   throws SystemException
Throws:
SystemException

getGroupTags

public static List<AssetTag> getGroupTags(HttpPrincipal httpPrincipal,
                                          long groupId,
                                          int start,
                                          int end,
                                          OrderByComparator obc)
                                   throws SystemException
Throws:
SystemException

getGroupTagsCount

public static int getGroupTagsCount(HttpPrincipal httpPrincipal,
                                    long groupId)
                             throws SystemException
Throws:
SystemException

getJSONGroupTags

public static JSONObject getJSONGroupTags(HttpPrincipal httpPrincipal,
                                          long groupId,
                                          String name,
                                          int start,
                                          int end)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

getTag

public static AssetTag getTag(HttpPrincipal httpPrincipal,
                              long tagId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getTags

public static List<AssetTag> getTags(HttpPrincipal httpPrincipal,
                                     long groupId,
                                     long classNameId,
                                     String name)
                              throws SystemException
Throws:
SystemException

getTags

public static List<AssetTag> getTags(HttpPrincipal httpPrincipal,
                                     long groupId,
                                     long classNameId,
                                     String name,
                                     int start,
                                     int end,
                                     OrderByComparator obc)
                              throws SystemException
Throws:
SystemException

getTags

public static List<AssetTag> getTags(HttpPrincipal httpPrincipal,
                                     long groupId,
                                     String name,
                                     String[] tagProperties,
                                     int start,
                                     int end)
                              throws SystemException
Throws:
SystemException

getTags

public static List<AssetTag> getTags(HttpPrincipal httpPrincipal,
                                     long[] groupIds,
                                     String name,
                                     String[] tagProperties,
                                     int start,
                                     int end)
                              throws SystemException
Throws:
SystemException

getTags

public static List<AssetTag> getTags(HttpPrincipal httpPrincipal,
                                     String className,
                                     long classPK)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getTagsCount

public static int getTagsCount(HttpPrincipal httpPrincipal,
                               long groupId,
                               long classNameId,
                               String name)
                        throws SystemException
Throws:
SystemException

getTagsCount

public static int getTagsCount(HttpPrincipal httpPrincipal,
                               long groupId,
                               String name)
                        throws SystemException
Throws:
SystemException

getTagsCount

public static int getTagsCount(HttpPrincipal httpPrincipal,
                               long groupId,
                               String name,
                               String[] tagProperties)
                        throws SystemException
Throws:
SystemException

mergeTags

public static void mergeTags(HttpPrincipal httpPrincipal,
                             long fromTagId,
                             long toTagId,
                             boolean overrideProperties)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

mergeTags

public static void mergeTags(HttpPrincipal httpPrincipal,
                             long[] fromTagIds,
                             long toTagId,
                             boolean overrideProperties)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

search

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

search

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

updateTag

public static AssetTag updateTag(HttpPrincipal httpPrincipal,
                                 long tagId,
                                 String name,
                                 String[] tagProperties,
                                 ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

Liferay 6.1.2-ce-ga3