001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.asset.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * 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.
021     *
022     * <p>
023     * 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.
024     * </p>
025     *
026     * <p>
027     * 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.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see AssetVocabularyService
032     * @see com.liferay.portlet.asset.service.base.AssetVocabularyServiceBaseImpl
033     * @see com.liferay.portlet.asset.service.impl.AssetVocabularyServiceImpl
034     * @generated
035     */
036    public class AssetVocabularyServiceUtil {
037            /**
038            * @deprecated
039            */
040            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
041                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
042                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
043                    java.lang.String settings,
044                    com.liferay.portal.service.ServiceContext serviceContext)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    return getService()
048                                       .addVocabulary(titleMap, descriptionMap, settings,
049                            serviceContext);
050            }
051    
052            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
053                    java.lang.String title,
054                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
055                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
056                    java.lang.String settings,
057                    com.liferay.portal.service.ServiceContext serviceContext)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException {
060                    return getService()
061                                       .addVocabulary(title, titleMap, descriptionMap, settings,
062                            serviceContext);
063            }
064    
065            public static void deleteVocabulary(long vocabularyId)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    getService().deleteVocabulary(vocabularyId);
069            }
070    
071            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
072                    long companyId)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException {
075                    return getService().getCompanyVocabularies(companyId);
076            }
077    
078            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
079                    long[] groupIds)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException {
082                    return getService().getGroupsVocabularies(groupIds);
083            }
084    
085            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
086                    long groupId)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException {
089                    return getService().getGroupVocabularies(groupId);
090            }
091    
092            public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
093                    long vocabularyId)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException {
096                    return getService().getVocabulary(vocabularyId);
097            }
098    
099            /**
100            * @deprecated
101            */
102            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
103                    long vocabularyId,
104                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
105                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
106                    java.lang.String settings,
107                    com.liferay.portal.service.ServiceContext serviceContext)
108                    throws com.liferay.portal.kernel.exception.PortalException,
109                            com.liferay.portal.kernel.exception.SystemException {
110                    return getService()
111                                       .updateVocabulary(vocabularyId, titleMap, descriptionMap,
112                            settings, serviceContext);
113            }
114    
115            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
116                    long vocabularyId, java.lang.String title,
117                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
118                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
119                    java.lang.String settings,
120                    com.liferay.portal.service.ServiceContext serviceContext)
121                    throws com.liferay.portal.kernel.exception.PortalException,
122                            com.liferay.portal.kernel.exception.SystemException {
123                    return getService()
124                                       .updateVocabulary(vocabularyId, title, titleMap,
125                            descriptionMap, settings, serviceContext);
126            }
127    
128            public static AssetVocabularyService getService() {
129                    if (_service == null) {
130                            _service = (AssetVocabularyService)PortalBeanLocatorUtil.locate(AssetVocabularyService.class.getName());
131                    }
132    
133                    return _service;
134            }
135    
136            public void setService(AssetVocabularyService service) {
137                    _service = service;
138            }
139    
140            private static AssetVocabularyService _service;
141    }