001    /**
002     * Copyright (c) 2000-2012 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
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 void deleteVocabularies(long[] vocabularyIds)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException {
089                    getService().deleteVocabularies(vocabularyIds);
090            }
091    
092            public static void deleteVocabulary(long vocabularyId)
093                    throws com.liferay.portal.kernel.exception.PortalException,
094                            com.liferay.portal.kernel.exception.SystemException {
095                    getService().deleteVocabulary(vocabularyId);
096            }
097    
098            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
099                    long companyId)
100                    throws com.liferay.portal.kernel.exception.PortalException,
101                            com.liferay.portal.kernel.exception.SystemException {
102                    return getService().getCompanyVocabularies(companyId);
103            }
104    
105            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
106                    long[] groupIds)
107                    throws com.liferay.portal.kernel.exception.PortalException,
108                            com.liferay.portal.kernel.exception.SystemException {
109                    return getService().getGroupsVocabularies(groupIds);
110            }
111    
112            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
113                    long[] groupIds, java.lang.String className)
114                    throws com.liferay.portal.kernel.exception.PortalException,
115                            com.liferay.portal.kernel.exception.SystemException {
116                    return getService().getGroupsVocabularies(groupIds, className);
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                            com.liferay.portal.kernel.exception.SystemException {
123                    return getService().getGroupVocabularies(groupId);
124            }
125    
126            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
127                    long groupId, boolean createDefaultVocabulary)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException {
130                    return getService()
131                                       .getGroupVocabularies(groupId, createDefaultVocabulary);
132            }
133    
134            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
135                    long groupId, int start, int end,
136                    com.liferay.portal.kernel.util.OrderByComparator obc)
137                    throws com.liferay.portal.kernel.exception.SystemException {
138                    return getService().getGroupVocabularies(groupId, 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 obc)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return getService().getGroupVocabularies(groupId, name, start, end, obc);
146            }
147    
148            public static int getGroupVocabulariesCount(long groupId)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return getService().getGroupVocabulariesCount(groupId);
151            }
152    
153            public static int getGroupVocabulariesCount(long groupId,
154                    java.lang.String name)
155                    throws com.liferay.portal.kernel.exception.SystemException {
156                    return getService().getGroupVocabulariesCount(groupId, name);
157            }
158    
159            public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
160                    long groupId, java.lang.String name, int start, int end,
161                    com.liferay.portal.kernel.util.OrderByComparator obc)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    return getService()
165                                       .getJSONGroupVocabularies(groupId, name, start, end, obc);
166            }
167    
168            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
169                    long[] vocabularyIds)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return getService().getVocabularies(vocabularyIds);
173            }
174    
175            public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
176                    long vocabularyId)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return getService().getVocabulary(vocabularyId);
180            }
181    
182            /**
183            * @deprecated
184            */
185            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
186                    long vocabularyId,
187                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
188                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
189                    java.lang.String settings,
190                    com.liferay.portal.service.ServiceContext serviceContext)
191                    throws com.liferay.portal.kernel.exception.PortalException,
192                            com.liferay.portal.kernel.exception.SystemException {
193                    return getService()
194                                       .updateVocabulary(vocabularyId, titleMap, descriptionMap,
195                            settings, serviceContext);
196            }
197    
198            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
199                    long vocabularyId, java.lang.String title,
200                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
201                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
202                    java.lang.String settings,
203                    com.liferay.portal.service.ServiceContext serviceContext)
204                    throws com.liferay.portal.kernel.exception.PortalException,
205                            com.liferay.portal.kernel.exception.SystemException {
206                    return getService()
207                                       .updateVocabulary(vocabularyId, title, titleMap,
208                            descriptionMap, settings, serviceContext);
209            }
210    
211            public static AssetVocabularyService getService() {
212                    if (_service == null) {
213                            _service = (AssetVocabularyService)PortalBeanLocatorUtil.locate(AssetVocabularyService.class.getName());
214    
215                            ReferenceRegistry.registerReference(AssetVocabularyServiceUtil.class,
216                                    "_service");
217                    }
218    
219                    return _service;
220            }
221    
222            /**
223             * @deprecated
224             */
225            public void setService(AssetVocabularyService service) {
226            }
227    
228            private static AssetVocabularyService _service;
229    }