1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.tags.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.util.MethodCache;
19  import com.liferay.portal.kernel.util.ReferenceRegistry;
20  
21  /**
22   * <a href="TagsEntryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * <p>
30   * This class provides static methods for the
31   * {@link TagsEntryLocalService} bean. The static methods of
32   * this class calls the same methods of the bean instance. It's convenient to be
33   * able to just write one line to call a method on a bean instead of writing a
34   * lookup call and a method call.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       TagsEntryLocalService
39   * @generated
40   */
41  public class TagsEntryLocalServiceUtil {
42      public static com.liferay.portlet.tags.model.TagsEntry addTagsEntry(
43          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
44          throws com.liferay.portal.SystemException {
45          return getService().addTagsEntry(tagsEntry);
46      }
47  
48      public static com.liferay.portlet.tags.model.TagsEntry createTagsEntry(
49          long entryId) {
50          return getService().createTagsEntry(entryId);
51      }
52  
53      public static void deleteTagsEntry(long entryId)
54          throws com.liferay.portal.PortalException,
55              com.liferay.portal.SystemException {
56          getService().deleteTagsEntry(entryId);
57      }
58  
59      public static void deleteTagsEntry(
60          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
61          throws com.liferay.portal.SystemException {
62          getService().deleteTagsEntry(tagsEntry);
63      }
64  
65      @SuppressWarnings("rawtypes")
66      public static java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return getService().dynamicQuery(dynamicQuery);
70      }
71  
72      @SuppressWarnings("rawtypes")
73      public static java.util.List dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end) throws com.liferay.portal.SystemException {
76          return getService().dynamicQuery(dynamicQuery, start, end);
77      }
78  
79      @SuppressWarnings("rawtypes")
80      public static java.util.List dynamicQuery(
81          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82          int end,
83          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84          throws com.liferay.portal.SystemException {
85          return getService()
86                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87      }
88  
89      public static int dynamicQueryCount(
90          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91          throws com.liferay.portal.SystemException {
92          return getService().dynamicQueryCount(dynamicQuery);
93      }
94  
95      public static com.liferay.portlet.tags.model.TagsEntry getTagsEntry(
96          long entryId)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException {
99          return getService().getTagsEntry(entryId);
100     }
101 
102     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
103         int start, int end) throws com.liferay.portal.SystemException {
104         return getService().getTagsEntries(start, end);
105     }
106 
107     public static int getTagsEntriesCount()
108         throws com.liferay.portal.SystemException {
109         return getService().getTagsEntriesCount();
110     }
111 
112     public static com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
113         com.liferay.portlet.tags.model.TagsEntry tagsEntry)
114         throws com.liferay.portal.SystemException {
115         return getService().updateTagsEntry(tagsEntry);
116     }
117 
118     public static com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
119         com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
120         throws com.liferay.portal.SystemException {
121         return getService().updateTagsEntry(tagsEntry, merge);
122     }
123 
124     public static com.liferay.portlet.tags.model.TagsEntry addEntry(
125         long userId, java.lang.String parentEntryName, java.lang.String name,
126         java.lang.String vocabularyName, java.lang.String[] properties,
127         com.liferay.portal.service.ServiceContext serviceContext)
128         throws com.liferay.portal.PortalException,
129             com.liferay.portal.SystemException {
130         return getService()
131                    .addEntry(userId, parentEntryName, name, vocabularyName,
132             properties, serviceContext);
133     }
134 
135     public static void addEntryResources(
136         com.liferay.portlet.tags.model.TagsEntry entry,
137         boolean addCommunityPermissions, boolean addGuestPermissions)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException {
140         getService()
141             .addEntryResources(entry, addCommunityPermissions,
142             addGuestPermissions);
143     }
144 
145     public static void addEntryResources(
146         com.liferay.portlet.tags.model.TagsEntry entry,
147         java.lang.String[] communityPermissions,
148         java.lang.String[] guestPermissions)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException {
151         getService()
152             .addEntryResources(entry, communityPermissions, guestPermissions);
153     }
154 
155     public static void checkEntries(long userId, long groupId,
156         java.lang.String[] names)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException {
159         getService().checkEntries(userId, groupId, names);
160     }
161 
162     public static void deleteEntry(long entryId)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException {
165         getService().deleteEntry(entryId);
166     }
167 
168     public static void deleteEntry(
169         com.liferay.portlet.tags.model.TagsEntry entry)
170         throws com.liferay.portal.PortalException,
171             com.liferay.portal.SystemException {
172         getService().deleteEntry(entry);
173     }
174 
175     public static void deleteVocabularyEntries(long vocabularyId)
176         throws com.liferay.portal.PortalException,
177             com.liferay.portal.SystemException {
178         getService().deleteVocabularyEntries(vocabularyId);
179     }
180 
181     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getAssetEntries(
182         long assetId, boolean folksonomy)
183         throws com.liferay.portal.SystemException {
184         return getService().getAssetEntries(assetId, folksonomy);
185     }
186 
187     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries()
188         throws com.liferay.portal.SystemException {
189         return getService().getEntries();
190     }
191 
192     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
193         boolean folksonomy) throws com.liferay.portal.SystemException {
194         return getService().getEntries(folksonomy);
195     }
196 
197     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
198         long classNameId, long classPK)
199         throws com.liferay.portal.SystemException {
200         return getService().getEntries(classNameId, classPK);
201     }
202 
203     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
204         long classNameId, long classPK, boolean folksonomy)
205         throws com.liferay.portal.SystemException {
206         return getService().getEntries(classNameId, classPK, folksonomy);
207     }
208 
209     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
210         long groupId, long classNameId, java.lang.String name)
211         throws com.liferay.portal.SystemException {
212         return getService().getEntries(groupId, classNameId, name);
213     }
214 
215     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
216         long groupId, long classNameId, java.lang.String name, int start,
217         int end) throws com.liferay.portal.SystemException {
218         return getService().getEntries(groupId, classNameId, name, start, end);
219     }
220 
221     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
222         java.lang.String className, long classPK)
223         throws com.liferay.portal.SystemException {
224         return getService().getEntries(className, classPK);
225     }
226 
227     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
228         java.lang.String className, long classPK, boolean folksonomy)
229         throws com.liferay.portal.SystemException {
230         return getService().getEntries(className, classPK, folksonomy);
231     }
232 
233     public static int getEntriesSize(long groupId, long classNameId,
234         java.lang.String name) throws com.liferay.portal.SystemException {
235         return getService().getEntriesSize(groupId, classNameId, name);
236     }
237 
238     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
239         long entryId)
240         throws com.liferay.portal.PortalException,
241             com.liferay.portal.SystemException {
242         return getService().getEntry(entryId);
243     }
244 
245     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
246         long groupId, java.lang.String name)
247         throws com.liferay.portal.PortalException,
248             com.liferay.portal.SystemException {
249         return getService().getEntry(groupId, name);
250     }
251 
252     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
253         long groupId, java.lang.String name, boolean folksonomy)
254         throws com.liferay.portal.PortalException,
255             com.liferay.portal.SystemException {
256         return getService().getEntry(groupId, name, folksonomy);
257     }
258 
259     public static long[] getEntryIds(long groupId, java.lang.String[] names)
260         throws com.liferay.portal.PortalException,
261             com.liferay.portal.SystemException {
262         return getService().getEntryIds(groupId, names);
263     }
264 
265     public static long[] getEntryIds(long groupId, java.lang.String[] names,
266         boolean folksonomy)
267         throws com.liferay.portal.PortalException,
268             com.liferay.portal.SystemException {
269         return getService().getEntryIds(groupId, names, folksonomy);
270     }
271 
272     public static java.lang.String[] getEntryNames()
273         throws com.liferay.portal.SystemException {
274         return getService().getEntryNames();
275     }
276 
277     public static java.lang.String[] getEntryNames(boolean folksonomy)
278         throws com.liferay.portal.SystemException {
279         return getService().getEntryNames(folksonomy);
280     }
281 
282     public static java.lang.String[] getEntryNames(long classNameId,
283         long classPK) throws com.liferay.portal.SystemException {
284         return getService().getEntryNames(classNameId, classPK);
285     }
286 
287     public static java.lang.String[] getEntryNames(long classNameId,
288         long classPK, boolean folksonomy)
289         throws com.liferay.portal.SystemException {
290         return getService().getEntryNames(classNameId, classPK, folksonomy);
291     }
292 
293     public static java.lang.String[] getEntryNames(java.lang.String className,
294         long classPK) throws com.liferay.portal.SystemException {
295         return getService().getEntryNames(className, classPK);
296     }
297 
298     public static java.lang.String[] getEntryNames(java.lang.String className,
299         long classPK, boolean folksonomy)
300         throws com.liferay.portal.SystemException {
301         return getService().getEntryNames(className, classPK, folksonomy);
302     }
303 
304     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
305         long groupId, java.lang.String vocabularyName)
306         throws com.liferay.portal.PortalException,
307             com.liferay.portal.SystemException {
308         return getService().getGroupVocabularyEntries(groupId, vocabularyName);
309     }
310 
311     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
312         long groupId, java.lang.String parentEntryName,
313         java.lang.String vocabularyName)
314         throws com.liferay.portal.PortalException,
315             com.liferay.portal.SystemException {
316         return getService()
317                    .getGroupVocabularyEntries(groupId, parentEntryName,
318             vocabularyName);
319     }
320 
321     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyRootEntries(
322         long groupId, java.lang.String vocabularyName)
323         throws com.liferay.portal.PortalException,
324             com.liferay.portal.SystemException {
325         return getService()
326                    .getGroupVocabularyRootEntries(groupId, vocabularyName);
327     }
328 
329     public static boolean hasEntry(long groupId, java.lang.String name,
330         boolean folksonomy)
331         throws com.liferay.portal.PortalException,
332             com.liferay.portal.SystemException {
333         return getService().hasEntry(groupId, name, folksonomy);
334     }
335 
336     public static void mergeEntries(long fromEntryId, long toEntryId)
337         throws com.liferay.portal.PortalException,
338             com.liferay.portal.SystemException {
339         getService().mergeEntries(fromEntryId, toEntryId);
340     }
341 
342     public static com.liferay.portal.kernel.json.JSONArray search(
343         long groupId, java.lang.String name, java.lang.String[] properties,
344         int start, int end) throws com.liferay.portal.SystemException {
345         return getService().search(groupId, name, properties, start, end);
346     }
347 
348     public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
349         long userId, long entryId, java.lang.String parentEntryName,
350         java.lang.String name, java.lang.String vocabularyName,
351         java.lang.String[] properties)
352         throws com.liferay.portal.PortalException,
353             com.liferay.portal.SystemException {
354         return getService()
355                    .updateEntry(userId, entryId, parentEntryName, name,
356             vocabularyName, properties);
357     }
358 
359     public static TagsEntryLocalService getService() {
360         if (_service == null) {
361             _service = (TagsEntryLocalService)PortalBeanLocatorUtil.locate(TagsEntryLocalService.class.getName());
362 
363             ReferenceRegistry.registerReference(TagsEntryLocalServiceUtil.class,
364                 "_service");
365             MethodCache.remove(TagsEntryLocalService.class);
366         }
367 
368         return _service;
369     }
370 
371     public void setService(TagsEntryLocalService service) {
372         MethodCache.remove(TagsEntryLocalService.class);
373 
374         _service = service;
375 
376         ReferenceRegistry.registerReference(TagsEntryLocalServiceUtil.class,
377             "_service");
378         MethodCache.remove(TagsEntryLocalService.class);
379     }
380 
381     private static TagsEntryLocalService _service;
382 }