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.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            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
044                    java.lang.String title,
045                    com.liferay.portal.service.ServiceContext serviceContext)
046                    throws com.liferay.portal.kernel.exception.PortalException {
047                    return getService().addVocabulary(title, serviceContext);
048            }
049    
050            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
051                    java.lang.String title,
052                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
053                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
054                    java.lang.String settings,
055                    com.liferay.portal.service.ServiceContext serviceContext)
056                    throws com.liferay.portal.kernel.exception.PortalException {
057                    return getService()
058                                       .addVocabulary(title, titleMap, descriptionMap, settings,
059                            serviceContext);
060            }
061    
062            /**
063            * @deprecated As of 6.1.0 {@link #addVocabulary(String, Map, Map, String,
064            ServiceContext)}
065            */
066            @Deprecated
067            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
068                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
069                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
070                    java.lang.String settings,
071                    com.liferay.portal.service.ServiceContext serviceContext)
072                    throws com.liferay.portal.kernel.exception.PortalException {
073                    return getService()
074                                       .addVocabulary(titleMap, descriptionMap, settings,
075                            serviceContext);
076            }
077    
078            /**
079            * @deprecated As of 6.2.0, Replaced by {@link #deleteVocabularies(long[],
080            ServiceContext)}
081            */
082            @Deprecated
083            public static void deleteVocabularies(long[] vocabularyIds)
084                    throws com.liferay.portal.kernel.exception.PortalException {
085                    getService().deleteVocabularies(vocabularyIds);
086            }
087    
088            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
089                    long[] vocabularyIds,
090                    com.liferay.portal.service.ServiceContext serviceContext)
091                    throws com.liferay.portal.kernel.exception.PortalException {
092                    return getService().deleteVocabularies(vocabularyIds, serviceContext);
093            }
094    
095            public static void deleteVocabulary(long vocabularyId)
096                    throws com.liferay.portal.kernel.exception.PortalException {
097                    getService().deleteVocabulary(vocabularyId);
098            }
099    
100            public static com.liferay.portlet.asset.model.AssetVocabulary fetchVocabulary(
101                    long vocabularyId)
102                    throws com.liferay.portal.kernel.exception.PortalException {
103                    return getService().fetchVocabulary(vocabularyId);
104            }
105    
106            /**
107            * Returns the Spring bean ID for this bean.
108            *
109            * @return the Spring bean ID for this bean
110            */
111            public static java.lang.String getBeanIdentifier() {
112                    return getService().getBeanIdentifier();
113            }
114    
115            /**
116            * @deprecated As of 7.0.0, with no direct replacement
117            */
118            @Deprecated
119            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
120                    long companyId)
121                    throws com.liferay.portal.kernel.exception.PortalException {
122                    return getService().getCompanyVocabularies(companyId);
123            }
124    
125            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
126                    long groupId)
127                    throws com.liferay.portal.kernel.exception.PortalException {
128                    return getService().getGroupVocabularies(groupId);
129            }
130    
131            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
132                    long groupId, boolean createDefaultVocabulary)
133                    throws com.liferay.portal.kernel.exception.PortalException {
134                    return getService()
135                                       .getGroupVocabularies(groupId, createDefaultVocabulary);
136            }
137    
138            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
139                    long groupId, boolean createDefaultVocabulary, int start, int end,
140                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
141                    throws com.liferay.portal.kernel.exception.PortalException {
142                    return getService()
143                                       .getGroupVocabularies(groupId, createDefaultVocabulary,
144                            start, end, obc);
145            }
146    
147            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
148                    long groupId, java.lang.String name, int start, int end,
149                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
150                    return getService().getGroupVocabularies(groupId, name, start, end, obc);
151            }
152    
153            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
154                    long groupId, int start, int end,
155                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
156                    return getService().getGroupVocabularies(groupId, start, end, obc);
157            }
158    
159            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
160                    long[] groupIds) {
161                    return getService().getGroupVocabularies(groupIds);
162            }
163    
164            public static int getGroupVocabulariesCount(long groupId) {
165                    return getService().getGroupVocabulariesCount(groupId);
166            }
167    
168            public static int getGroupVocabulariesCount(long groupId,
169                    java.lang.String name) {
170                    return getService().getGroupVocabulariesCount(groupId, name);
171            }
172    
173            public static int getGroupVocabulariesCount(long[] groupIds) {
174                    return getService().getGroupVocabulariesCount(groupIds);
175            }
176    
177            public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
178                    long groupId, java.lang.String name, int start, int end,
179                    boolean addDefaultVocabulary,
180                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
181                    throws com.liferay.portal.kernel.exception.PortalException {
182                    return getService()
183                                       .getGroupVocabulariesDisplay(groupId, name, start, end,
184                            addDefaultVocabulary, obc);
185            }
186    
187            public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
188                    long groupId, java.lang.String name, int start, int end,
189                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
190                    throws com.liferay.portal.kernel.exception.PortalException {
191                    return getService()
192                                       .getGroupVocabulariesDisplay(groupId, name, start, end, obc);
193            }
194    
195            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
196                    long[] groupIds) {
197                    return getService().getGroupsVocabularies(groupIds);
198            }
199    
200            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
201                    long[] groupIds, java.lang.String className) {
202                    return getService().getGroupsVocabularies(groupIds, className);
203            }
204    
205            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
206                    long[] groupIds, java.lang.String className, long classTypePK) {
207                    return getService()
208                                       .getGroupsVocabularies(groupIds, className, classTypePK);
209            }
210    
211            /**
212            * @deprecated As of 6.2.0, with no direct replacement
213            */
214            @Deprecated
215            public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
216                    long groupId, java.lang.String name, int start, int end,
217                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
218                    throws com.liferay.portal.kernel.exception.PortalException {
219                    return getService()
220                                       .getJSONGroupVocabularies(groupId, name, start, end, obc);
221            }
222    
223            /**
224            * @deprecated As of 7.0.0, replaced by {@link
225            #AssetUtil.filterVocabularyIds(PermissionChecker, long[])}
226            */
227            @Deprecated
228            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
229                    long[] vocabularyIds)
230                    throws com.liferay.portal.kernel.exception.PortalException {
231                    return getService().getVocabularies(vocabularyIds);
232            }
233    
234            public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
235                    long vocabularyId)
236                    throws com.liferay.portal.kernel.exception.PortalException {
237                    return getService().getVocabulary(vocabularyId);
238            }
239    
240            public static com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
241                    long groupId, java.lang.String title, int start, int end,
242                    boolean addDefaultVocabulary)
243                    throws com.liferay.portal.kernel.exception.PortalException {
244                    return getService()
245                                       .searchVocabulariesDisplay(groupId, title, start, end,
246                            addDefaultVocabulary);
247            }
248    
249            /**
250            * Sets the Spring bean ID for this bean.
251            *
252            * @param beanIdentifier the Spring bean ID for this bean
253            */
254            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
255                    getService().setBeanIdentifier(beanIdentifier);
256            }
257    
258            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
259                    long vocabularyId, java.lang.String title,
260                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
261                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
262                    java.lang.String settings,
263                    com.liferay.portal.service.ServiceContext serviceContext)
264                    throws com.liferay.portal.kernel.exception.PortalException {
265                    return getService()
266                                       .updateVocabulary(vocabularyId, title, titleMap,
267                            descriptionMap, settings, serviceContext);
268            }
269    
270            /**
271            * @deprecated As of 6.1.0, {@link #updateVocabulary(long, String, Map, Map,
272            String, ServiceContext)}
273            */
274            @Deprecated
275            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
276                    long vocabularyId,
277                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
278                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
279                    java.lang.String settings,
280                    com.liferay.portal.service.ServiceContext serviceContext)
281                    throws com.liferay.portal.kernel.exception.PortalException {
282                    return getService()
283                                       .updateVocabulary(vocabularyId, titleMap, descriptionMap,
284                            settings, serviceContext);
285            }
286    
287            public static AssetVocabularyService getService() {
288                    if (_service == null) {
289                            _service = (AssetVocabularyService)PortalBeanLocatorUtil.locate(AssetVocabularyService.class.getName());
290    
291                            ReferenceRegistry.registerReference(AssetVocabularyServiceUtil.class,
292                                    "_service");
293                    }
294    
295                    return _service;
296            }
297    
298            /**
299             * @deprecated As of 6.2.0
300             */
301            @Deprecated
302            public void setService(AssetVocabularyService service) {
303            }
304    
305            private static AssetVocabularyService _service;
306    }