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