1   /**
2    * Copyright (c) 2000-2009 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   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.tags.service.TagsEntryLocalService
45   *
46   */
47  public class TagsEntryLocalServiceUtil {
48      public static com.liferay.portlet.tags.model.TagsEntry addTagsEntry(
49          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
50          throws com.liferay.portal.SystemException {
51          return getService().addTagsEntry(tagsEntry);
52      }
53  
54      public static com.liferay.portlet.tags.model.TagsEntry createTagsEntry(
55          long entryId) {
56          return getService().createTagsEntry(entryId);
57      }
58  
59      public static void deleteTagsEntry(long entryId)
60          throws com.liferay.portal.PortalException,
61              com.liferay.portal.SystemException {
62          getService().deleteTagsEntry(entryId);
63      }
64  
65      public static void deleteTagsEntry(
66          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
67          throws com.liferay.portal.SystemException {
68          getService().deleteTagsEntry(tagsEntry);
69      }
70  
71      public static java.util.List<Object> dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73          throws com.liferay.portal.SystemException {
74          return getService().dynamicQuery(dynamicQuery);
75      }
76  
77      public static java.util.List<Object> dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end) throws com.liferay.portal.SystemException {
80          return getService().dynamicQuery(dynamicQuery, start, end);
81      }
82  
83      public static com.liferay.portlet.tags.model.TagsEntry getTagsEntry(
84          long entryId)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException {
87          return getService().getTagsEntry(entryId);
88      }
89  
90      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
91          int start, int end) throws com.liferay.portal.SystemException {
92          return getService().getTagsEntries(start, end);
93      }
94  
95      public static int getTagsEntriesCount()
96          throws com.liferay.portal.SystemException {
97          return getService().getTagsEntriesCount();
98      }
99  
100     public static com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
101         com.liferay.portlet.tags.model.TagsEntry tagsEntry)
102         throws com.liferay.portal.SystemException {
103         return getService().updateTagsEntry(tagsEntry);
104     }
105 
106     public static com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
107         com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
108         throws com.liferay.portal.SystemException {
109         return getService().updateTagsEntry(tagsEntry, merge);
110     }
111 
112     public static com.liferay.portlet.tags.model.TagsEntry addEntry(
113         long userId, java.lang.String parentEntryName, java.lang.String name,
114         java.lang.String vocabularyName, java.lang.String[] properties,
115         com.liferay.portal.service.ServiceContext serviceContext)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException {
118         return getService()
119                    .addEntry(userId, parentEntryName, name, vocabularyName,
120             properties, serviceContext);
121     }
122 
123     public static void addEntryResources(
124         com.liferay.portlet.tags.model.TagsEntry entry,
125         boolean addCommunityPermissions, boolean addGuestPermissions)
126         throws com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException {
128         getService()
129             .addEntryResources(entry, addCommunityPermissions,
130             addGuestPermissions);
131     }
132 
133     public static void addEntryResources(
134         com.liferay.portlet.tags.model.TagsEntry entry,
135         java.lang.String[] communityPermissions,
136         java.lang.String[] guestPermissions)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException {
139         getService()
140             .addEntryResources(entry, communityPermissions, guestPermissions);
141     }
142 
143     public static void checkEntries(long userId, long groupId,
144         java.lang.String[] names)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException {
147         getService().checkEntries(userId, groupId, names);
148     }
149 
150     public static void deleteEntry(long entryId)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException {
153         getService().deleteEntry(entryId);
154     }
155 
156     public static void deleteEntry(
157         com.liferay.portlet.tags.model.TagsEntry entry)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException {
160         getService().deleteEntry(entry);
161     }
162 
163     public static void deleteVocabularyEntries(long vocabularyId)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException {
166         getService().deleteVocabularyEntries(vocabularyId);
167     }
168 
169     public static boolean hasEntry(long groupId, java.lang.String name,
170         boolean folksonomy)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException {
173         return getService().hasEntry(groupId, name, folksonomy);
174     }
175 
176     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getAssetEntries(
177         long assetId, boolean folksonomy)
178         throws com.liferay.portal.SystemException {
179         return getService().getAssetEntries(assetId, folksonomy);
180     }
181 
182     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries()
183         throws com.liferay.portal.SystemException {
184         return getService().getEntries();
185     }
186 
187     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
188         boolean folksonomy) throws com.liferay.portal.SystemException {
189         return getService().getEntries(folksonomy);
190     }
191 
192     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
193         java.lang.String className, long classPK)
194         throws com.liferay.portal.SystemException {
195         return getService().getEntries(className, classPK);
196     }
197 
198     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
199         long classNameId, long classPK)
200         throws com.liferay.portal.SystemException {
201         return getService().getEntries(classNameId, classPK);
202     }
203 
204     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
205         java.lang.String className, long classPK, boolean folksonomy)
206         throws com.liferay.portal.SystemException {
207         return getService().getEntries(className, classPK, folksonomy);
208     }
209 
210     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
211         long classNameId, long classPK, boolean folksonomy)
212         throws com.liferay.portal.SystemException {
213         return getService().getEntries(classNameId, classPK, folksonomy);
214     }
215 
216     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
217         long groupId, long classNameId, java.lang.String name)
218         throws com.liferay.portal.SystemException {
219         return getService().getEntries(groupId, classNameId, name);
220     }
221 
222     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
223         long groupId, long classNameId, java.lang.String name, int start,
224         int end) throws com.liferay.portal.SystemException {
225         return getService().getEntries(groupId, classNameId, name, start, end);
226     }
227 
228     public static int getEntriesSize(long groupId, long classNameId,
229         java.lang.String name) throws com.liferay.portal.SystemException {
230         return getService().getEntriesSize(groupId, classNameId, name);
231     }
232 
233     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
234         long entryId)
235         throws com.liferay.portal.PortalException,
236             com.liferay.portal.SystemException {
237         return getService().getEntry(entryId);
238     }
239 
240     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
241         long groupId, java.lang.String name)
242         throws com.liferay.portal.PortalException,
243             com.liferay.portal.SystemException {
244         return getService().getEntry(groupId, name);
245     }
246 
247     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
248         long groupId, java.lang.String name, boolean folksonomy)
249         throws com.liferay.portal.PortalException,
250             com.liferay.portal.SystemException {
251         return getService().getEntry(groupId, name, folksonomy);
252     }
253 
254     public static long[] getEntryIds(long groupId, java.lang.String[] names)
255         throws com.liferay.portal.PortalException,
256             com.liferay.portal.SystemException {
257         return getService().getEntryIds(groupId, names);
258     }
259 
260     public static long[] getEntryIds(long groupId, java.lang.String[] names,
261         boolean folksonomy)
262         throws com.liferay.portal.PortalException,
263             com.liferay.portal.SystemException {
264         return getService().getEntryIds(groupId, names, folksonomy);
265     }
266 
267     public static java.lang.String[] getEntryNames()
268         throws com.liferay.portal.SystemException {
269         return getService().getEntryNames();
270     }
271 
272     public static java.lang.String[] getEntryNames(java.lang.String className,
273         long classPK) throws com.liferay.portal.SystemException {
274         return getService().getEntryNames(className, classPK);
275     }
276 
277     public static java.lang.String[] getEntryNames(long classNameId,
278         long classPK) throws com.liferay.portal.SystemException {
279         return getService().getEntryNames(classNameId, classPK);
280     }
281 
282     public static java.lang.String[] getEntryNames(boolean folksonomy)
283         throws com.liferay.portal.SystemException {
284         return getService().getEntryNames(folksonomy);
285     }
286 
287     public static java.lang.String[] getEntryNames(java.lang.String className,
288         long classPK, boolean folksonomy)
289         throws com.liferay.portal.SystemException {
290         return getService().getEntryNames(className, classPK, folksonomy);
291     }
292 
293     public static java.lang.String[] getEntryNames(long classNameId,
294         long classPK, boolean folksonomy)
295         throws com.liferay.portal.SystemException {
296         return getService().getEntryNames(classNameId, classPK, folksonomy);
297     }
298 
299     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
300         long groupId, java.lang.String vocabularyName)
301         throws com.liferay.portal.PortalException,
302             com.liferay.portal.SystemException {
303         return getService().getGroupVocabularyEntries(groupId, vocabularyName);
304     }
305 
306     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
307         long groupId, java.lang.String parentEntryName,
308         java.lang.String vocabularyName)
309         throws com.liferay.portal.PortalException,
310             com.liferay.portal.SystemException {
311         return getService()
312                    .getGroupVocabularyEntries(groupId, parentEntryName,
313             vocabularyName);
314     }
315 
316     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyRootEntries(
317         long groupId, java.lang.String vocabularyName)
318         throws com.liferay.portal.PortalException,
319             com.liferay.portal.SystemException {
320         return getService()
321                    .getGroupVocabularyRootEntries(groupId, vocabularyName);
322     }
323 
324     public static void mergeEntries(long fromEntryId, long toEntryId)
325         throws com.liferay.portal.PortalException,
326             com.liferay.portal.SystemException {
327         getService().mergeEntries(fromEntryId, toEntryId);
328     }
329 
330     public static com.liferay.portal.kernel.json.JSONArray search(
331         long groupId, java.lang.String name, java.lang.String[] properties,
332         int start, int end) throws com.liferay.portal.SystemException {
333         return getService().search(groupId, name, properties, start, end);
334     }
335 
336     public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
337         long userId, long entryId, java.lang.String parentEntryName,
338         java.lang.String name, java.lang.String vocabularyName,
339         java.lang.String[] properties)
340         throws com.liferay.portal.PortalException,
341             com.liferay.portal.SystemException {
342         return getService()
343                    .updateEntry(userId, entryId, parentEntryName, name,
344             vocabularyName, properties);
345     }
346 
347     public static TagsEntryLocalService getService() {
348         if (_service == null) {
349             throw new RuntimeException("TagsEntryLocalService is not set");
350         }
351 
352         return _service;
353     }
354 
355     public void setService(TagsEntryLocalService service) {
356         _service = service;
357     }
358 
359     private static TagsEntryLocalService _service;
360 }