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