Package com.liferay.asset.kernel.service
Class AssetTagServiceUtil
Object
com.liferay.asset.kernel.service.AssetTagServiceUtil
Provides the remote service utility for AssetTag. This utility wraps
com.liferay.portlet.asset.service.impl.AssetTagServiceImpl
and is an
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.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AssetTag
addTag
(String externalReferenceCode, long groupId, String name, ServiceContext serviceContext) static void
deleteTag
(long tagId) static void
deleteTags
(long[] tagIds) static AssetTag
fetchAssetTagByExternalReferenceCode
(String externalReferenceCode, long groupId) static AssetTag
getAssetTagByExternalReferenceCode
(String externalReferenceCode, long groupId) getGroupsTags
(long[] groupIds) getGroupTags
(long groupId) getGroupTags
(long groupId, int start, int end, OrderByComparator<AssetTag> orderByComparator) static int
getGroupTagsCount
(long groupId) static AssetTagDisplay
getGroupTagsDisplay
(long groupId, String name, int start, int end) static String
Returns the OSGi service identifier.static AssetTagService
static AssetTag
getTag
(long tagId) getTags
(long[] groupIds, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator) getTags
(long groupId, long classNameId, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator) getTags
(long groupId, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator) static int
getTagsCount
(long[] groupIds, String name) static int
getTagsCount
(long groupId, String name) static int
getVisibleAssetsTagsCount
(long groupId, long classNameId, String name) static void
mergeTags
(long[] fromTagIds, long toTagId) static void
mergeTags
(long fromTagId, long toTagId) static JSONArray
static JSONArray
static void
setService
(AssetTagService service) static void
subscribeTag
(long userId, long groupId, long tagId) static void
unsubscribeTag
(long userId, long tagId) static AssetTag
updateTag
(String externalReferenceCode, long tagId, String name, ServiceContext serviceContext)
-
Constructor Details
-
AssetTagServiceUtil
public AssetTagServiceUtil()
-
-
Method Details
-
addTag
public static AssetTag addTag(String externalReferenceCode, long groupId, String name, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
deleteTag
- Throws:
PortalException
-
deleteTags
- Throws:
PortalException
-
fetchAssetTagByExternalReferenceCode
-
getAssetTagByExternalReferenceCode
public static AssetTag getAssetTagByExternalReferenceCode(String externalReferenceCode, long groupId) throws PortalException - Throws:
PortalException
-
getGroupsTags
-
getGroupTags
-
getGroupTags
public static List<AssetTag> getGroupTags(long groupId, int start, int end, OrderByComparator<AssetTag> orderByComparator) -
getGroupTagsCount
public static int getGroupTagsCount(long groupId) -
getGroupTagsDisplay
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getTag
- Throws:
PortalException
-
getTags
-
getTags
public static List<AssetTag> getTags(long groupId, long classNameId, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator) -
getTags
-
getTags
public static List<AssetTag> getTags(long groupId, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator) -
getTags
-
getTags
public static List<AssetTag> getTags(long[] groupIds, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator) -
getTags
-
getTagsCount
-
getTagsCount
-
getVisibleAssetsTagsCount
-
mergeTags
- Throws:
PortalException
-
mergeTags
- Throws:
PortalException
-
search
-
search
-
subscribeTag
- Throws:
PortalException
-
unsubscribeTag
- Throws:
PortalException
-
updateTag
public static AssetTag updateTag(String externalReferenceCode, long tagId, String name, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
getService
-
setService
-