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 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    
044            /**
045            * Returns the Spring bean ID for this bean.
046            *
047            * @return the Spring bean ID for this bean
048            */
049            public static java.lang.String getBeanIdentifier() {
050                    return getService().getBeanIdentifier();
051            }
052    
053            /**
054            * Sets the Spring bean ID for this bean.
055            *
056            * @param beanIdentifier the Spring bean ID for this bean
057            */
058            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059                    getService().setBeanIdentifier(beanIdentifier);
060            }
061    
062            public static com.liferay.portlet.asset.model.AssetTag addTag(
063                    java.lang.String name, java.lang.String[] tagProperties,
064                    com.liferay.portal.service.ServiceContext serviceContext)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    return getService().addTag(name, tagProperties, serviceContext);
068            }
069    
070            public static void deleteTag(long tagId)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    getService().deleteTag(tagId);
074            }
075    
076            public static void deleteTags(long[] tagIds)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException {
079                    getService().deleteTags(tagIds);
080            }
081    
082            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
083                    long[] groupIds)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return getService().getGroupsTags(groupIds);
086            }
087    
088            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
089                    long groupId)
090                    throws com.liferay.portal.kernel.exception.SystemException {
091                    return getService().getGroupTags(groupId);
092            }
093    
094            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
095                    long groupId, int start, int end,
096                    com.liferay.portal.kernel.util.OrderByComparator obc)
097                    throws com.liferay.portal.kernel.exception.SystemException {
098                    return getService().getGroupTags(groupId, start, end, obc);
099            }
100    
101            public static int getGroupTagsCount(long groupId)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return getService().getGroupTagsCount(groupId);
104            }
105    
106            public static com.liferay.portlet.asset.model.AssetTagDisplay getGroupTagsDisplay(
107                    long groupId, java.lang.String name, int start, int end)
108                    throws com.liferay.portal.kernel.exception.SystemException {
109                    return getService().getGroupTagsDisplay(groupId, name, start, end);
110            }
111    
112            /**
113            * @deprecated As of 6.2.0, replaced by {@link #getGroupTagsDisplay(long,
114            String, int, int)}
115            */
116            public static com.liferay.portal.kernel.json.JSONObject getJSONGroupTags(
117                    long groupId, java.lang.String name, int start, int end)
118                    throws com.liferay.portal.kernel.exception.PortalException,
119                            com.liferay.portal.kernel.exception.SystemException {
120                    return getService().getJSONGroupTags(groupId, name, start, end);
121            }
122    
123            public static com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
124                    throws com.liferay.portal.kernel.exception.PortalException,
125                            com.liferay.portal.kernel.exception.SystemException {
126                    return getService().getTag(tagId);
127            }
128    
129            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
130                    long groupId, long classNameId, java.lang.String name)
131                    throws com.liferay.portal.kernel.exception.SystemException {
132                    return getService().getTags(groupId, classNameId, name);
133            }
134    
135            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
136                    long groupId, long classNameId, java.lang.String name, int start,
137                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
138                    throws com.liferay.portal.kernel.exception.SystemException {
139                    return getService().getTags(groupId, classNameId, name, start, end, obc);
140            }
141    
142            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
143                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
144                    int start, int end)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return getService().getTags(groupId, name, tagProperties, start, end);
147            }
148    
149            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
150                    long[] groupIds, java.lang.String name,
151                    java.lang.String[] tagProperties, int start, int end)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return getService().getTags(groupIds, name, tagProperties, start, end);
154            }
155    
156            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
157                    java.lang.String className, long classPK)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException {
160                    return getService().getTags(className, classPK);
161            }
162    
163            public static int getTagsCount(long groupId, long classNameId,
164                    java.lang.String name)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getService().getTagsCount(groupId, classNameId, name);
167            }
168    
169            public static int getTagsCount(long groupId, java.lang.String name)
170                    throws com.liferay.portal.kernel.exception.SystemException {
171                    return getService().getTagsCount(groupId, name);
172            }
173    
174            public static int getTagsCount(long groupId, java.lang.String name,
175                    java.lang.String[] tagProperties)
176                    throws com.liferay.portal.kernel.exception.SystemException {
177                    return getService().getTagsCount(groupId, name, tagProperties);
178            }
179    
180            public static void mergeTags(long fromTagId, long toTagId,
181                    boolean overrideProperties)
182                    throws com.liferay.portal.kernel.exception.PortalException,
183                            com.liferay.portal.kernel.exception.SystemException {
184                    getService().mergeTags(fromTagId, toTagId, overrideProperties);
185            }
186    
187            public static void mergeTags(long[] fromTagIds, long toTagId,
188                    boolean overrideProperties)
189                    throws com.liferay.portal.kernel.exception.PortalException,
190                            com.liferay.portal.kernel.exception.SystemException {
191                    getService().mergeTags(fromTagIds, toTagId, overrideProperties);
192            }
193    
194            public static com.liferay.portal.kernel.json.JSONArray search(
195                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
196                    int start, int end)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return getService().search(groupId, name, tagProperties, start, end);
199            }
200    
201            public static com.liferay.portal.kernel.json.JSONArray search(
202                    long[] groupIds, java.lang.String name,
203                    java.lang.String[] tagProperties, int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return getService().search(groupIds, name, tagProperties, start, end);
206            }
207    
208            public static com.liferay.portlet.asset.model.AssetTag updateTag(
209                    long tagId, java.lang.String name, java.lang.String[] tagProperties,
210                    com.liferay.portal.service.ServiceContext serviceContext)
211                    throws com.liferay.portal.kernel.exception.PortalException,
212                            com.liferay.portal.kernel.exception.SystemException {
213                    return getService().updateTag(tagId, name, tagProperties, serviceContext);
214            }
215    
216            public static AssetTagService getService() {
217                    if (_service == null) {
218                            _service = (AssetTagService)PortalBeanLocatorUtil.locate(AssetTagService.class.getName());
219    
220                            ReferenceRegistry.registerReference(AssetTagServiceUtil.class,
221                                    "_service");
222                    }
223    
224                    return _service;
225            }
226    
227            /**
228             * @deprecated As of 6.2.0
229             */
230            public void setService(AssetTagService service) {
231            }
232    
233            private static AssetTagService _service;
234    }