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, int start, int end,
128                    com.liferay.portal.kernel.util.OrderByComparator obc)
129                    throws com.liferay.portal.kernel.exception.SystemException {
130                    return getService().getGroupVocabularies(groupId, start, end, obc);
131            }
132    
133            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
134                    long groupId, java.lang.String name, int start, int end,
135                    com.liferay.portal.kernel.util.OrderByComparator obc)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return getService().getGroupVocabularies(groupId, name, start, end, obc);
138            }
139    
140            public static int getGroupVocabulariesCount(long groupId)
141                    throws com.liferay.portal.kernel.exception.SystemException {
142                    return getService().getGroupVocabulariesCount(groupId);
143            }
144    
145            public static int getGroupVocabulariesCount(long groupId,
146                    java.lang.String name)
147                    throws com.liferay.portal.kernel.exception.SystemException {
148                    return getService().getGroupVocabulariesCount(groupId, name);
149            }
150    
151            public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
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.PortalException,
155                            com.liferay.portal.kernel.exception.SystemException {
156                    return getService()
157                                       .getJSONGroupVocabularies(groupId, name, start, end, obc);
158            }
159    
160            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
161                    long[] vocabularyIds)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    return getService().getVocabularies(vocabularyIds);
165            }
166    
167            public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
168                    long vocabularyId)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    return getService().getVocabulary(vocabularyId);
172            }
173    
174            /**
175            * @deprecated
176            */
177            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
178                    long vocabularyId,
179                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
180                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
181                    java.lang.String settings,
182                    com.liferay.portal.service.ServiceContext serviceContext)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException {
185                    return getService()
186                                       .updateVocabulary(vocabularyId, titleMap, descriptionMap,
187                            settings, serviceContext);
188            }
189    
190            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
191                    long vocabularyId, java.lang.String title,
192                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
193                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
194                    java.lang.String settings,
195                    com.liferay.portal.service.ServiceContext serviceContext)
196                    throws com.liferay.portal.kernel.exception.PortalException,
197                            com.liferay.portal.kernel.exception.SystemException {
198                    return getService()
199                                       .updateVocabulary(vocabularyId, title, titleMap,
200                            descriptionMap, settings, serviceContext);
201            }
202    
203            public static AssetVocabularyService getService() {
204                    if (_service == null) {
205                            _service = (AssetVocabularyService)PortalBeanLocatorUtil.locate(AssetVocabularyService.class.getName());
206    
207                            ReferenceRegistry.registerReference(AssetVocabularyServiceUtil.class,
208                                    "_service");
209                    }
210    
211                    return _service;
212            }
213    
214            /**
215             * @deprecated
216             */
217            public void setService(AssetVocabularyService service) {
218            }
219    
220            private static AssetVocabularyService _service;
221    }