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