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 com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * Provides the remote service utility for AssetVocabulary. This utility wraps
022     * {@link com.liferay.portlet.asset.service.impl.AssetVocabularyServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on a remote server. Methods of this service are expected to have security
025     * checks based on the propagated JAAS credentials because this service can be
026     * accessed remotely.
027     *
028     * @author Brian Wing Shun Chan
029     * @see AssetVocabularyService
030     * @see com.liferay.portlet.asset.service.base.AssetVocabularyServiceBaseImpl
031     * @see com.liferay.portlet.asset.service.impl.AssetVocabularyServiceImpl
032     * @generated
033     */
034    public class AssetVocabularyServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
039             */
040    
041            /**
042            * Returns the Spring bean ID for this bean.
043            *
044            * @return the Spring bean ID for this bean
045            */
046            public static java.lang.String getBeanIdentifier() {
047                    return getService().getBeanIdentifier();
048            }
049    
050            /**
051            * Sets the Spring bean ID for this bean.
052            *
053            * @param beanIdentifier the Spring bean ID for this bean
054            */
055            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056                    getService().setBeanIdentifier(beanIdentifier);
057            }
058    
059            /**
060            * @deprecated As of 6.1.0 {@link #addVocabulary(String, Map, Map, String,
061            ServiceContext)}
062            */
063            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
064                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
065                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
066                    java.lang.String settings,
067                    com.liferay.portal.service.ServiceContext serviceContext)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return getService()
071                                       .addVocabulary(titleMap, descriptionMap, settings,
072                            serviceContext);
073            }
074    
075            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
076                    java.lang.String title,
077                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
078                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
079                    java.lang.String settings,
080                    com.liferay.portal.service.ServiceContext serviceContext)
081                    throws com.liferay.portal.kernel.exception.PortalException,
082                            com.liferay.portal.kernel.exception.SystemException {
083                    return getService()
084                                       .addVocabulary(title, titleMap, descriptionMap, settings,
085                            serviceContext);
086            }
087    
088            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
089                    java.lang.String title,
090                    com.liferay.portal.service.ServiceContext serviceContext)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException {
093                    return getService().addVocabulary(title, serviceContext);
094            }
095    
096            /**
097            * @deprecated As of 6.2.0, Replaced by {@link #deleteVocabularies(long[],
098            ServiceContext)}
099            */
100            public static void deleteVocabularies(long[] vocabularyIds)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    getService().deleteVocabularies(vocabularyIds);
104            }
105    
106            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
107                    long[] vocabularyIds,
108                    com.liferay.portal.service.ServiceContext serviceContext)
109                    throws com.liferay.portal.kernel.exception.PortalException,
110                            com.liferay.portal.kernel.exception.SystemException {
111                    return getService().deleteVocabularies(vocabularyIds, serviceContext);
112            }
113    
114            public static void deleteVocabulary(long vocabularyId)
115                    throws com.liferay.portal.kernel.exception.PortalException,
116                            com.liferay.portal.kernel.exception.SystemException {
117                    getService().deleteVocabulary(vocabularyId);
118            }
119    
120            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
121                    long companyId)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException {
124                    return getService().getCompanyVocabularies(companyId);
125            }
126    
127            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
128                    long[] groupIds)
129                    throws com.liferay.portal.kernel.exception.PortalException,
130                            com.liferay.portal.kernel.exception.SystemException {
131                    return getService().getGroupsVocabularies(groupIds);
132            }
133    
134            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
135                    long[] groupIds, java.lang.String className)
136                    throws com.liferay.portal.kernel.exception.PortalException,
137                            com.liferay.portal.kernel.exception.SystemException {
138                    return getService().getGroupsVocabularies(groupIds, className);
139            }
140    
141            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
142                    long groupId)
143                    throws com.liferay.portal.kernel.exception.PortalException,
144                            com.liferay.portal.kernel.exception.SystemException {
145                    return getService().getGroupVocabularies(groupId);
146            }
147    
148            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
149                    long groupId, boolean createDefaultVocabulary)
150                    throws com.liferay.portal.kernel.exception.PortalException,
151                            com.liferay.portal.kernel.exception.SystemException {
152                    return getService()
153                                       .getGroupVocabularies(groupId, createDefaultVocabulary);
154            }
155    
156            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
157                    long groupId, int start, int end,
158                    com.liferay.portal.kernel.util.OrderByComparator obc)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return getService().getGroupVocabularies(groupId, start, end, obc);
161            }
162    
163            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
164                    long groupId, java.lang.String name, int start, int end,
165                    com.liferay.portal.kernel.util.OrderByComparator obc)
166                    throws com.liferay.portal.kernel.exception.SystemException {
167                    return getService().getGroupVocabularies(groupId, name, start, end, obc);
168            }
169    
170            public static int getGroupVocabulariesCount(long groupId)
171                    throws com.liferay.portal.kernel.exception.SystemException {
172                    return getService().getGroupVocabulariesCount(groupId);
173            }
174    
175            public static int getGroupVocabulariesCount(long groupId,
176                    java.lang.String name)
177                    throws com.liferay.portal.kernel.exception.SystemException {
178                    return getService().getGroupVocabulariesCount(groupId, name);
179            }
180    
181            public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
182                    long groupId, java.lang.String name, int start, int end,
183                    boolean addDefaultVocabulary,
184                    com.liferay.portal.kernel.util.OrderByComparator obc)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return getService()
188                                       .getGroupVocabulariesDisplay(groupId, name, start, end,
189                            addDefaultVocabulary, obc);
190            }
191    
192            public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
193                    long groupId, java.lang.String name, int start, int end,
194                    com.liferay.portal.kernel.util.OrderByComparator obc)
195                    throws com.liferay.portal.kernel.exception.PortalException,
196                            com.liferay.portal.kernel.exception.SystemException {
197                    return getService()
198                                       .getGroupVocabulariesDisplay(groupId, name, start, end, obc);
199            }
200    
201            /**
202            * @deprecated As of 6.2.0, with no direct replacement
203            */
204            public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
205                    long groupId, java.lang.String name, int start, int end,
206                    com.liferay.portal.kernel.util.OrderByComparator obc)
207                    throws com.liferay.portal.kernel.exception.PortalException,
208                            com.liferay.portal.kernel.exception.SystemException {
209                    return getService()
210                                       .getJSONGroupVocabularies(groupId, name, start, end, obc);
211            }
212    
213            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
214                    long[] vocabularyIds)
215                    throws com.liferay.portal.kernel.exception.PortalException,
216                            com.liferay.portal.kernel.exception.SystemException {
217                    return getService().getVocabularies(vocabularyIds);
218            }
219    
220            public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
221                    long vocabularyId)
222                    throws com.liferay.portal.kernel.exception.PortalException,
223                            com.liferay.portal.kernel.exception.SystemException {
224                    return getService().getVocabulary(vocabularyId);
225            }
226    
227            /**
228            * @deprecated As of 6.1.0, {@link #updateVocabulary(long, String, Map, Map,
229            String, ServiceContext)}
230            */
231            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
232                    long vocabularyId,
233                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
234                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
235                    java.lang.String settings,
236                    com.liferay.portal.service.ServiceContext serviceContext)
237                    throws com.liferay.portal.kernel.exception.PortalException,
238                            com.liferay.portal.kernel.exception.SystemException {
239                    return getService()
240                                       .updateVocabulary(vocabularyId, titleMap, descriptionMap,
241                            settings, serviceContext);
242            }
243    
244            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
245                    long vocabularyId, java.lang.String title,
246                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
247                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
248                    java.lang.String settings,
249                    com.liferay.portal.service.ServiceContext serviceContext)
250                    throws com.liferay.portal.kernel.exception.PortalException,
251                            com.liferay.portal.kernel.exception.SystemException {
252                    return getService()
253                                       .updateVocabulary(vocabularyId, title, titleMap,
254                            descriptionMap, settings, serviceContext);
255            }
256    
257            public static AssetVocabularyService getService() {
258                    if (_service == null) {
259                            _service = (AssetVocabularyService)PortalBeanLocatorUtil.locate(AssetVocabularyService.class.getName());
260    
261                            ReferenceRegistry.registerReference(AssetVocabularyServiceUtil.class,
262                                    "_service");
263                    }
264    
265                    return _service;
266            }
267    
268            /**
269             * @deprecated As of 6.2.0
270             */
271            public void setService(AssetVocabularyService service) {
272            }
273    
274            private static AssetVocabularyService _service;
275    }