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            /**
434            * Returns the tags matching the group and names, creating new tags with the
435            * names if the group doesn't already have them.
436            *
437            * <p>
438            * For each name, if a tag with that name doesn't already exist for the
439            * group, this method creates a new tag with that name for the group. If a
440            * tag with that name already exists in the company group, this method
441            * copies that company group's tag's properties to the group's new tag.
442            * </p>
443            *
444            * @param userId the primary key of the user
445            * @param group ID the primary key of the tag's group
446            * @param names the tag names
447            * @return the tags matching the group and names and new tags matching the
448            names that don't already exist for the group
449            * @throws PortalException if a matching group could not be found, if the
450            tag's key or value were invalid, or if a portal exception
451            occurred
452            * @throws SystemException if a system exception occurred
453            */
454            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> checkTags(
455                    long userId, com.liferay.portal.model.Group group,
456                    java.lang.String[] names)
457                    throws com.liferay.portal.kernel.exception.PortalException,
458                            com.liferay.portal.kernel.exception.SystemException {
459                    return getService().checkTags(userId, group, names);
460            }
461    
462            public static void checkTags(long userId, long groupId,
463                    java.lang.String[] names)
464                    throws com.liferay.portal.kernel.exception.PortalException,
465                            com.liferay.portal.kernel.exception.SystemException {
466                    getService().checkTags(userId, groupId, names);
467            }
468    
469            public static com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
470                    long tagId, long classNameId)
471                    throws com.liferay.portal.kernel.exception.PortalException,
472                            com.liferay.portal.kernel.exception.SystemException {
473                    return getService().decrementAssetCount(tagId, classNameId);
474            }
475    
476            public static void deleteGroupTags(long groupId)
477                    throws com.liferay.portal.kernel.exception.PortalException,
478                            com.liferay.portal.kernel.exception.SystemException {
479                    getService().deleteGroupTags(groupId);
480            }
481    
482            public static void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
483                    throws com.liferay.portal.kernel.exception.PortalException,
484                            com.liferay.portal.kernel.exception.SystemException {
485                    getService().deleteTag(tag);
486            }
487    
488            public static void deleteTag(long tagId)
489                    throws com.liferay.portal.kernel.exception.PortalException,
490                            com.liferay.portal.kernel.exception.SystemException {
491                    getService().deleteTag(tagId);
492            }
493    
494            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
495                    long entryId)
496                    throws com.liferay.portal.kernel.exception.SystemException {
497                    return getService().getEntryTags(entryId);
498            }
499    
500            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
501                    long[] groupIds)
502                    throws com.liferay.portal.kernel.exception.SystemException {
503                    return getService().getGroupsTags(groupIds);
504            }
505    
506            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
507                    long groupId)
508                    throws com.liferay.portal.kernel.exception.SystemException {
509                    return getService().getGroupTags(groupId);
510            }
511    
512            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
513                    long groupId, int start, int end)
514                    throws com.liferay.portal.kernel.exception.SystemException {
515                    return getService().getGroupTags(groupId, start, end);
516            }
517    
518            public static int getGroupTagsCount(long groupId)
519                    throws com.liferay.portal.kernel.exception.SystemException {
520                    return getService().getGroupTagsCount(groupId);
521            }
522    
523            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(
524                    long groupId, java.lang.String socialActivityCounterName,
525                    int startOffset, int endOffset)
526                    throws com.liferay.portal.kernel.exception.SystemException {
527                    return getService()
528                                       .getSocialActivityCounterOffsetTags(groupId,
529                            socialActivityCounterName, startOffset, endOffset);
530            }
531    
532            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterPeriodTags(
533                    long groupId, java.lang.String socialActivityCounterName,
534                    int startPeriod, int endPeriod)
535                    throws com.liferay.portal.kernel.exception.SystemException {
536                    return getService()
537                                       .getSocialActivityCounterPeriodTags(groupId,
538                            socialActivityCounterName, startPeriod, endPeriod);
539            }
540    
541            public static com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
542                    throws com.liferay.portal.kernel.exception.PortalException,
543                            com.liferay.portal.kernel.exception.SystemException {
544                    return getService().getTag(tagId);
545            }
546    
547            public static com.liferay.portlet.asset.model.AssetTag getTag(
548                    long groupId, java.lang.String name)
549                    throws com.liferay.portal.kernel.exception.PortalException,
550                            com.liferay.portal.kernel.exception.SystemException {
551                    return getService().getTag(groupId, name);
552            }
553    
554            public static long[] getTagIds(long groupId, java.lang.String[] names)
555                    throws com.liferay.portal.kernel.exception.PortalException,
556                            com.liferay.portal.kernel.exception.SystemException {
557                    return getService().getTagIds(groupId, names);
558            }
559    
560            public static long[] getTagIds(long[] groupIds, java.lang.String name)
561                    throws com.liferay.portal.kernel.exception.PortalException,
562                            com.liferay.portal.kernel.exception.SystemException {
563                    return getService().getTagIds(groupIds, name);
564            }
565    
566            public static long[] getTagIds(long[] groupIds, java.lang.String[] names)
567                    throws com.liferay.portal.kernel.exception.PortalException,
568                            com.liferay.portal.kernel.exception.SystemException {
569                    return getService().getTagIds(groupIds, names);
570            }
571    
572            public static java.lang.String[] getTagNames()
573                    throws com.liferay.portal.kernel.exception.SystemException {
574                    return getService().getTagNames();
575            }
576    
577            public static java.lang.String[] getTagNames(long classNameId, long classPK)
578                    throws com.liferay.portal.kernel.exception.SystemException {
579                    return getService().getTagNames(classNameId, classPK);
580            }
581    
582            public static java.lang.String[] getTagNames(java.lang.String className,
583                    long classPK)
584                    throws com.liferay.portal.kernel.exception.SystemException {
585                    return getService().getTagNames(className, classPK);
586            }
587    
588            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
589                    throws com.liferay.portal.kernel.exception.SystemException {
590                    return getService().getTags();
591            }
592    
593            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
594                    long classNameId, long classPK)
595                    throws com.liferay.portal.kernel.exception.SystemException {
596                    return getService().getTags(classNameId, classPK);
597            }
598    
599            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
600                    long groupId, long classNameId, java.lang.String name)
601                    throws com.liferay.portal.kernel.exception.SystemException {
602                    return getService().getTags(groupId, classNameId, name);
603            }
604    
605            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
606                    long groupId, long classNameId, java.lang.String name, int start,
607                    int end) throws com.liferay.portal.kernel.exception.SystemException {
608                    return getService().getTags(groupId, classNameId, name, start, end);
609            }
610    
611            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
612                    java.lang.String className, long classPK)
613                    throws com.liferay.portal.kernel.exception.SystemException {
614                    return getService().getTags(className, classPK);
615            }
616    
617            public static int getTagsSize(long groupId, long classNameId,
618                    java.lang.String name)
619                    throws com.liferay.portal.kernel.exception.SystemException {
620                    return getService().getTagsSize(groupId, classNameId, name);
621            }
622    
623            public static boolean hasTag(long groupId, java.lang.String name)
624                    throws com.liferay.portal.kernel.exception.PortalException,
625                            com.liferay.portal.kernel.exception.SystemException {
626                    return getService().hasTag(groupId, name);
627            }
628    
629            public static com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
630                    long tagId, long classNameId)
631                    throws com.liferay.portal.kernel.exception.PortalException,
632                            com.liferay.portal.kernel.exception.SystemException {
633                    return getService().incrementAssetCount(tagId, classNameId);
634            }
635    
636            public static void mergeTags(long fromTagId, long toTagId,
637                    boolean overrideProperties)
638                    throws com.liferay.portal.kernel.exception.PortalException,
639                            com.liferay.portal.kernel.exception.SystemException {
640                    getService().mergeTags(fromTagId, toTagId, overrideProperties);
641            }
642    
643            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
644                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
645                    int start, int end)
646                    throws com.liferay.portal.kernel.exception.SystemException {
647                    return getService().search(groupId, name, tagProperties, start, end);
648            }
649    
650            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
651                    long[] groupIds, java.lang.String name,
652                    java.lang.String[] tagProperties, int start, int end)
653                    throws com.liferay.portal.kernel.exception.SystemException {
654                    return getService().search(groupIds, name, tagProperties, start, end);
655            }
656    
657            public static com.liferay.portlet.asset.model.AssetTag updateTag(
658                    long userId, long tagId, java.lang.String name,
659                    java.lang.String[] tagProperties,
660                    com.liferay.portal.service.ServiceContext serviceContext)
661                    throws com.liferay.portal.kernel.exception.PortalException,
662                            com.liferay.portal.kernel.exception.SystemException {
663                    return getService()
664                                       .updateTag(userId, tagId, name, tagProperties, serviceContext);
665            }
666    
667            public static AssetTagLocalService getService() {
668                    if (_service == null) {
669                            _service = (AssetTagLocalService)PortalBeanLocatorUtil.locate(AssetTagLocalService.class.getName());
670    
671                            ReferenceRegistry.registerReference(AssetTagLocalServiceUtil.class,
672                                    "_service");
673                    }
674    
675                    return _service;
676            }
677    
678            /**
679             * @deprecated As of 6.2.0
680             */
681            public void setService(AssetTagLocalService service) {
682            }
683    
684            private static AssetTagLocalService _service;
685    }