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 remote service utility for AssetTag. This utility wraps
024     * {@link com.liferay.portlet.asset.service.impl.AssetTagServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see AssetTagService
032     * @see com.liferay.portlet.asset.service.base.AssetTagServiceBaseImpl
033     * @see com.liferay.portlet.asset.service.impl.AssetTagServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class AssetTagServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetTagServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static com.liferay.asset.kernel.model.AssetTag addTag(long groupId,
044                    java.lang.String name,
045                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
046                    throws com.liferay.portal.kernel.exception.PortalException {
047                    return getService().addTag(groupId, name, serviceContext);
048            }
049    
050            public static com.liferay.asset.kernel.model.AssetTag getTag(long tagId)
051                    throws com.liferay.portal.kernel.exception.PortalException {
052                    return getService().getTag(tagId);
053            }
054    
055            public static com.liferay.asset.kernel.model.AssetTag updateTag(
056                    long tagId, java.lang.String name,
057                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
058                    throws com.liferay.portal.kernel.exception.PortalException {
059                    return getService().updateTag(tagId, name, serviceContext);
060            }
061    
062            public static com.liferay.asset.kernel.model.AssetTagDisplay getGroupTagsDisplay(
063                    long groupId, java.lang.String name, int start, int end) {
064                    return getService().getGroupTagsDisplay(groupId, name, start, end);
065            }
066    
067            public static com.liferay.portal.kernel.json.JSONArray search(
068                    long groupId, java.lang.String name, int start, int end) {
069                    return getService().search(groupId, name, start, end);
070            }
071    
072            public static com.liferay.portal.kernel.json.JSONArray search(
073                    long[] groupIds, java.lang.String name, int start, int end) {
074                    return getService().search(groupIds, name, start, end);
075            }
076    
077            public static int getGroupTagsCount(long groupId) {
078                    return getService().getGroupTagsCount(groupId);
079            }
080    
081            public static int getTagsCount(long groupId, java.lang.String name) {
082                    return getService().getTagsCount(groupId, name);
083            }
084    
085            public static int getVisibleAssetsTagsCount(long groupId,
086                    java.lang.String name) {
087                    return getService().getVisibleAssetsTagsCount(groupId, name);
088            }
089    
090            public static int getVisibleAssetsTagsCount(long groupId, long classNameId,
091                    java.lang.String name) {
092                    return getService().getVisibleAssetsTagsCount(groupId, classNameId, name);
093            }
094    
095            /**
096            * Returns the OSGi service identifier.
097            *
098            * @return the OSGi service identifier
099            */
100            public static java.lang.String getOSGiServiceIdentifier() {
101                    return getService().getOSGiServiceIdentifier();
102            }
103    
104            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getGroupTags(
105                    long groupId) {
106                    return getService().getGroupTags(groupId);
107            }
108    
109            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getGroupTags(
110                    long groupId, int start, int end,
111                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> obc) {
112                    return getService().getGroupTags(groupId, start, end, obc);
113            }
114    
115            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getGroupsTags(
116                    long[] groupIds) {
117                    return getService().getGroupsTags(groupIds);
118            }
119    
120            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags(
121                    java.lang.String className, long classPK) {
122                    return getService().getTags(className, classPK);
123            }
124    
125            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags(
126                    long groupId, java.lang.String name, int start, int end) {
127                    return getService().getTags(groupId, name, start, end);
128            }
129    
130            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags(
131                    long groupId, java.lang.String name, int start, int end,
132                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> obc) {
133                    return getService().getTags(groupId, name, start, end, obc);
134            }
135    
136            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags(
137                    long groupId, long classNameId, java.lang.String name) {
138                    return getService().getTags(groupId, classNameId, name);
139            }
140    
141            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags(
142                    long groupId, long classNameId, java.lang.String name, int start,
143                    int end,
144                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> obc) {
145                    return getService().getTags(groupId, classNameId, name, start, end, obc);
146            }
147    
148            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags(
149                    long[] groupIds, java.lang.String name, int start, int end) {
150                    return getService().getTags(groupIds, name, start, end);
151            }
152    
153            public static java.util.List<com.liferay.asset.kernel.model.AssetTag> getTags(
154                    long[] groupIds, java.lang.String name, int start, int end,
155                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> obc) {
156                    return getService().getTags(groupIds, name, start, end, obc);
157            }
158    
159            public static void deleteTag(long tagId)
160                    throws com.liferay.portal.kernel.exception.PortalException {
161                    getService().deleteTag(tagId);
162            }
163    
164            public static void deleteTags(long[] tagIds)
165                    throws com.liferay.portal.kernel.exception.PortalException {
166                    getService().deleteTags(tagIds);
167            }
168    
169            public static void mergeTags(long fromTagId, long toTagId)
170                    throws com.liferay.portal.kernel.exception.PortalException {
171                    getService().mergeTags(fromTagId, toTagId);
172            }
173    
174            public static void mergeTags(long[] fromTagIds, long toTagId)
175                    throws com.liferay.portal.kernel.exception.PortalException {
176                    getService().mergeTags(fromTagIds, toTagId);
177            }
178    
179            public static AssetTagService getService() {
180                    if (_service == null) {
181                            _service = (AssetTagService)PortalBeanLocatorUtil.locate(AssetTagService.class.getName());
182    
183                            ReferenceRegistry.registerReference(AssetTagServiceUtil.class,
184                                    "_service");
185                    }
186    
187                    return _service;
188            }
189    
190            private static AssetTagService _service;
191    }