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