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