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 AssetTagaddTag(String externalReferenceCode, long groupId, String name, ServiceContext serviceContext) static voiddeleteTag(long tagId) static voiddeleteTags(long[] tagIds) static AssetTagfetchAssetTagByExternalReferenceCode(String externalReferenceCode, long groupId) static AssetTaggetAssetTagByExternalReferenceCode(String externalReferenceCode, long groupId) getGroupsTags(long[] groupIds) getGroupTags(long groupId) getGroupTags(long groupId, int start, int end, OrderByComparator<AssetTag> orderByComparator) static intgetGroupTagsCount(long groupId) static AssetTagDisplaygetGroupTagsDisplay(long groupId, String name, int start, int end) static StringReturns the OSGi service identifier.static AssetTagServicestatic AssetTaggetTag(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 intgetTagsCount(long[] groupIds, String name) static intgetTagsCount(long groupId, String name) static intgetVisibleAssetsTagsCount(long groupId, long classNameId, String name) static voidmergeTags(long[] fromTagIds, long toTagId) static voidmergeTags(long fromTagId, long toTagId) static JSONArraystatic JSONArraystatic voidsetService(AssetTagService service) static voidsubscribeTag(long userId, long groupId, long tagId) static voidunsubscribeTag(long userId, long tagId) static AssetTagupdateTag(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
-