1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.tags.service;
24  
25  
26  /**
27   * <a href="TagsEntryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.tags.service.TagsEntryLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * <p>
43   * <code>com.liferay.portlet.tags.service.TagsEntryLocalServiceFactory</code>
44   * is responsible for the lookup of the bean.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portlet.tags.service.TagsEntryLocalService
50   * @see com.liferay.portlet.tags.service.TagsEntryLocalServiceFactory
51   *
52   */
53  public class TagsEntryLocalServiceUtil {
54      public static com.liferay.portlet.tags.model.TagsEntry addTagsEntry(
55          com.liferay.portlet.tags.model.TagsEntry model)
56          throws com.liferay.portal.SystemException {
57          TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
58  
59          return tagsEntryLocalService.addTagsEntry(model);
60      }
61  
62      public static java.util.List dynamicQuery(
63          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
64          throws com.liferay.portal.SystemException {
65          TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
66  
67          return tagsEntryLocalService.dynamicQuery(queryInitializer);
68      }
69  
70      public static java.util.List dynamicQuery(
71          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
72          int begin, int end) throws com.liferay.portal.SystemException {
73          TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
74  
75          return tagsEntryLocalService.dynamicQuery(queryInitializer, begin, end);
76      }
77  
78      public static com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
79          com.liferay.portlet.tags.model.TagsEntry model)
80          throws com.liferay.portal.SystemException {
81          TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
82  
83          return tagsEntryLocalService.updateTagsEntry(model);
84      }
85  
86      public static com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence() {
87          TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
88  
89          return tagsEntryLocalService.getTagsAssetPersistence();
90      }
91  
92      public static void setTagsAssetPersistence(
93          com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence) {
94          TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
95  
96          tagsEntryLocalService.setTagsAssetPersistence(tagsAssetPersistence);
97      }
98  
99      public static com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder() {
100         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
101 
102         return tagsEntryLocalService.getTagsAssetFinder();
103     }
104 
105     public static void setTagsAssetFinder(
106         com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder) {
107         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
108 
109         tagsEntryLocalService.setTagsAssetFinder(tagsAssetFinder);
110     }
111 
112     public static com.liferay.portlet.tags.service.persistence.TagsEntryPersistence getTagsEntryPersistence() {
113         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
114 
115         return tagsEntryLocalService.getTagsEntryPersistence();
116     }
117 
118     public static void setTagsEntryPersistence(
119         com.liferay.portlet.tags.service.persistence.TagsEntryPersistence tagsEntryPersistence) {
120         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
121 
122         tagsEntryLocalService.setTagsEntryPersistence(tagsEntryPersistence);
123     }
124 
125     public static com.liferay.portlet.tags.service.persistence.TagsEntryFinder getTagsEntryFinder() {
126         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
127 
128         return tagsEntryLocalService.getTagsEntryFinder();
129     }
130 
131     public static void setTagsEntryFinder(
132         com.liferay.portlet.tags.service.persistence.TagsEntryFinder tagsEntryFinder) {
133         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
134 
135         tagsEntryLocalService.setTagsEntryFinder(tagsEntryFinder);
136     }
137 
138     public static com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence getTagsPropertyPersistence() {
139         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
140 
141         return tagsEntryLocalService.getTagsPropertyPersistence();
142     }
143 
144     public static void setTagsPropertyPersistence(
145         com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence tagsPropertyPersistence) {
146         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
147 
148         tagsEntryLocalService.setTagsPropertyPersistence(tagsPropertyPersistence);
149     }
150 
151     public static com.liferay.portlet.tags.service.persistence.TagsPropertyFinder getTagsPropertyFinder() {
152         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
153 
154         return tagsEntryLocalService.getTagsPropertyFinder();
155     }
156 
157     public static void setTagsPropertyFinder(
158         com.liferay.portlet.tags.service.persistence.TagsPropertyFinder tagsPropertyFinder) {
159         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
160 
161         tagsEntryLocalService.setTagsPropertyFinder(tagsPropertyFinder);
162     }
163 
164     public static com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder getTagsPropertyKeyFinder() {
165         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
166 
167         return tagsEntryLocalService.getTagsPropertyKeyFinder();
168     }
169 
170     public static void setTagsPropertyKeyFinder(
171         com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder tagsPropertyKeyFinder) {
172         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
173 
174         tagsEntryLocalService.setTagsPropertyKeyFinder(tagsPropertyKeyFinder);
175     }
176 
177     public static com.liferay.portlet.tags.service.persistence.TagsSourcePersistence getTagsSourcePersistence() {
178         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
179 
180         return tagsEntryLocalService.getTagsSourcePersistence();
181     }
182 
183     public static void setTagsSourcePersistence(
184         com.liferay.portlet.tags.service.persistence.TagsSourcePersistence tagsSourcePersistence) {
185         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
186 
187         tagsEntryLocalService.setTagsSourcePersistence(tagsSourcePersistence);
188     }
189 
190     public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
191         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
192 
193         return tagsEntryLocalService.getUserPersistence();
194     }
195 
196     public static void setUserPersistence(
197         com.liferay.portal.service.persistence.UserPersistence userPersistence) {
198         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
199 
200         tagsEntryLocalService.setUserPersistence(userPersistence);
201     }
202 
203     public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
204         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
205 
206         return tagsEntryLocalService.getUserFinder();
207     }
208 
209     public static void setUserFinder(
210         com.liferay.portal.service.persistence.UserFinder userFinder) {
211         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
212 
213         tagsEntryLocalService.setUserFinder(userFinder);
214     }
215 
216     public static void afterPropertiesSet() {
217         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
218 
219         tagsEntryLocalService.afterPropertiesSet();
220     }
221 
222     public static com.liferay.portlet.tags.model.TagsEntry addEntry(
223         long userId, java.lang.String name)
224         throws com.liferay.portal.PortalException, 
225             com.liferay.portal.SystemException {
226         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
227 
228         return tagsEntryLocalService.addEntry(userId, name);
229     }
230 
231     public static com.liferay.portlet.tags.model.TagsEntry addEntry(
232         long userId, java.lang.String name, java.lang.String[] properties)
233         throws com.liferay.portal.PortalException, 
234             com.liferay.portal.SystemException {
235         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
236 
237         return tagsEntryLocalService.addEntry(userId, name, properties);
238     }
239 
240     public static void checkEntries(long userId, java.lang.String[] names)
241         throws com.liferay.portal.PortalException, 
242             com.liferay.portal.SystemException {
243         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
244 
245         tagsEntryLocalService.checkEntries(userId, names);
246     }
247 
248     public static void deleteEntry(long entryId)
249         throws com.liferay.portal.PortalException, 
250             com.liferay.portal.SystemException {
251         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
252 
253         tagsEntryLocalService.deleteEntry(entryId);
254     }
255 
256     public static void deleteEntry(
257         com.liferay.portlet.tags.model.TagsEntry entry)
258         throws com.liferay.portal.PortalException, 
259             com.liferay.portal.SystemException {
260         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
261 
262         tagsEntryLocalService.deleteEntry(entry);
263     }
264 
265     public static boolean hasEntry(long companyId, java.lang.String name)
266         throws com.liferay.portal.PortalException, 
267             com.liferay.portal.SystemException {
268         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
269 
270         return tagsEntryLocalService.hasEntry(companyId, name);
271     }
272 
273     public static java.util.List getAssetEntries(long assetId)
274         throws com.liferay.portal.PortalException, 
275             com.liferay.portal.SystemException {
276         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
277 
278         return tagsEntryLocalService.getAssetEntries(assetId);
279     }
280 
281     public static java.util.List getEntries()
282         throws com.liferay.portal.SystemException {
283         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
284 
285         return tagsEntryLocalService.getEntries();
286     }
287 
288     public static java.util.List getEntries(java.lang.String className,
289         long classPK)
290         throws com.liferay.portal.PortalException, 
291             com.liferay.portal.SystemException {
292         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
293 
294         return tagsEntryLocalService.getEntries(className, classPK);
295     }
296 
297     public static java.util.List getEntries(long classNameId, long classPK)
298         throws com.liferay.portal.PortalException, 
299             com.liferay.portal.SystemException {
300         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
301 
302         return tagsEntryLocalService.getEntries(classNameId, classPK);
303     }
304 
305     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
306         long entryId)
307         throws com.liferay.portal.PortalException, 
308             com.liferay.portal.SystemException {
309         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
310 
311         return tagsEntryLocalService.getEntry(entryId);
312     }
313 
314     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
315         long companyId, java.lang.String name)
316         throws com.liferay.portal.PortalException, 
317             com.liferay.portal.SystemException {
318         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
319 
320         return tagsEntryLocalService.getEntry(companyId, name);
321     }
322 
323     public static long[] getEntryIds(long companyId, java.lang.String[] names)
324         throws com.liferay.portal.PortalException, 
325             com.liferay.portal.SystemException {
326         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
327 
328         return tagsEntryLocalService.getEntryIds(companyId, names);
329     }
330 
331     public static java.lang.String[] getEntryNames()
332         throws com.liferay.portal.SystemException {
333         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
334 
335         return tagsEntryLocalService.getEntryNames();
336     }
337 
338     public static java.lang.String[] getEntryNames(java.lang.String className,
339         long classPK)
340         throws com.liferay.portal.PortalException, 
341             com.liferay.portal.SystemException {
342         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
343 
344         return tagsEntryLocalService.getEntryNames(className, classPK);
345     }
346 
347     public static java.lang.String[] getEntryNames(long classNameId,
348         long classPK)
349         throws com.liferay.portal.PortalException, 
350             com.liferay.portal.SystemException {
351         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
352 
353         return tagsEntryLocalService.getEntryNames(classNameId, classPK);
354     }
355 
356     public static java.util.List search(long companyId, java.lang.String name,
357         java.lang.String[] properties)
358         throws com.liferay.portal.SystemException {
359         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
360 
361         return tagsEntryLocalService.search(companyId, name, properties);
362     }
363 
364     public static java.util.List search(long companyId, java.lang.String name,
365         java.lang.String[] properties, int begin, int end)
366         throws com.liferay.portal.SystemException {
367         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
368 
369         return tagsEntryLocalService.search(companyId, name, properties, begin,
370             end);
371     }
372 
373     public static com.liferay.portal.kernel.json.JSONArrayWrapper searchAutocomplete(
374         long companyId, java.lang.String name, java.lang.String[] properties,
375         int begin, int end) throws com.liferay.portal.SystemException {
376         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
377 
378         return tagsEntryLocalService.searchAutocomplete(companyId, name,
379             properties, begin, end);
380     }
381 
382     public static int searchCount(long companyId, java.lang.String name,
383         java.lang.String[] properties)
384         throws com.liferay.portal.SystemException {
385         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
386 
387         return tagsEntryLocalService.searchCount(companyId, name, properties);
388     }
389 
390     public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
391         long entryId, java.lang.String name)
392         throws com.liferay.portal.PortalException, 
393             com.liferay.portal.SystemException {
394         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
395 
396         return tagsEntryLocalService.updateEntry(entryId, name);
397     }
398 
399     public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
400         long userId, long entryId, java.lang.String name,
401         java.lang.String[] properties)
402         throws com.liferay.portal.PortalException, 
403             com.liferay.portal.SystemException {
404         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
405 
406         return tagsEntryLocalService.updateEntry(userId, entryId, name,
407             properties);
408     }
409 }