/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.asset.kernel.service; import aQute.bnd.annotation.ProviderType; import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; import com.liferay.portal.kernel.util.ReferenceRegistry; /** * Provides the local service utility for AssetTag. This utility wraps * {@link com.liferay.portlet.asset.service.impl.AssetTagLocalServiceImpl} and is the * primary access point for service operations in application layer code running * on the local server. Methods of this service will not have security checks * based on the propagated JAAS credentials because this service can only be * accessed from within the same VM. * * @author Brian Wing Shun Chan * @see AssetTagLocalService * @see com.liferay.portlet.asset.service.base.AssetTagLocalServiceBaseImpl * @see com.liferay.portlet.asset.service.impl.AssetTagLocalServiceImpl * @generated */ @ProviderType public class AssetTagLocalServiceUtil { /* * NOTE FOR DEVELOPERS: * * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetTagLocalServiceImpl} and rerun ServiceBuilder to regenerate this class. */ public static boolean hasAssetEntryAssetTag(long entryId, long tagId) { return getService().hasAssetEntryAssetTag(entryId, tagId); } public static boolean hasAssetEntryAssetTags(long entryId) { return getService().hasAssetEntryAssetTags(entryId); } /** * Returns <code>true</code> if the group contains an asset tag with the * name. * * @param groupId the primary key of the group * @param name the name of the asset tag * @return <code>true</code> if the group contains an asset tag with the name; <code>false</code> otherwise. */ public static boolean hasTag(long groupId, java.lang.String name) { return getService().hasTag(groupId, name); } /** * Adds the asset tag to the database. Also notifies the appropriate model listeners. * * @param assetTag the asset tag * @return the asset tag that was added */ public static com.liferay.asset.kernel.model.AssetTag addAssetTag( com.liferay.asset.kernel.model.AssetTag assetTag) { return getService().addAssetTag(assetTag); } /** * Adds an asset tag. * * @param userId the primary key of the user adding the asset tag * @param groupId the primary key of the group in which the asset tag is to be added * @param name the asset tag's name * @param serviceContext the service context to be applied * @return the asset tag that was added */ public static com.liferay.asset.kernel.model.AssetTag addTag(long userId, long groupId, java.lang.String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return getService().addTag(userId, groupId, name, serviceContext); } /** * Creates a new asset tag with the primary key. Does not add the asset tag to the database. * * @param tagId the primary key for the new asset tag * @return the new asset tag */ public static com.liferay.asset.kernel.model.AssetTag createAssetTag( long tagId) { return getService().createAssetTag(tagId); } /** * Decrements the number of assets to which the asset tag has been applied. * * @param tagId the primary key of the asset tag * @param classNameId the class name ID of the entity to which the asset tag had been applied * @return the asset tag */ public static com.liferay.asset.kernel.model.AssetTag decrementAssetCount( long tagId, long classNameId) throws com.liferay.portal.kernel.exception.PortalException { return getService().decrementAssetCount(tagId, classNameId); } /** * Deletes the asset tag from the database. Also notifies the appropriate model listeners. * * @param assetTag the asset tag * @return the asset tag that was removed */ public static com.liferay.asset.kernel.model.AssetTag deleteAssetTag( com.liferay.asset.kernel.model.AssetTag assetTag) { return getService().deleteAssetTag(assetTag); } /** * Deletes the asset tag with the primary key from the database. Also notifies the appropriate model listeners. * * @param tagId the primary key of the asset tag * @return the asset tag that was removed * @throws PortalException if a asset tag with the primary key could not be found */ public static com.liferay.asset.kernel.model.AssetTag deleteAssetTag( long tagId) throws com.liferay.portal.kernel.exception.PortalException { return getService().deleteAssetTag(tagId); } public static com.liferay.asset.kernel.model.AssetTag fetchAssetTag( long tagId) { return getService().fetchAssetTag(tagId); } /** * Returns the asset tag matching the UUID and group. * * @param uuid the asset tag's UUID * @param groupId the primary key of the group * @return the matching asset tag, or <code>null</code> if a matching asset tag could not be found */ public static com.liferay.asset.kernel.model.AssetTag fetchAssetTagByUuidAndGroupId( java.lang.String uuid, long groupId) { return getService().fetchAssetTagByUuidAndGroupId(uuid, groupId); } /** * Returns the asset tag with the name in the group. * * @param groupId the primary key of the group * @param name the asset tag's name * @return the asset tag with the name in the group or <code>null</code> if it could not be found */ public static com.liferay.asset.kernel.model.AssetTag fetchTag( long groupId, java.lang.String name) { return getService().fetchTag(groupId, name); } /** * Returns the asset tag with the primary key. * * @param tagId the primary key of the asset tag * @return the asset tag * @throws PortalException if a asset tag with the primary key could not be found */ public static com.liferay.asset.kernel.model.AssetTag getAssetTag( long tagId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getAssetTag(tagId); } /** * Returns the asset tag matching the UUID and group. * * @param uuid the asset tag's UUID * @param groupId the primary key of the group * @return the matching asset tag * @throws PortalException if a matching asset tag could not be found */ public static com.liferay.asset.kernel.model.AssetTag getAssetTagByUuidAndGroupId( java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getAssetTagByUuidAndGroupId(uuid, groupId); } /** * Returns the asset tag with the name in the group. * * @param groupId the primary key of the group * @param name the name of the asset tag * @return the asset tag with the name in the group */ public static com.liferay.asset.kernel.model.AssetTag getTag(long groupId, java.lang.String name) throws com.liferay.portal.kernel.exception.PortalException { return getService().getTag(groupId, name); } /** * Returns the asset tag with the primary key. * * @param tagId the primary key of the asset tag * @return the asset tag with the primary key */ public static com.liferay.asset.kernel.model.AssetTag getTag(long tagId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getTag(tagId); } /** * Increments the number of assets to which the asset tag has been applied. * * @param tagId the primary key of the asset tag * @param classNameId the class name ID of the entity to which the asset tag is being applied * @return the asset tag */ public static com.liferay.asset.kernel.model.AssetTag incrementAssetCount( long tagId, long classNameId) throws com.liferay.portal.kernel.exception.PortalException { return getService().incrementAssetCount(tagId, classNameId); } /** * Updates the asset tag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. * * @param assetTag the asset tag * @return the asset tag that was updated */ public static com.liferay.asset.kernel.model.AssetTag updateAssetTag( com.liferay.asset.kernel.model.AssetTag assetTag) { return getService().updateAssetTag(assetTag); } public static com.liferay.asset.kernel.model.AssetTag updateTag( long userId, long tagId, java.lang.String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return getService().updateTag(userId, tagId, name, serviceContext); } public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { return getService().getActionableDynamicQuery(); } public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { return getService().dynamicQuery(); } public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery( com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) { return getService().getExportActionableDynamicQuery(portletDataContext); } public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { return getService().getIndexableActionableDynamicQuery(); } /** * @throws PortalException */ public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel( com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException { return getService().deletePersistedModel(persistedModel); } public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel( java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException { return getService().getPersistedModel(primaryKeyObj); } public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetTag> searchTags( long[] groupIds, java.lang.String name, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException { return getService().searchTags(groupIds, name, start, end, sort); } public static int getAssetEntryAssetTagsCount(long entryId) { return getService().getAssetEntryAssetTagsCount(entryId); } /** * Returns the number of asset tags. * * @return the number of asset tags */ public static int getAssetTagsCount() { return getService().getAssetTagsCount(); } /** * Returns the number of asset tags in the group. * * @param groupId the primary key of the group * @return the number of asset tags in the group */ public static int getGroupTagsCount(long groupId) { return getService().getGroupTagsCount(groupId); } public static int getTagsSize(long groupId, long classNameId, java.lang.String name) { return getService().getTagsSize(groupId, classNameId, name); } /** * Returns the OSGi service identifier. * * @return the OSGi service identifier */ public static java.lang.String getOSGiServiceIdentifier() { return getService().getOSGiServiceIdentifier(); } /** * Returns the names of all the asset tags. * * @return the names of all the asset tags */ public static java.lang.String[] getTagNames() { return getService().getTagNames(); } /** * Returns the names of the asset tags of the entity * * @param className the class name of the entity * @param classPK the primary key of the entity * @return the names of the asset tags of the entity */ public static java.lang.String[] getTagNames(java.lang.String className, long classPK) { return getService().getTagNames(className, classPK); } /** * Returns the names of the asset tags of the entity. * * @param classNameId the class name ID of the entity * @param classPK the primary key of the entity * @return the names of the asset tags of the entity */ public static java.lang.String[] getTagNames(long classNameId, long classPK) { return getService().getTagNames(classNameId, classPK); } /** * Returns the asset tags matching the group and names, creating new asset * tags matching the names if the group doesn't already have them. * * <p> * For each name, if an asset tag with the name doesn't already exist in the * group, this method creates a new asset tag with the name in the group. * </p> * * @param userId the primary key of the user checking the asset tags * @param group the group in which to check the asset tags * @param names the asset tag names * @return the asset tags matching the group and names and new asset tags matching the names that don't already exist in the group */ public static java.util.List<com.liferay.asset.kernel.model.AssetTag> checkTags( long userId, com.liferay.portal.kernel.model.Group group, java.lang.String[] names) throws com.liferay.portal.kernel.exception.PortalException { return getService().checkTags(userId, group, names); } /** * Returns the asset tags matching the group and names, creating new asset * tags matching the names if the group doesn't already have them. * * @param userId the primary key of the user checking the asset tags * @param groupId the primary key of the group in which check the asset tags * @param names the asset tag names * @return the asset tags matching the group and names and new asset tags matching the names that don't already exist in the group */ public static java.util.List<com.liferay.asset.kernel.model.AssetTag> checkTags( long userId, long groupId, java.lang.String[] names) throws com.liferay.portal.kernel.exception.PortalException { return getService().checkTags(userId, groupId, names); } /** * Performs a dynamic query on the database and returns the matching rows. * * @param dynamicQuery the dynamic query * @return the matching rows */ public static <T> java.util.List<T> dynamicQuery( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { return getService().dynamicQuery(dynamicQuery); } /** * Performs a dynamic query on the database and returns a range of the matching rows. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param dynamicQuery the dynamic query * @param start the lower bound of the range of model instances * @param end the upper bound of the range of model instances (not inclusive) * @return the range of matching rows */ public static <T> java.util.List<T> dynamicQuery( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) { return getService().dynamicQuery(dynamicQuery, start, end); } /** * Performs a dynamic query on the database and returns an ordered range of the matching rows. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param dynamicQuery the dynamic query * @param start the lower bound of the range of model instances * @param end the upper bound of the range of model instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching rows */ public static <T> java.util.List<T> dynamicQuery( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { return getService() .dynamicQuery(dynamicQuery, start, end, orderByComparator); } public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getAssetEntryAssetTags( long entryId) { return getService().getAssetEntryAssetTags(entryId); } public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getAssetEntryAssetTags( long entryId, int start, int end) { return getService().getAssetEntryAssetTags(entryId, start, end); } public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getAssetEntryAssetTags( long entryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) { return getService() .getAssetEntryAssetTags(entryId, start, end, orderByComparator); } /** * Returns a range of all the asset tags. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @return the range of asset tags */ public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getAssetTags( int start, int end) { return getService().getAssetTags(start, end); } /** * Returns all the asset tags matching the UUID and company. * * @param uuid the UUID of the asset tags * @param companyId the primary key of the company * @return the matching asset tags, or an empty list if no matches were found */ public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getAssetTagsByUuidAndCompanyId( java.lang.String uuid, long companyId) { return getService().getAssetTagsByUuidAndCompanyId(uuid, companyId); } /** * Returns a range of asset tags matching the UUID and company. * * @param uuid the UUID of the asset tags * @param companyId the primary key of the company * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the range of matching asset tags, or an empty list if no matches were found */ public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getAssetTagsByUuidAndCompanyId( java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) { return getService() .getAssetTagsByUuidAndCompanyId(uuid, companyId, start, end, orderByComparator); } /** * Returns the asset tags of the asset entry. * * @param entryId the primary key of the asset entry * @return the asset tags of the asset entry */ public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getEntryTags( long entryId) { return getService().getEntryTags(entryId); } /** * Returns the asset tags in the group. * * @param groupId the primary key of the group * @return the asset tags in the group */ public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getGroupTags( long groupId) { return getService().getGroupTags(groupId); } /** * Returns a range of all the asset tags in the group. * * @param groupId the primary key of the group * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @return the range of matching asset tags */ public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getGroupTags( long groupId, int start, int end) { return getService().getGroupTags(groupId, start, end); } /** * Returns the asset tags in the groups. * * @param groupIds the primary keys of the groups * @return the asset tags in the groups */ public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getGroupsTags( long[] groupIds) { return getService().getGroupsTags(groupIds); } public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getSocialActivityCounterOffsetTags( long groupId, java.lang.String socialActivityCounterName, int startOffset, int endOffset) { return getService() .getSocialActivityCounterOffsetTags(groupId, socialActivityCounterName, startOffset, endOffset); } public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getSocialActivityCounterPeriodTags( long groupId, java.lang.String socialActivityCounterName, int startPeriod, int endPeriod) { return getService() .getSocialActivityCounterPeriodTags(groupId, socialActivityCounterName, startPeriod, endPeriod); } /** * Returns all the asset tags. * * @return the asset tags */ public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags() { return getService().getTags(); } /** * Returns the asset tags of the entity. * * @param className the class name of the entity * @param classPK the primary key of the entity * @return the asset tags of the entity */ public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags( java.lang.String className, long classPK) { return getService().getTags(className, classPK); } /** * Returns the asset tags of the entity. * * @param classNameId the class name ID of the entity * @param classPK the primary key of the entity * @return the asset tags of the entity */ public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags( long classNameId, long classPK) { return getService().getTags(classNameId, classPK); } public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags( long groupId, long classNameId, java.lang.String name) { return getService().getTags(groupId, classNameId, name); } public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags( long groupId, long classNameId, java.lang.String name, int start, int end) { return getService().getTags(groupId, classNameId, name, start, end); } /** * Returns the asset tags in the group whose names match the pattern. * * @param groupId the primary key of the group * @param name the pattern to match * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @return the asset tags in the group whose names match the pattern */ public static java.util.List<com.liferay.asset.kernel.model.AssetTag> search( long groupId, java.lang.String name, int start, int end) { return getService().search(groupId, name, start, end); } /** * Returns the asset tags in the groups whose names match the pattern. * * @param groupIds the primary keys of the groups * @param name the pattern to match * @param start the lower bound of the range of asset tags * @param end the upper bound of the range of asset tags (not inclusive) * @return the asset tags in the groups whose names match the pattern */ public static java.util.List<com.liferay.asset.kernel.model.AssetTag> search( long[] groupIds, java.lang.String name, int start, int end) { return getService().search(groupIds, name, start, end); } /** * Returns the number of rows matching the dynamic query. * * @param dynamicQuery the dynamic query * @return the number of rows matching the dynamic query */ public static long dynamicQueryCount( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { return getService().dynamicQueryCount(dynamicQuery); } /** * Returns the number of rows matching the dynamic query. * * @param dynamicQuery the dynamic query * @param projection the projection to apply to the query * @return the number of rows matching the dynamic query */ public static long dynamicQueryCount( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) { return getService().dynamicQueryCount(dynamicQuery, projection); } /** * Returns the entryIds of the asset entries associated with the asset tag. * * @param tagId the tagId of the asset tag * @return long[] the entryIds of asset entries associated with the asset tag */ public static long[] getAssetEntryPrimaryKeys(long tagId) { return getService().getAssetEntryPrimaryKeys(tagId); } /** * Returns the primary keys of the asset tags with the names in the group. * * @param groupId the primary key of the group * @param names the names of the asset tags * @return the primary keys of the asset tags with the names in the group */ public static long[] getTagIds(long groupId, java.lang.String[] names) { return getService().getTagIds(groupId, names); } /** * Returns the primary keys of the asset tags with the name in the groups. * * @param groupIds the primary keys of the groups * @param name the name of the asset tags * @return the primary keys of the asset tags with the name in the groups */ public static long[] getTagIds(long[] groupIds, java.lang.String name) { return getService().getTagIds(groupIds, name); } /** * Returns the primary keys of the asset tags with the names in the groups. * * @param groupIds the primary keys of the groups * @param names the names of the asset tags * @return the primary keys of the asset tags with the names in the groups */ public static long[] getTagIds(long[] groupIds, java.lang.String[] names) { return getService().getTagIds(groupIds, names); } public static void addAssetEntryAssetTag(long entryId, com.liferay.asset.kernel.model.AssetTag assetTag) { getService().addAssetEntryAssetTag(entryId, assetTag); } public static void addAssetEntryAssetTag(long entryId, long tagId) { getService().addAssetEntryAssetTag(entryId, tagId); } public static void addAssetEntryAssetTags(long entryId, java.util.List<com.liferay.asset.kernel.model.AssetTag> assetTags) { getService().addAssetEntryAssetTags(entryId, assetTags); } public static void addAssetEntryAssetTags(long entryId, long[] tagIds) { getService().addAssetEntryAssetTags(entryId, tagIds); } public static void clearAssetEntryAssetTags(long entryId) { getService().clearAssetEntryAssetTags(entryId); } public static void deleteAssetEntryAssetTag(long entryId, com.liferay.asset.kernel.model.AssetTag assetTag) { getService().deleteAssetEntryAssetTag(entryId, assetTag); } public static void deleteAssetEntryAssetTag(long entryId, long tagId) { getService().deleteAssetEntryAssetTag(entryId, tagId); } public static void deleteAssetEntryAssetTags(long entryId, java.util.List<com.liferay.asset.kernel.model.AssetTag> assetTags) { getService().deleteAssetEntryAssetTags(entryId, assetTags); } public static void deleteAssetEntryAssetTags(long entryId, long[] tagIds) { getService().deleteAssetEntryAssetTags(entryId, tagIds); } /** * Deletes all asset tags in the group. * * @param groupId the primary key of the group in which to delete all asset tags */ public static void deleteGroupTags(long groupId) throws com.liferay.portal.kernel.exception.PortalException { getService().deleteGroupTags(groupId); } /** * Deletes the asset tag. * * @param tag the asset tag to be deleted */ public static void deleteTag(com.liferay.asset.kernel.model.AssetTag tag) throws com.liferay.portal.kernel.exception.PortalException { getService().deleteTag(tag); } /** * Deletes the asset tag. * * @param tagId the primary key of the asset tag */ public static void deleteTag(long tagId) throws com.liferay.portal.kernel.exception.PortalException { getService().deleteTag(tagId); } /** * Replaces all occurrences of the first asset tag with the second asset tag * and deletes the first asset tag. * * @param fromTagId the primary key of the asset tag to be replaced * @param toTagId the primary key of the asset tag to apply to the asset entries of the other asset tag */ public static void mergeTags(long fromTagId, long toTagId) throws com.liferay.portal.kernel.exception.PortalException { getService().mergeTags(fromTagId, toTagId); } public static void setAssetEntryAssetTags(long entryId, long[] tagIds) { getService().setAssetEntryAssetTags(entryId, tagIds); } public static AssetTagLocalService getService() { if (_service == null) { _service = (AssetTagLocalService)PortalBeanLocatorUtil.locate(AssetTagLocalService.class.getName()); ReferenceRegistry.registerReference(AssetTagLocalServiceUtil.class, "_service"); } return _service; } private static AssetTagLocalService _service; }