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