001    /**
002     * Copyright (c) 2000-2010 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    
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            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
038                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
039                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
040                    java.lang.String settings,
041                    com.liferay.portal.service.ServiceContext serviceContext)
042                    throws com.liferay.portal.kernel.exception.PortalException,
043                            com.liferay.portal.kernel.exception.SystemException {
044                    return getService()
045                                       .addVocabulary(titleMap, descriptionMap, settings,
046                            serviceContext);
047            }
048    
049            public static void deleteVocabulary(long vocabularyId)
050                    throws com.liferay.portal.kernel.exception.PortalException,
051                            com.liferay.portal.kernel.exception.SystemException {
052                    getService().deleteVocabulary(vocabularyId);
053            }
054    
055            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
056                    long companyId)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException {
059                    return getService().getCompanyVocabularies(companyId);
060            }
061    
062            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
063                    long[] groupIds)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    return getService().getGroupsVocabularies(groupIds);
067            }
068    
069            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
070                    long groupId)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    return getService().getGroupVocabularies(groupId);
074            }
075    
076            public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
077                    long vocabularyId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return getService().getVocabulary(vocabularyId);
081            }
082    
083            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
084                    long vocabularyId,
085                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
086                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
087                    java.lang.String settings,
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()
092                                       .updateVocabulary(vocabularyId, titleMap, descriptionMap,
093                            settings, serviceContext);
094            }
095    
096            public static AssetVocabularyService getService() {
097                    if (_service == null) {
098                            _service = (AssetVocabularyService)PortalBeanLocatorUtil.locate(AssetVocabularyService.class.getName());
099                    }
100    
101                    return _service;
102            }
103    
104            public void setService(AssetVocabularyService service) {
105                    _service = service;
106            }
107    
108            private static AssetVocabularyService _service;
109    }