Class AssetTagServiceHttp

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

public class AssetTagServiceHttp extends Object
Provides the 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
{$generated.description}
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.liferay.asset.kernel.model.AssetTag
    addTag(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static void
    deleteTag(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long tagId)
     
    static void
    deleteTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] tagIds)
     
    static com.liferay.asset.kernel.model.AssetTag
    fetchAssetTagByExternalReferenceCode(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId)
     
    static com.liferay.asset.kernel.model.AssetTag
    getAssetTagByExternalReferenceCode(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId)
     
    static List<com.liferay.asset.kernel.model.AssetTag>
    getGroupsTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds)
     
    static List<com.liferay.asset.kernel.model.AssetTag>
    getGroupTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId)
     
    static List<com.liferay.asset.kernel.model.AssetTag>
    getGroupTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
     
    static int
    getGroupTagsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId)
     
    static com.liferay.asset.kernel.model.AssetTagDisplay
    getGroupTagsDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name, int start, int end)
     
    static com.liferay.asset.kernel.model.AssetTag
    getTag(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long tagId)
     
    static List<com.liferay.asset.kernel.model.AssetTag>
    getTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds, String name, int start, int end)
     
    static List<com.liferay.asset.kernel.model.AssetTag>
    getTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
     
    static List<com.liferay.asset.kernel.model.AssetTag>
    getTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long classNameId, String name)
     
    static List<com.liferay.asset.kernel.model.AssetTag>
    getTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long classNameId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
     
    static List<com.liferay.asset.kernel.model.AssetTag>
    getTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name, int start, int end)
     
    static List<com.liferay.asset.kernel.model.AssetTag>
    getTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
     
    static List<com.liferay.asset.kernel.model.AssetTag>
    getTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String className, long classPK)
     
    static int
    getTagsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds, String name)
     
    static int
    getTagsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name)
     
    static int
    getVisibleAssetsTagsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long classNameId, String name)
     
    static void
    mergeTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] fromTagIds, long toTagId)
     
    static void
    mergeTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fromTagId, long toTagId)
     
    static com.liferay.portal.kernel.json.JSONArray
    search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds, String name, int start, int end)
     
    static com.liferay.portal.kernel.json.JSONArray
    search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name, int start, int end)
     
    static void
    subscribeTag(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long userId, long groupId, long tagId)
     
    static void
    unsubscribeTag(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long userId, long tagId)
     
    static com.liferay.asset.kernel.model.AssetTag
    updateTag(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long tagId, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AssetTagServiceHttp

      public AssetTagServiceHttp()
  • Method Details

    • addTag

      public static com.liferay.asset.kernel.model.AssetTag addTag(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteTag

      public static void deleteTag(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long tagId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteTags

      public static void deleteTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] tagIds) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchAssetTagByExternalReferenceCode

      public static com.liferay.asset.kernel.model.AssetTag fetchAssetTagByExternalReferenceCode(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId)
    • getAssetTagByExternalReferenceCode

      public static com.liferay.asset.kernel.model.AssetTag getAssetTagByExternalReferenceCode(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getGroupsTags

      public static List<com.liferay.asset.kernel.model.AssetTag> getGroupsTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds)
    • getGroupTags

      public static List<com.liferay.asset.kernel.model.AssetTag> getGroupTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId)
    • getGroupTags

      public static List<com.liferay.asset.kernel.model.AssetTag> getGroupTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    • getGroupTagsCount

      public static int getGroupTagsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId)
    • getGroupTagsDisplay

      public static com.liferay.asset.kernel.model.AssetTagDisplay getGroupTagsDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name, int start, int end)
    • getTag

      public static com.liferay.asset.kernel.model.AssetTag getTag(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long tagId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getTags

      public static List<com.liferay.asset.kernel.model.AssetTag> getTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long classNameId, String name)
    • getTags

      public static List<com.liferay.asset.kernel.model.AssetTag> getTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long classNameId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    • getTags

      public static List<com.liferay.asset.kernel.model.AssetTag> getTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name, int start, int end)
    • getTags

      public static List<com.liferay.asset.kernel.model.AssetTag> getTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    • getTags

      public static List<com.liferay.asset.kernel.model.AssetTag> getTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds, String name, int start, int end)
    • getTags

      public static List<com.liferay.asset.kernel.model.AssetTag> getTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    • getTags

      public static List<com.liferay.asset.kernel.model.AssetTag> getTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String className, long classPK)
    • getTagsCount

      public static int getTagsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name)
    • getTagsCount

      public static int getTagsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds, String name)
    • getVisibleAssetsTagsCount

      public static int getVisibleAssetsTagsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long classNameId, String name)
    • mergeTags

      public static void mergeTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fromTagId, long toTagId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • mergeTags

      public static void mergeTags(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] fromTagIds, long toTagId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • search

      public static com.liferay.portal.kernel.json.JSONArray search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name, int start, int end)
    • search

      public static com.liferay.portal.kernel.json.JSONArray search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds, String name, int start, int end)
    • subscribeTag

      public static void subscribeTag(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long userId, long groupId, long tagId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • unsubscribeTag

      public static void unsubscribeTag(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long userId, long tagId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateTag

      public static com.liferay.asset.kernel.model.AssetTag updateTag(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long tagId, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException