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 AssetVocabulary. This utility wraps
024     * {@link com.liferay.portlet.asset.service.impl.AssetVocabularyServiceImpl} 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 AssetVocabularyService
032     * @see com.liferay.portlet.asset.service.base.AssetVocabularyServiceBaseImpl
033     * @see com.liferay.portlet.asset.service.impl.AssetVocabularyServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class AssetVocabularyServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetVocabularyServiceImpl} 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            /**
063            * @deprecated As of 6.1.0 {@link #addVocabulary(String, Map, Map, String,
064            ServiceContext)}
065            */
066            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
067                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
068                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
069                    java.lang.String settings,
070                    com.liferay.portal.service.ServiceContext serviceContext)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    return getService()
074                                       .addVocabulary(titleMap, descriptionMap, settings,
075                            serviceContext);
076            }
077    
078            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
079                    java.lang.String title,
080                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
081                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
082                    java.lang.String settings,
083                    com.liferay.portal.service.ServiceContext serviceContext)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException {
086                    return getService()
087                                       .addVocabulary(title, titleMap, descriptionMap, settings,
088                            serviceContext);
089            }
090    
091            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
092                    java.lang.String title,
093                    com.liferay.portal.service.ServiceContext serviceContext)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException {
096                    return getService().addVocabulary(title, serviceContext);
097            }
098    
099            /**
100            * @deprecated As of 6.2.0, Replaced by {@link #deleteVocabularies(long[],
101            ServiceContext)}
102            */
103            public static void deleteVocabularies(long[] vocabularyIds)
104                    throws com.liferay.portal.kernel.exception.PortalException,
105                            com.liferay.portal.kernel.exception.SystemException {
106                    getService().deleteVocabularies(vocabularyIds);
107            }
108    
109            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
110                    long[] vocabularyIds,
111                    com.liferay.portal.service.ServiceContext serviceContext)
112                    throws com.liferay.portal.kernel.exception.PortalException,
113                            com.liferay.portal.kernel.exception.SystemException {
114                    return getService().deleteVocabularies(vocabularyIds, serviceContext);
115            }
116    
117            public static void deleteVocabulary(long vocabularyId)
118                    throws com.liferay.portal.kernel.exception.PortalException,
119                            com.liferay.portal.kernel.exception.SystemException {
120                    getService().deleteVocabulary(vocabularyId);
121            }
122    
123            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
124                    long companyId)
125                    throws com.liferay.portal.kernel.exception.PortalException,
126                            com.liferay.portal.kernel.exception.SystemException {
127                    return getService().getCompanyVocabularies(companyId);
128            }
129    
130            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
131                    long[] groupIds)
132                    throws com.liferay.portal.kernel.exception.PortalException,
133                            com.liferay.portal.kernel.exception.SystemException {
134                    return getService().getGroupsVocabularies(groupIds);
135            }
136    
137            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
138                    long[] groupIds, java.lang.String className)
139                    throws com.liferay.portal.kernel.exception.PortalException,
140                            com.liferay.portal.kernel.exception.SystemException {
141                    return getService().getGroupsVocabularies(groupIds, className);
142            }
143    
144            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
145                    long groupId)
146                    throws com.liferay.portal.kernel.exception.PortalException,
147                            com.liferay.portal.kernel.exception.SystemException {
148                    return getService().getGroupVocabularies(groupId);
149            }
150    
151            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
152                    long groupId, boolean createDefaultVocabulary)
153                    throws com.liferay.portal.kernel.exception.PortalException,
154                            com.liferay.portal.kernel.exception.SystemException {
155                    return getService()
156                                       .getGroupVocabularies(groupId, createDefaultVocabulary);
157            }
158    
159            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
160                    long groupId, int start, int end,
161                    com.liferay.portal.kernel.util.OrderByComparator obc)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getService().getGroupVocabularies(groupId, start, end, obc);
164            }
165    
166            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
167                    long groupId, java.lang.String name, int start, int end,
168                    com.liferay.portal.kernel.util.OrderByComparator obc)
169                    throws com.liferay.portal.kernel.exception.SystemException {
170                    return getService().getGroupVocabularies(groupId, name, start, end, obc);
171            }
172    
173            public static int getGroupVocabulariesCount(long groupId)
174                    throws com.liferay.portal.kernel.exception.SystemException {
175                    return getService().getGroupVocabulariesCount(groupId);
176            }
177    
178            public static int getGroupVocabulariesCount(long groupId,
179                    java.lang.String name)
180                    throws com.liferay.portal.kernel.exception.SystemException {
181                    return getService().getGroupVocabulariesCount(groupId, name);
182            }
183    
184            public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
185                    long groupId, java.lang.String title, int start, int end,
186                    boolean addDefaultVocabulary,
187                    com.liferay.portal.kernel.util.OrderByComparator obc)
188                    throws com.liferay.portal.kernel.exception.PortalException,
189                            com.liferay.portal.kernel.exception.SystemException {
190                    return getService()
191                                       .getGroupVocabulariesDisplay(groupId, title, start, end,
192                            addDefaultVocabulary, obc);
193            }
194    
195            public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
196                    long groupId, java.lang.String name, int start, int end,
197                    com.liferay.portal.kernel.util.OrderByComparator obc)
198                    throws com.liferay.portal.kernel.exception.PortalException,
199                            com.liferay.portal.kernel.exception.SystemException {
200                    return getService()
201                                       .getGroupVocabulariesDisplay(groupId, name, start, end, obc);
202            }
203    
204            /**
205            * @deprecated As of 6.2.0, with no direct replacement
206            */
207            public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
208                    long groupId, java.lang.String name, int start, int end,
209                    com.liferay.portal.kernel.util.OrderByComparator obc)
210                    throws com.liferay.portal.kernel.exception.PortalException,
211                            com.liferay.portal.kernel.exception.SystemException {
212                    return getService()
213                                       .getJSONGroupVocabularies(groupId, name, start, end, obc);
214            }
215    
216            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
217                    long[] vocabularyIds)
218                    throws com.liferay.portal.kernel.exception.PortalException,
219                            com.liferay.portal.kernel.exception.SystemException {
220                    return getService().getVocabularies(vocabularyIds);
221            }
222    
223            public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
224                    long vocabularyId)
225                    throws com.liferay.portal.kernel.exception.PortalException,
226                            com.liferay.portal.kernel.exception.SystemException {
227                    return getService().getVocabulary(vocabularyId);
228            }
229    
230            /**
231            * @deprecated As of 6.1.0, {@link #updateVocabulary(long, String, Map, Map,
232            String, ServiceContext)}
233            */
234            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
235                    long vocabularyId,
236                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
237                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
238                    java.lang.String settings,
239                    com.liferay.portal.service.ServiceContext serviceContext)
240                    throws com.liferay.portal.kernel.exception.PortalException,
241                            com.liferay.portal.kernel.exception.SystemException {
242                    return getService()
243                                       .updateVocabulary(vocabularyId, titleMap, descriptionMap,
244                            settings, serviceContext);
245            }
246    
247            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
248                    long vocabularyId, java.lang.String title,
249                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
250                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
251                    java.lang.String settings,
252                    com.liferay.portal.service.ServiceContext serviceContext)
253                    throws com.liferay.portal.kernel.exception.PortalException,
254                            com.liferay.portal.kernel.exception.SystemException {
255                    return getService()
256                                       .updateVocabulary(vocabularyId, title, titleMap,
257                            descriptionMap, settings, serviceContext);
258            }
259    
260            public static AssetVocabularyService getService() {
261                    if (_service == null) {
262                            _service = (AssetVocabularyService)PortalBeanLocatorUtil.locate(AssetVocabularyService.class.getName());
263    
264                            ReferenceRegistry.registerReference(AssetVocabularyServiceUtil.class,
265                                    "_service");
266                    }
267    
268                    return _service;
269            }
270    
271            /**
272             * @deprecated As of 6.2.0
273             */
274            public void setService(AssetVocabularyService service) {
275            }
276    
277            private static AssetVocabularyService _service;
278    }