001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the local service utility for AssetTag. This utility wraps
024     * {@link com.liferay.portlet.asset.service.impl.AssetTagLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see AssetTagLocalService
032     * @see com.liferay.portlet.asset.service.base.AssetTagLocalServiceBaseImpl
033     * @see com.liferay.portlet.asset.service.impl.AssetTagLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class AssetTagLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * 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.
042             */
043    
044            /**
045            * Adds the asset tag to the database. Also notifies the appropriate model listeners.
046            *
047            * @param assetTag the asset tag
048            * @return the asset tag that was added
049            * @throws SystemException if a system exception occurred
050            */
051            public static com.liferay.portlet.asset.model.AssetTag addAssetTag(
052                    com.liferay.portlet.asset.model.AssetTag assetTag)
053                    throws com.liferay.portal.kernel.exception.SystemException {
054                    return getService().addAssetTag(assetTag);
055            }
056    
057            /**
058            * Creates a new asset tag with the primary key. Does not add the asset tag to the database.
059            *
060            * @param tagId the primary key for the new asset tag
061            * @return the new asset tag
062            */
063            public static com.liferay.portlet.asset.model.AssetTag createAssetTag(
064                    long tagId) {
065                    return getService().createAssetTag(tagId);
066            }
067    
068            /**
069            * Deletes the asset tag with the primary key from the database. Also notifies the appropriate model listeners.
070            *
071            * @param tagId the primary key of the asset tag
072            * @return the asset tag that was removed
073            * @throws PortalException if a asset tag with the primary key could not be found
074            * @throws SystemException if a system exception occurred
075            */
076            public static com.liferay.portlet.asset.model.AssetTag deleteAssetTag(
077                    long tagId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return getService().deleteAssetTag(tagId);
081            }
082    
083            /**
084            * Deletes the asset tag from the database. Also notifies the appropriate model listeners.
085            *
086            * @param assetTag the asset tag
087            * @return the asset tag that was removed
088            * @throws SystemException if a system exception occurred
089            */
090            public static com.liferay.portlet.asset.model.AssetTag deleteAssetTag(
091                    com.liferay.portlet.asset.model.AssetTag assetTag)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return getService().deleteAssetTag(assetTag);
094            }
095    
096            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097                    return getService().dynamicQuery();
098            }
099    
100            /**
101            * Performs a dynamic query on the database and returns the matching rows.
102            *
103            * @param dynamicQuery the dynamic query
104            * @return the matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public static java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110                    throws com.liferay.portal.kernel.exception.SystemException {
111                    return getService().dynamicQuery(dynamicQuery);
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns a range of the matching rows.
116            *
117            * <p>
118            * 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.
119            * </p>
120            *
121            * @param dynamicQuery the dynamic query
122            * @param start the lower bound of the range of model instances
123            * @param end the upper bound of the range of model instances (not inclusive)
124            * @return the range of matching rows
125            * @throws SystemException if a system exception occurred
126            */
127            @SuppressWarnings("rawtypes")
128            public static java.util.List dynamicQuery(
129                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130                    int end) throws com.liferay.portal.kernel.exception.SystemException {
131                    return getService().dynamicQuery(dynamicQuery, start, end);
132            }
133    
134            /**
135            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
136            *
137            * <p>
138            * 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.
139            * </p>
140            *
141            * @param dynamicQuery the dynamic query
142            * @param start the lower bound of the range of model instances
143            * @param end the upper bound of the range of model instances (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching rows
146            * @throws SystemException if a system exception occurred
147            */
148            @SuppressWarnings("rawtypes")
149            public static java.util.List dynamicQuery(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151                    int end,
152                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return getService()
155                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156            }
157    
158            /**
159            * Returns the number of rows that match the dynamic query.
160            *
161            * @param dynamicQuery the dynamic query
162            * @return the number of rows that match the dynamic query
163            * @throws SystemException if a system exception occurred
164            */
165            public static long dynamicQueryCount(
166                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    return getService().dynamicQueryCount(dynamicQuery);
169            }
170    
171            /**
172            * Returns the number of rows that match the dynamic query.
173            *
174            * @param dynamicQuery the dynamic query
175            * @param projection the projection to apply to the query
176            * @return the number of rows that match the dynamic query
177            * @throws SystemException if a system exception occurred
178            */
179            public static long dynamicQueryCount(
180                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181                    com.liferay.portal.kernel.dao.orm.Projection projection)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return getService().dynamicQueryCount(dynamicQuery, projection);
184            }
185    
186            public static com.liferay.portlet.asset.model.AssetTag fetchAssetTag(
187                    long tagId) throws com.liferay.portal.kernel.exception.SystemException {
188                    return getService().fetchAssetTag(tagId);
189            }
190    
191            /**
192            * Returns the asset tag with the primary key.
193            *
194            * @param tagId the primary key of the asset tag
195            * @return the asset tag
196            * @throws PortalException if a asset tag with the primary key could not be found
197            * @throws SystemException if a system exception occurred
198            */
199            public static com.liferay.portlet.asset.model.AssetTag getAssetTag(
200                    long tagId)
201                    throws com.liferay.portal.kernel.exception.PortalException,
202                            com.liferay.portal.kernel.exception.SystemException {
203                    return getService().getAssetTag(tagId);
204            }
205    
206            public static com.liferay.portal.model.PersistedModel getPersistedModel(
207                    java.io.Serializable primaryKeyObj)
208                    throws com.liferay.portal.kernel.exception.PortalException,
209                            com.liferay.portal.kernel.exception.SystemException {
210                    return getService().getPersistedModel(primaryKeyObj);
211            }
212    
213            /**
214            * Returns a range of all the asset tags.
215            *
216            * <p>
217            * 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.
218            * </p>
219            *
220            * @param start the lower bound of the range of asset tags
221            * @param end the upper bound of the range of asset tags (not inclusive)
222            * @return the range of asset tags
223            * @throws SystemException if a system exception occurred
224            */
225            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
226                    int start, int end)
227                    throws com.liferay.portal.kernel.exception.SystemException {
228                    return getService().getAssetTags(start, end);
229            }
230    
231            /**
232            * Returns the number of asset tags.
233            *
234            * @return the number of asset tags
235            * @throws SystemException if a system exception occurred
236            */
237            public static int getAssetTagsCount()
238                    throws com.liferay.portal.kernel.exception.SystemException {
239                    return getService().getAssetTagsCount();
240            }
241    
242            /**
243            * Updates the asset tag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
244            *
245            * @param assetTag the asset tag
246            * @return the asset tag that was updated
247            * @throws SystemException if a system exception occurred
248            */
249            public static com.liferay.portlet.asset.model.AssetTag updateAssetTag(
250                    com.liferay.portlet.asset.model.AssetTag assetTag)
251                    throws com.liferay.portal.kernel.exception.SystemException {
252                    return getService().updateAssetTag(assetTag);
253            }
254    
255            /**
256            * @throws SystemException if a system exception occurred
257            */
258            public static void addAssetEntryAssetTag(long entryId, long tagId)
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    getService().addAssetEntryAssetTag(entryId, tagId);
261            }
262    
263            /**
264            * @throws SystemException if a system exception occurred
265            */
266            public static void addAssetEntryAssetTag(long entryId,
267                    com.liferay.portlet.asset.model.AssetTag assetTag)
268                    throws com.liferay.portal.kernel.exception.SystemException {
269                    getService().addAssetEntryAssetTag(entryId, assetTag);
270            }
271    
272            /**
273            * @throws SystemException if a system exception occurred
274            */
275            public static void addAssetEntryAssetTags(long entryId, long[] tagIds)
276                    throws com.liferay.portal.kernel.exception.SystemException {
277                    getService().addAssetEntryAssetTags(entryId, tagIds);
278            }
279    
280            /**
281            * @throws SystemException if a system exception occurred
282            */
283            public static void addAssetEntryAssetTags(long entryId,
284                    java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
285                    throws com.liferay.portal.kernel.exception.SystemException {
286                    getService().addAssetEntryAssetTags(entryId, AssetTags);
287            }
288    
289            /**
290            * @throws SystemException if a system exception occurred
291            */
292            public static void clearAssetEntryAssetTags(long entryId)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    getService().clearAssetEntryAssetTags(entryId);
295            }
296    
297            /**
298            * @throws SystemException if a system exception occurred
299            */
300            public static void deleteAssetEntryAssetTag(long entryId, long tagId)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    getService().deleteAssetEntryAssetTag(entryId, tagId);
303            }
304    
305            /**
306            * @throws SystemException if a system exception occurred
307            */
308            public static void deleteAssetEntryAssetTag(long entryId,
309                    com.liferay.portlet.asset.model.AssetTag assetTag)
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    getService().deleteAssetEntryAssetTag(entryId, assetTag);
312            }
313    
314            /**
315            * @throws SystemException if a system exception occurred
316            */
317            public static void deleteAssetEntryAssetTags(long entryId, long[] tagIds)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    getService().deleteAssetEntryAssetTags(entryId, tagIds);
320            }
321    
322            /**
323            * @throws SystemException if a system exception occurred
324            */
325            public static void deleteAssetEntryAssetTags(long entryId,
326                    java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
327                    throws com.liferay.portal.kernel.exception.SystemException {
328                    getService().deleteAssetEntryAssetTags(entryId, AssetTags);
329            }
330    
331            /**
332            * @throws SystemException if a system exception occurred
333            */
334            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
335                    long entryId)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    return getService().getAssetEntryAssetTags(entryId);
338            }
339    
340            /**
341            * @throws SystemException if a system exception occurred
342            */
343            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
344                    long entryId, int start, int end)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return getService().getAssetEntryAssetTags(entryId, start, end);
347            }
348    
349            /**
350            * @throws SystemException if a system exception occurred
351            */
352            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
353                    long entryId, int start, int end,
354                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return getService()
357                                       .getAssetEntryAssetTags(entryId, start, end,
358                            orderByComparator);
359            }
360    
361            /**
362            * @throws SystemException if a system exception occurred
363            */
364            public static int getAssetEntryAssetTagsCount(long entryId)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return getService().getAssetEntryAssetTagsCount(entryId);
367            }
368    
369            /**
370            * @throws SystemException if a system exception occurred
371            */
372            public static boolean hasAssetEntryAssetTag(long entryId, long tagId)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return getService().hasAssetEntryAssetTag(entryId, tagId);
375            }
376    
377            /**
378            * @throws SystemException if a system exception occurred
379            */
380            public static boolean hasAssetEntryAssetTags(long entryId)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return getService().hasAssetEntryAssetTags(entryId);
383            }
384    
385            /**
386            * @throws SystemException if a system exception occurred
387            */
388            public static void setAssetEntryAssetTags(long entryId, long[] tagIds)
389                    throws com.liferay.portal.kernel.exception.SystemException {
390                    getService().setAssetEntryAssetTags(entryId, tagIds);
391            }
392    
393            /**
394            * Returns the Spring bean ID for this bean.
395            *
396            * @return the Spring bean ID for this bean
397            */
398            public static java.lang.String getBeanIdentifier() {
399                    return getService().getBeanIdentifier();
400            }
401    
402            /**
403            * Sets the Spring bean ID for this bean.
404            *
405            * @param beanIdentifier the Spring bean ID for this bean
406            */
407            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
408                    getService().setBeanIdentifier(beanIdentifier);
409            }
410    
411            public static com.liferay.portlet.asset.model.AssetTag addTag(long userId,
412                    java.lang.String name, java.lang.String[] tagProperties,
413                    com.liferay.portal.service.ServiceContext serviceContext)
414                    throws com.liferay.portal.kernel.exception.PortalException,
415                            com.liferay.portal.kernel.exception.SystemException {
416                    return getService().addTag(userId, name, tagProperties, serviceContext);
417            }
418    
419            public static void addTagResources(
420                    com.liferay.portlet.asset.model.AssetTag tag,
421                    boolean addGroupPermissions, boolean addGuestPermissions)
422                    throws com.liferay.portal.kernel.exception.PortalException,
423                            com.liferay.portal.kernel.exception.SystemException {
424                    getService()
425                            .addTagResources(tag, addGroupPermissions, addGuestPermissions);
426            }
427    
428            public static void addTagResources(
429                    com.liferay.portlet.asset.model.AssetTag tag,
430                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
431                    throws com.liferay.portal.kernel.exception.PortalException,
432                            com.liferay.portal.kernel.exception.SystemException {
433                    getService().addTagResources(tag, groupPermissions, guestPermissions);
434            }
435    
436            /**
437            * Returns the tags matching the group and names, creating new tags with the
438            * names if the group doesn't already have them.
439            *
440            * <p>
441            * For each name, if a tag with that name doesn't already exist for the
442            * group, this method creates a new tag with that name for the group. If a
443            * tag with that name already exists in the company group, this method
444            * copies that company group's tag's properties to the group's new tag.
445            * </p>
446            *
447            * @param userId the primary key of the user
448            * @param group ID the primary key of the tag's group
449            * @param names the tag names
450            * @return the tags matching the group and names and new tags matching the
451            names that don't already exist for the group
452            * @throws PortalException if a matching group could not be found, if the
453            tag's key or value were invalid, or if a portal exception
454            occurred
455            * @throws SystemException if a system exception occurred
456            */
457            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> checkTags(
458                    long userId, com.liferay.portal.model.Group group,
459                    java.lang.String[] names)
460                    throws com.liferay.portal.kernel.exception.PortalException,
461                            com.liferay.portal.kernel.exception.SystemException {
462                    return getService().checkTags(userId, group, names);
463            }
464    
465            public static void checkTags(long userId, long groupId,
466                    java.lang.String[] names)
467                    throws com.liferay.portal.kernel.exception.PortalException,
468                            com.liferay.portal.kernel.exception.SystemException {
469                    getService().checkTags(userId, groupId, names);
470            }
471    
472            public static com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
473                    long tagId, long classNameId)
474                    throws com.liferay.portal.kernel.exception.PortalException,
475                            com.liferay.portal.kernel.exception.SystemException {
476                    return getService().decrementAssetCount(tagId, classNameId);
477            }
478    
479            public static void deleteGroupTags(long groupId)
480                    throws com.liferay.portal.kernel.exception.PortalException,
481                            com.liferay.portal.kernel.exception.SystemException {
482                    getService().deleteGroupTags(groupId);
483            }
484    
485            public static void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
486                    throws com.liferay.portal.kernel.exception.PortalException,
487                            com.liferay.portal.kernel.exception.SystemException {
488                    getService().deleteTag(tag);
489            }
490    
491            public static void deleteTag(long tagId)
492                    throws com.liferay.portal.kernel.exception.PortalException,
493                            com.liferay.portal.kernel.exception.SystemException {
494                    getService().deleteTag(tagId);
495            }
496    
497            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
498                    long entryId)
499                    throws com.liferay.portal.kernel.exception.SystemException {
500                    return getService().getEntryTags(entryId);
501            }
502    
503            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
504                    long[] groupIds)
505                    throws com.liferay.portal.kernel.exception.SystemException {
506                    return getService().getGroupsTags(groupIds);
507            }
508    
509            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
510                    long groupId)
511                    throws com.liferay.portal.kernel.exception.SystemException {
512                    return getService().getGroupTags(groupId);
513            }
514    
515            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
516                    long groupId, int start, int end)
517                    throws com.liferay.portal.kernel.exception.SystemException {
518                    return getService().getGroupTags(groupId, start, end);
519            }
520    
521            public static int getGroupTagsCount(long groupId)
522                    throws com.liferay.portal.kernel.exception.SystemException {
523                    return getService().getGroupTagsCount(groupId);
524            }
525    
526            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(
527                    long groupId, java.lang.String socialActivityCounterName,
528                    int startOffset, int endOffset)
529                    throws com.liferay.portal.kernel.exception.SystemException {
530                    return getService()
531                                       .getSocialActivityCounterOffsetTags(groupId,
532                            socialActivityCounterName, startOffset, endOffset);
533            }
534    
535            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterPeriodTags(
536                    long groupId, java.lang.String socialActivityCounterName,
537                    int startPeriod, int endPeriod)
538                    throws com.liferay.portal.kernel.exception.SystemException {
539                    return getService()
540                                       .getSocialActivityCounterPeriodTags(groupId,
541                            socialActivityCounterName, startPeriod, endPeriod);
542            }
543    
544            public static com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
545                    throws com.liferay.portal.kernel.exception.PortalException,
546                            com.liferay.portal.kernel.exception.SystemException {
547                    return getService().getTag(tagId);
548            }
549    
550            public static com.liferay.portlet.asset.model.AssetTag getTag(
551                    long groupId, java.lang.String name)
552                    throws com.liferay.portal.kernel.exception.PortalException,
553                            com.liferay.portal.kernel.exception.SystemException {
554                    return getService().getTag(groupId, name);
555            }
556    
557            public static long[] getTagIds(long groupId, java.lang.String[] names)
558                    throws com.liferay.portal.kernel.exception.PortalException,
559                            com.liferay.portal.kernel.exception.SystemException {
560                    return getService().getTagIds(groupId, names);
561            }
562    
563            public static long[] getTagIds(long[] groupIds, java.lang.String name)
564                    throws com.liferay.portal.kernel.exception.PortalException,
565                            com.liferay.portal.kernel.exception.SystemException {
566                    return getService().getTagIds(groupIds, name);
567            }
568    
569            public static long[] getTagIds(long[] groupIds, java.lang.String[] names)
570                    throws com.liferay.portal.kernel.exception.PortalException,
571                            com.liferay.portal.kernel.exception.SystemException {
572                    return getService().getTagIds(groupIds, names);
573            }
574    
575            public static java.lang.String[] getTagNames()
576                    throws com.liferay.portal.kernel.exception.SystemException {
577                    return getService().getTagNames();
578            }
579    
580            public static java.lang.String[] getTagNames(long classNameId, long classPK)
581                    throws com.liferay.portal.kernel.exception.SystemException {
582                    return getService().getTagNames(classNameId, classPK);
583            }
584    
585            public static java.lang.String[] getTagNames(java.lang.String className,
586                    long classPK)
587                    throws com.liferay.portal.kernel.exception.SystemException {
588                    return getService().getTagNames(className, classPK);
589            }
590    
591            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
592                    throws com.liferay.portal.kernel.exception.SystemException {
593                    return getService().getTags();
594            }
595    
596            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
597                    long classNameId, long classPK)
598                    throws com.liferay.portal.kernel.exception.SystemException {
599                    return getService().getTags(classNameId, classPK);
600            }
601    
602            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
603                    long groupId, long classNameId, java.lang.String name)
604                    throws com.liferay.portal.kernel.exception.SystemException {
605                    return getService().getTags(groupId, classNameId, name);
606            }
607    
608            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
609                    long groupId, long classNameId, java.lang.String name, int start,
610                    int end) throws com.liferay.portal.kernel.exception.SystemException {
611                    return getService().getTags(groupId, classNameId, name, start, end);
612            }
613    
614            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
615                    java.lang.String className, long classPK)
616                    throws com.liferay.portal.kernel.exception.SystemException {
617                    return getService().getTags(className, classPK);
618            }
619    
620            public static int getTagsSize(long groupId, long classNameId,
621                    java.lang.String name)
622                    throws com.liferay.portal.kernel.exception.SystemException {
623                    return getService().getTagsSize(groupId, classNameId, name);
624            }
625    
626            public static boolean hasTag(long groupId, java.lang.String name)
627                    throws com.liferay.portal.kernel.exception.PortalException,
628                            com.liferay.portal.kernel.exception.SystemException {
629                    return getService().hasTag(groupId, name);
630            }
631    
632            public static com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
633                    long tagId, long classNameId)
634                    throws com.liferay.portal.kernel.exception.PortalException,
635                            com.liferay.portal.kernel.exception.SystemException {
636                    return getService().incrementAssetCount(tagId, classNameId);
637            }
638    
639            public static void mergeTags(long fromTagId, long toTagId,
640                    boolean overrideProperties)
641                    throws com.liferay.portal.kernel.exception.PortalException,
642                            com.liferay.portal.kernel.exception.SystemException {
643                    getService().mergeTags(fromTagId, toTagId, overrideProperties);
644            }
645    
646            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
647                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
648                    int start, int end)
649                    throws com.liferay.portal.kernel.exception.SystemException {
650                    return getService().search(groupId, name, tagProperties, start, end);
651            }
652    
653            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
654                    long[] groupIds, java.lang.String name,
655                    java.lang.String[] tagProperties, int start, int end)
656                    throws com.liferay.portal.kernel.exception.SystemException {
657                    return getService().search(groupIds, name, tagProperties, start, end);
658            }
659    
660            public static com.liferay.portlet.asset.model.AssetTag updateTag(
661                    long userId, long tagId, java.lang.String name,
662                    java.lang.String[] tagProperties,
663                    com.liferay.portal.service.ServiceContext serviceContext)
664                    throws com.liferay.portal.kernel.exception.PortalException,
665                            com.liferay.portal.kernel.exception.SystemException {
666                    return getService()
667                                       .updateTag(userId, tagId, name, tagProperties, serviceContext);
668            }
669    
670            public static AssetTagLocalService getService() {
671                    if (_service == null) {
672                            _service = (AssetTagLocalService)PortalBeanLocatorUtil.locate(AssetTagLocalService.class.getName());
673    
674                            ReferenceRegistry.registerReference(AssetTagLocalServiceUtil.class,
675                                    "_service");
676                    }
677    
678                    return _service;
679            }
680    
681            /**
682             * @deprecated As of 6.2.0
683             */
684            public void setService(AssetTagLocalService service) {
685            }
686    
687            private static AssetTagLocalService _service;
688    }