1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="AssetVocabularyLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link AssetVocabularyLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       AssetVocabularyLocalService
37   * @generated
38   */
39  public class AssetVocabularyLocalServiceUtil {
40      public static com.liferay.portlet.asset.model.AssetVocabulary addAssetVocabulary(
41          com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getService().addAssetVocabulary(assetVocabulary);
44      }
45  
46      public static com.liferay.portlet.asset.model.AssetVocabulary createAssetVocabulary(
47          long vocabularyId) {
48          return getService().createAssetVocabulary(vocabularyId);
49      }
50  
51      public static void deleteAssetVocabulary(long vocabularyId)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          getService().deleteAssetVocabulary(vocabularyId);
55      }
56  
57      public static void deleteAssetVocabulary(
58          com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          getService().deleteAssetVocabulary(assetVocabulary);
61      }
62  
63      @SuppressWarnings("unchecked")
64      public static java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.kernel.exception.SystemException {
67          return getService().dynamicQuery(dynamicQuery);
68      }
69  
70      @SuppressWarnings("unchecked")
71      public static java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException {
74          return getService().dynamicQuery(dynamicQuery, start, end);
75      }
76  
77      @SuppressWarnings("unchecked")
78      public static java.util.List dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.kernel.exception.SystemException {
83          return getService()
84                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85      }
86  
87      public static long dynamicQueryCount(
88          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().dynamicQueryCount(dynamicQuery);
91      }
92  
93      public static com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
94          long vocabularyId)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return getService().getAssetVocabulary(vocabularyId);
98      }
99  
100     public static com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndGroupId(
101         java.lang.String uuid, long groupId)
102         throws com.liferay.portal.kernel.exception.PortalException,
103             com.liferay.portal.kernel.exception.SystemException {
104         return getService().getAssetVocabularyByUuidAndGroupId(uuid, groupId);
105     }
106 
107     public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabularies(
108         int start, int end)
109         throws com.liferay.portal.kernel.exception.SystemException {
110         return getService().getAssetVocabularies(start, end);
111     }
112 
113     public static int getAssetVocabulariesCount()
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return getService().getAssetVocabulariesCount();
116     }
117 
118     public static com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
119         com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         return getService().updateAssetVocabulary(assetVocabulary);
122     }
123 
124     public static com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
125         com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary,
126         boolean merge)
127         throws com.liferay.portal.kernel.exception.SystemException {
128         return getService().updateAssetVocabulary(assetVocabulary, merge);
129     }
130 
131     public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
132         java.lang.String uuid, long userId,
133         java.util.Map<java.util.Locale, java.lang.String> titleMap,
134         java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
135         java.lang.String settings,
136         com.liferay.portal.service.ServiceContext serviceContext)
137         throws com.liferay.portal.kernel.exception.PortalException,
138             com.liferay.portal.kernel.exception.SystemException {
139         return getService()
140                    .addVocabulary(uuid, userId, titleMap, descriptionMap,
141             settings, serviceContext);
142     }
143 
144     public static void addVocabularyResources(
145         com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
146         boolean addCommunityPermissions, boolean addGuestPermissions)
147         throws com.liferay.portal.kernel.exception.PortalException,
148             com.liferay.portal.kernel.exception.SystemException {
149         getService()
150             .addVocabularyResources(vocabulary, addCommunityPermissions,
151             addGuestPermissions);
152     }
153 
154     public static void addVocabularyResources(
155         com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
156         java.lang.String[] communityPermissions,
157         java.lang.String[] guestPermissions)
158         throws com.liferay.portal.kernel.exception.PortalException,
159             com.liferay.portal.kernel.exception.SystemException {
160         getService()
161             .addVocabularyResources(vocabulary, communityPermissions,
162             guestPermissions);
163     }
164 
165     public static void deleteVocabulary(
166         com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
167         throws com.liferay.portal.kernel.exception.PortalException,
168             com.liferay.portal.kernel.exception.SystemException {
169         getService().deleteVocabulary(vocabulary);
170     }
171 
172     public static void deleteVocabulary(long vocabularyId)
173         throws com.liferay.portal.kernel.exception.PortalException,
174             com.liferay.portal.kernel.exception.SystemException {
175         getService().deleteVocabulary(vocabularyId);
176     }
177 
178     public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
179         long companyId)
180         throws com.liferay.portal.kernel.exception.SystemException {
181         return getService().getCompanyVocabularies(companyId);
182     }
183 
184     public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
185         long[] groupIds)
186         throws com.liferay.portal.kernel.exception.PortalException,
187             com.liferay.portal.kernel.exception.SystemException {
188         return getService().getGroupsVocabularies(groupIds);
189     }
190 
191     public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
192         long groupId)
193         throws com.liferay.portal.kernel.exception.PortalException,
194             com.liferay.portal.kernel.exception.SystemException {
195         return getService().getGroupVocabularies(groupId);
196     }
197 
198     public static com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
199         long groupId, java.lang.String name)
200         throws com.liferay.portal.kernel.exception.PortalException,
201             com.liferay.portal.kernel.exception.SystemException {
202         return getService().getGroupVocabulary(groupId, name);
203     }
204 
205     public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
206         long vocabularyId)
207         throws com.liferay.portal.kernel.exception.PortalException,
208             com.liferay.portal.kernel.exception.SystemException {
209         return getService().getVocabulary(vocabularyId);
210     }
211 
212     public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
213         long vocabularyId,
214         java.util.Map<java.util.Locale, java.lang.String> titleMap,
215         java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
216         java.lang.String settings,
217         com.liferay.portal.service.ServiceContext serviceContext)
218         throws com.liferay.portal.kernel.exception.PortalException,
219             com.liferay.portal.kernel.exception.SystemException {
220         return getService()
221                    .updateVocabulary(vocabularyId, titleMap, descriptionMap,
222             settings, serviceContext);
223     }
224 
225     public static AssetVocabularyLocalService getService() {
226         if (_service == null) {
227             _service = (AssetVocabularyLocalService)PortalBeanLocatorUtil.locate(AssetVocabularyLocalService.class.getName());
228         }
229 
230         return _service;
231     }
232 
233     public void setService(AssetVocabularyLocalService service) {
234         _service = service;
235     }
236 
237     private static AssetVocabularyLocalService _service;
238 }