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