001    /**
002     * Copyright (c) 2000-present 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.asset.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for AssetVocabulary. This utility wraps
024     * {@link com.liferay.portlet.asset.service.impl.AssetVocabularyServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
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    @ProviderType
037    public class AssetVocabularyServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * 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.
042             */
043            public static com.liferay.asset.kernel.model.AssetVocabulary addVocabulary(
044                    long groupId, java.lang.String title,
045                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
046                    throws com.liferay.portal.kernel.exception.PortalException {
047                    return getService().addVocabulary(groupId, title, serviceContext);
048            }
049    
050            public static com.liferay.asset.kernel.model.AssetVocabulary addVocabulary(
051                    long groupId, java.lang.String title,
052                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
053                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
054                    java.lang.String settings,
055                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
056                    throws com.liferay.portal.kernel.exception.PortalException {
057                    return getService()
058                                       .addVocabulary(groupId, title, titleMap, descriptionMap,
059                            settings, serviceContext);
060            }
061    
062            public static java.util.List<com.liferay.asset.kernel.model.AssetVocabulary> deleteVocabularies(
063                    long[] vocabularyIds,
064                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
065                    throws com.liferay.portal.kernel.exception.PortalException {
066                    return getService().deleteVocabularies(vocabularyIds, serviceContext);
067            }
068    
069            public static void deleteVocabulary(long vocabularyId)
070                    throws com.liferay.portal.kernel.exception.PortalException {
071                    getService().deleteVocabulary(vocabularyId);
072            }
073    
074            public static com.liferay.asset.kernel.model.AssetVocabulary fetchVocabulary(
075                    long vocabularyId)
076                    throws com.liferay.portal.kernel.exception.PortalException {
077                    return getService().fetchVocabulary(vocabularyId);
078            }
079    
080            /**
081            * @deprecated As of 7.0.0, with no direct replacement
082            */
083            @Deprecated
084            public static java.util.List<com.liferay.asset.kernel.model.AssetVocabulary> getCompanyVocabularies(
085                    long companyId)
086                    throws com.liferay.portal.kernel.exception.PortalException {
087                    return getService().getCompanyVocabularies(companyId);
088            }
089    
090            public static java.util.List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(
091                    long groupId)
092                    throws com.liferay.portal.kernel.exception.PortalException {
093                    return getService().getGroupVocabularies(groupId);
094            }
095    
096            public static java.util.List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(
097                    long groupId, boolean createDefaultVocabulary)
098                    throws com.liferay.portal.kernel.exception.PortalException {
099                    return getService()
100                                       .getGroupVocabularies(groupId, createDefaultVocabulary);
101            }
102    
103            public static java.util.List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(
104                    long groupId, boolean createDefaultVocabulary, int start, int end,
105                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetVocabulary> obc)
106                    throws com.liferay.portal.kernel.exception.PortalException {
107                    return getService()
108                                       .getGroupVocabularies(groupId, createDefaultVocabulary,
109                            start, end, obc);
110            }
111    
112            public static java.util.List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(
113                    long groupId, java.lang.String name, int start, int end,
114                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetVocabulary> obc) {
115                    return getService().getGroupVocabularies(groupId, name, start, end, obc);
116            }
117    
118            public static java.util.List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(
119                    long groupId, int start, int end,
120                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetVocabulary> obc) {
121                    return getService().getGroupVocabularies(groupId, start, end, obc);
122            }
123    
124            public static java.util.List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(
125                    long[] groupIds) {
126                    return getService().getGroupVocabularies(groupIds);
127            }
128    
129            public static int getGroupVocabulariesCount(long groupId) {
130                    return getService().getGroupVocabulariesCount(groupId);
131            }
132    
133            public static int getGroupVocabulariesCount(long groupId,
134                    java.lang.String name) {
135                    return getService().getGroupVocabulariesCount(groupId, name);
136            }
137    
138            public static int getGroupVocabulariesCount(long[] groupIds) {
139                    return getService().getGroupVocabulariesCount(groupIds);
140            }
141    
142            public static com.liferay.asset.kernel.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
143                    long groupId, java.lang.String name, int start, int end,
144                    boolean addDefaultVocabulary,
145                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetVocabulary> obc)
146                    throws com.liferay.portal.kernel.exception.PortalException {
147                    return getService()
148                                       .getGroupVocabulariesDisplay(groupId, name, start, end,
149                            addDefaultVocabulary, obc);
150            }
151    
152            public static com.liferay.asset.kernel.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
153                    long groupId, java.lang.String name, int start, int end,
154                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetVocabulary> obc)
155                    throws com.liferay.portal.kernel.exception.PortalException {
156                    return getService()
157                                       .getGroupVocabulariesDisplay(groupId, name, start, end, obc);
158            }
159    
160            public static java.util.List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupsVocabularies(
161                    long[] groupIds) {
162                    return getService().getGroupsVocabularies(groupIds);
163            }
164    
165            public static java.util.List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupsVocabularies(
166                    long[] groupIds, java.lang.String className) {
167                    return getService().getGroupsVocabularies(groupIds, className);
168            }
169    
170            public static java.util.List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupsVocabularies(
171                    long[] groupIds, java.lang.String className, long classTypePK) {
172                    return getService()
173                                       .getGroupsVocabularies(groupIds, className, classTypePK);
174            }
175    
176            /**
177            * Returns the OSGi service identifier.
178            *
179            * @return the OSGi service identifier
180            */
181            public static java.lang.String getOSGiServiceIdentifier() {
182                    return getService().getOSGiServiceIdentifier();
183            }
184    
185            /**
186            * @deprecated As of 7.0.0, replaced by {@link
187            AssetUtil#filterVocabularyIds(PermissionChecker, long[])}
188            */
189            @Deprecated
190            public static java.util.List<com.liferay.asset.kernel.model.AssetVocabulary> getVocabularies(
191                    long[] vocabularyIds)
192                    throws com.liferay.portal.kernel.exception.PortalException {
193                    return getService().getVocabularies(vocabularyIds);
194            }
195    
196            public static com.liferay.asset.kernel.model.AssetVocabulary getVocabulary(
197                    long vocabularyId)
198                    throws com.liferay.portal.kernel.exception.PortalException {
199                    return getService().getVocabulary(vocabularyId);
200            }
201    
202            public static com.liferay.asset.kernel.model.AssetVocabularyDisplay searchVocabulariesDisplay(
203                    long groupId, java.lang.String title, boolean addDefaultVocabulary,
204                    int start, int end)
205                    throws com.liferay.portal.kernel.exception.PortalException {
206                    return getService()
207                                       .searchVocabulariesDisplay(groupId, title,
208                            addDefaultVocabulary, start, end);
209            }
210    
211            public static com.liferay.asset.kernel.model.AssetVocabularyDisplay searchVocabulariesDisplay(
212                    long groupId, java.lang.String title, boolean addDefaultVocabulary,
213                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
214                    throws com.liferay.portal.kernel.exception.PortalException {
215                    return getService()
216                                       .searchVocabulariesDisplay(groupId, title,
217                            addDefaultVocabulary, start, end, sort);
218            }
219    
220            public static com.liferay.asset.kernel.model.AssetVocabulary updateVocabulary(
221                    long vocabularyId, java.lang.String title,
222                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
223                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
224                    java.lang.String settings,
225                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
226                    throws com.liferay.portal.kernel.exception.PortalException {
227                    return getService()
228                                       .updateVocabulary(vocabularyId, title, titleMap,
229                            descriptionMap, settings, serviceContext);
230            }
231    
232            public static AssetVocabularyService getService() {
233                    if (_service == null) {
234                            _service = (AssetVocabularyService)PortalBeanLocatorUtil.locate(AssetVocabularyService.class.getName());
235    
236                            ReferenceRegistry.registerReference(AssetVocabularyServiceUtil.class,
237                                    "_service");
238                    }
239    
240                    return _service;
241            }
242    
243            private static AssetVocabularyService _service;
244    }