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