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 addEntry(
107         long userId, java.lang.String parentEntryName, java.lang.String name,
108         java.lang.String vocabularyName, java.lang.String[] properties,
109         com.liferay.portal.service.ServiceContext serviceContext)
110         throws com.liferay.portal.PortalException,
111             com.liferay.portal.SystemException {
112         return getService()
113                    .addEntry(userId, parentEntryName, name, vocabularyName,
114             properties, serviceContext);
115     }
116 
117     public static void addEntryResources(
118         com.liferay.portlet.tags.model.TagsEntry entry,
119         boolean addCommunityPermissions, boolean addGuestPermissions)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException {
122         getService()
123             .addEntryResources(entry, addCommunityPermissions,
124             addGuestPermissions);
125     }
126 
127     public static void addEntryResources(
128         com.liferay.portlet.tags.model.TagsEntry entry,
129         java.lang.String[] communityPermissions,
130         java.lang.String[] guestPermissions)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException {
133         getService()
134             .addEntryResources(entry, communityPermissions, guestPermissions);
135     }
136 
137     public static void checkEntries(long userId, long groupId,
138         java.lang.String[] names)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException {
141         getService().checkEntries(userId, groupId, names);
142     }
143 
144     public static void deleteEntry(long entryId)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException {
147         getService().deleteEntry(entryId);
148     }
149 
150     public static void deleteEntry(
151         com.liferay.portlet.tags.model.TagsEntry entry)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException {
154         getService().deleteEntry(entry);
155     }
156 
157     public static void deleteVocabularyEntries(long vocabularyId)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException {
160         getService().deleteVocabularyEntries(vocabularyId);
161     }
162 
163     public static boolean hasEntry(long groupId, java.lang.String name,
164         boolean folksonomy)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException {
167         return getService().hasEntry(groupId, name, folksonomy);
168     }
169 
170     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getAssetEntries(
171         long assetId, boolean folksonomy)
172         throws com.liferay.portal.SystemException {
173         return getService().getAssetEntries(assetId, folksonomy);
174     }
175 
176     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries()
177         throws com.liferay.portal.SystemException {
178         return getService().getEntries();
179     }
180 
181     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
182         boolean folksonomy) throws com.liferay.portal.SystemException {
183         return getService().getEntries(folksonomy);
184     }
185 
186     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
187         java.lang.String className, long classPK)
188         throws com.liferay.portal.SystemException {
189         return getService().getEntries(className, classPK);
190     }
191 
192     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
193         long classNameId, long classPK)
194         throws com.liferay.portal.SystemException {
195         return getService().getEntries(classNameId, classPK);
196     }
197 
198     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
199         java.lang.String className, long classPK, boolean folksonomy)
200         throws com.liferay.portal.SystemException {
201         return getService().getEntries(className, classPK, folksonomy);
202     }
203 
204     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
205         long classNameId, long classPK, boolean folksonomy)
206         throws com.liferay.portal.SystemException {
207         return getService().getEntries(classNameId, classPK, folksonomy);
208     }
209 
210     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
211         long groupId, long classNameId, java.lang.String name)
212         throws com.liferay.portal.SystemException {
213         return getService().getEntries(groupId, classNameId, name);
214     }
215 
216     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
217         long groupId, long classNameId, java.lang.String name, int start,
218         int end) throws com.liferay.portal.SystemException {
219         return getService().getEntries(groupId, classNameId, name, start, end);
220     }
221 
222     public static int getEntriesSize(long groupId, long classNameId,
223         java.lang.String name) throws com.liferay.portal.SystemException {
224         return getService().getEntriesSize(groupId, classNameId, name);
225     }
226 
227     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
228         long entryId)
229         throws com.liferay.portal.PortalException,
230             com.liferay.portal.SystemException {
231         return getService().getEntry(entryId);
232     }
233 
234     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
235         long groupId, java.lang.String name)
236         throws com.liferay.portal.PortalException,
237             com.liferay.portal.SystemException {
238         return getService().getEntry(groupId, name);
239     }
240 
241     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
242         long groupId, java.lang.String name, boolean folksonomy)
243         throws com.liferay.portal.PortalException,
244             com.liferay.portal.SystemException {
245         return getService().getEntry(groupId, name, folksonomy);
246     }
247 
248     public static long[] getEntryIds(long groupId, java.lang.String[] names)
249         throws com.liferay.portal.PortalException,
250             com.liferay.portal.SystemException {
251         return getService().getEntryIds(groupId, names);
252     }
253 
254     public static long[] getEntryIds(long groupId, java.lang.String[] names,
255         boolean folksonomy)
256         throws com.liferay.portal.PortalException,
257             com.liferay.portal.SystemException {
258         return getService().getEntryIds(groupId, names, folksonomy);
259     }
260 
261     public static java.lang.String[] getEntryNames()
262         throws com.liferay.portal.SystemException {
263         return getService().getEntryNames();
264     }
265 
266     public static java.lang.String[] getEntryNames(java.lang.String className,
267         long classPK) throws com.liferay.portal.SystemException {
268         return getService().getEntryNames(className, classPK);
269     }
270 
271     public static java.lang.String[] getEntryNames(long classNameId,
272         long classPK) throws com.liferay.portal.SystemException {
273         return getService().getEntryNames(classNameId, classPK);
274     }
275 
276     public static java.lang.String[] getEntryNames(boolean folksonomy)
277         throws com.liferay.portal.SystemException {
278         return getService().getEntryNames(folksonomy);
279     }
280 
281     public static java.lang.String[] getEntryNames(java.lang.String className,
282         long classPK, boolean folksonomy)
283         throws com.liferay.portal.SystemException {
284         return getService().getEntryNames(className, classPK, folksonomy);
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.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
294         long groupId, java.lang.String vocabularyName)
295         throws com.liferay.portal.PortalException,
296             com.liferay.portal.SystemException {
297         return getService().getGroupVocabularyEntries(groupId, vocabularyName);
298     }
299 
300     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
301         long groupId, java.lang.String parentEntryName,
302         java.lang.String vocabularyName)
303         throws com.liferay.portal.PortalException,
304             com.liferay.portal.SystemException {
305         return getService()
306                    .getGroupVocabularyEntries(groupId, parentEntryName,
307             vocabularyName);
308     }
309 
310     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyRootEntries(
311         long groupId, java.lang.String vocabularyName)
312         throws com.liferay.portal.PortalException,
313             com.liferay.portal.SystemException {
314         return getService()
315                    .getGroupVocabularyRootEntries(groupId, vocabularyName);
316     }
317 
318     public static void mergeEntries(long fromEntryId, long toEntryId)
319         throws com.liferay.portal.PortalException,
320             com.liferay.portal.SystemException {
321         getService().mergeEntries(fromEntryId, toEntryId);
322     }
323 
324     public static com.liferay.portal.kernel.json.JSONArray search(
325         long groupId, java.lang.String name, java.lang.String[] properties,
326         int start, int end) throws com.liferay.portal.SystemException {
327         return getService().search(groupId, name, properties, start, end);
328     }
329 
330     public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
331         long userId, long entryId, java.lang.String parentEntryName,
332         java.lang.String name, java.lang.String vocabularyName,
333         java.lang.String[] properties)
334         throws com.liferay.portal.PortalException,
335             com.liferay.portal.SystemException {
336         return getService()
337                    .updateEntry(userId, entryId, parentEntryName, name,
338             vocabularyName, properties);
339     }
340 
341     public static TagsEntryLocalService getService() {
342         if (_service == null) {
343             throw new RuntimeException("TagsEntryLocalService is not set");
344         }
345 
346         return _service;
347     }
348 
349     public void setService(TagsEntryLocalService service) {
350         _service = service;
351     }
352 
353     private static TagsEntryLocalService _service;
354 }