Liferay 7.0-ce-b4

com.liferay.portlet.asset.service
Class AssetTagServiceUtil

java.lang.Object
  extended by com.liferay.portlet.asset.service.AssetTagServiceUtil

@ProviderType
public class AssetTagServiceUtil
extends Object

Provides the remote service utility for AssetTag. This utility wraps AssetTagServiceImpl and is the primary access point for service operations in application layer code running on a remote server. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
AssetTagService, AssetTagServiceBaseImpl, AssetTagServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
AssetTagServiceUtil()
           
 
Method Summary
static AssetTag addTag(long groupId, String name, ServiceContext serviceContext)
           
static void deleteTag(long tagId)
           
static void deleteTags(long[] tagIds)
           
static List<AssetTag> getGroupsTags(long[] groupIds)
           
static List<AssetTag> getGroupTags(long groupId)
           
static List<AssetTag> getGroupTags(long groupId, int start, int end, OrderByComparator<AssetTag> obc)
           
static int getGroupTagsCount(long groupId)
           
static AssetTagDisplay getGroupTagsDisplay(long groupId, String name, int start, int end)
           
static JSONObject getJSONGroupTags(long groupId, String name, int start, int end)
          Deprecated. As of 6.2.0, replaced by getGroupTagsDisplay(long, String, int, int)
static String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
static AssetTagService getService()
           
static AssetTag getTag(long tagId)
           
static List<AssetTag> getTags(long[] groupIds, String name, int start, int end)
           
static List<AssetTag> getTags(long[] groupIds, String name, int start, int end, OrderByComparator<AssetTag> obc)
           
static List<AssetTag> getTags(long groupId, long classNameId, String name)
           
static List<AssetTag> getTags(long groupId, long classNameId, String name, int start, int end, OrderByComparator<AssetTag> obc)
           
static List<AssetTag> getTags(long groupId, String name, int start, int end)
           
static List<AssetTag> getTags(long groupId, String name, int start, int end, OrderByComparator<AssetTag> obc)
           
static List<AssetTag> getTags(String className, long classPK)
           
static int getTagsCount(long groupId, String name)
           
static int getVisibleAssetsTagsCount(long groupId, long classNameId, String name)
           
static int getVisibleAssetsTagsCount(long groupId, String name)
           
static void mergeTags(long[] fromTagIds, long toTagId)
           
static void mergeTags(long fromTagId, long toTagId)
           
static JSONArray search(long[] groupIds, String name, int start, int end)
           
static JSONArray search(long groupId, String name, int start, int end)
           
static AssetTag updateTag(long tagId, String name, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetTagServiceUtil

public AssetTagServiceUtil()
Method Detail

addTag

public static AssetTag addTag(long groupId,
                              String name,
                              ServiceContext serviceContext)
                       throws PortalException
Throws:
PortalException

deleteTag

public static void deleteTag(long tagId)
                      throws PortalException
Throws:
PortalException

deleteTags

public static void deleteTags(long[] tagIds)
                       throws PortalException
Throws:
PortalException

getGroupTags

public static List<AssetTag> getGroupTags(long groupId)

getGroupTags

public static List<AssetTag> getGroupTags(long groupId,
                                          int start,
                                          int end,
                                          OrderByComparator<AssetTag> obc)

getGroupTagsCount

public static int getGroupTagsCount(long groupId)

getGroupTagsDisplay

public static AssetTagDisplay getGroupTagsDisplay(long groupId,
                                                  String name,
                                                  int start,
                                                  int end)

getGroupsTags

public static List<AssetTag> getGroupsTags(long[] groupIds)

getJSONGroupTags

@Deprecated
public static JSONObject getJSONGroupTags(long groupId,
                                                     String name,
                                                     int start,
                                                     int end)
                                   throws PortalException
Deprecated. As of 6.2.0, replaced by getGroupTagsDisplay(long, String, int, int)

Throws:
PortalException

getOSGiServiceIdentifier

public static String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Returns:
the OSGi service identifier

getTag

public static AssetTag getTag(long tagId)
                       throws PortalException
Throws:
PortalException

getTags

public static List<AssetTag> getTags(String className,
                                     long classPK)

getTags

public static List<AssetTag> getTags(long groupId,
                                     long classNameId,
                                     String name)

getTags

public static List<AssetTag> getTags(long groupId,
                                     long classNameId,
                                     String name,
                                     int start,
                                     int end,
                                     OrderByComparator<AssetTag> obc)

getTags

public static List<AssetTag> getTags(long groupId,
                                     String name,
                                     int start,
                                     int end)

getTags

public static List<AssetTag> getTags(long groupId,
                                     String name,
                                     int start,
                                     int end,
                                     OrderByComparator<AssetTag> obc)

getTags

public static List<AssetTag> getTags(long[] groupIds,
                                     String name,
                                     int start,
                                     int end)

getTags

public static List<AssetTag> getTags(long[] groupIds,
                                     String name,
                                     int start,
                                     int end,
                                     OrderByComparator<AssetTag> obc)

getTagsCount

public static int getTagsCount(long groupId,
                               String name)

getVisibleAssetsTagsCount

public static int getVisibleAssetsTagsCount(long groupId,
                                            long classNameId,
                                            String name)

getVisibleAssetsTagsCount

public static int getVisibleAssetsTagsCount(long groupId,
                                            String name)

mergeTags

public static void mergeTags(long fromTagId,
                             long toTagId)
                      throws PortalException
Throws:
PortalException

mergeTags

public static void mergeTags(long[] fromTagIds,
                             long toTagId)
                      throws PortalException
Throws:
PortalException

search

public static JSONArray search(long groupId,
                               String name,
                               int start,
                               int end)

search

public static JSONArray search(long[] groupIds,
                               String name,
                               int start,
                               int end)

updateTag

public static AssetTag updateTag(long tagId,
                                 String name,
                                 ServiceContext serviceContext)
                          throws PortalException
Throws:
PortalException

getService

public static AssetTagService getService()

Liferay 7.0-ce-b4