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