1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.tags.service;
21  
22  
23  /**
24   * <a href="TagsEntryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class provides static methods for the
33   * <code>com.liferay.portlet.tags.service.TagsEntryLocalService</code>
34   * bean. The static methods of this class calls the same methods of the bean
35   * instance. It's convenient to be able to just write one line to call a method
36   * on a bean instead of writing a lookup call and a method call.
37   * </p>
38   *
39   * @author Brian Wing Shun Chan
40   *
41   * @see com.liferay.portlet.tags.service.TagsEntryLocalService
42   *
43   */
44  public class TagsEntryLocalServiceUtil {
45      public static com.liferay.portlet.tags.model.TagsEntry addTagsEntry(
46          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
47          throws com.liferay.portal.SystemException {
48          return getService().addTagsEntry(tagsEntry);
49      }
50  
51      public static com.liferay.portlet.tags.model.TagsEntry createTagsEntry(
52          long entryId) {
53          return getService().createTagsEntry(entryId);
54      }
55  
56      public static void deleteTagsEntry(long entryId)
57          throws com.liferay.portal.PortalException,
58              com.liferay.portal.SystemException {
59          getService().deleteTagsEntry(entryId);
60      }
61  
62      public static void deleteTagsEntry(
63          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
64          throws com.liferay.portal.SystemException {
65          getService().deleteTagsEntry(tagsEntry);
66      }
67  
68      public static java.util.List<Object> dynamicQuery(
69          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
70          throws com.liferay.portal.SystemException {
71          return getService().dynamicQuery(dynamicQuery);
72      }
73  
74      public static java.util.List<Object> dynamicQuery(
75          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76          int end) throws com.liferay.portal.SystemException {
77          return getService().dynamicQuery(dynamicQuery, start, end);
78      }
79  
80      public static com.liferay.portlet.tags.model.TagsEntry getTagsEntry(
81          long entryId)
82          throws com.liferay.portal.PortalException,
83              com.liferay.portal.SystemException {
84          return getService().getTagsEntry(entryId);
85      }
86  
87      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
88          int start, int end) throws com.liferay.portal.SystemException {
89          return getService().getTagsEntries(start, end);
90      }
91  
92      public static int getTagsEntriesCount()
93          throws com.liferay.portal.SystemException {
94          return getService().getTagsEntriesCount();
95      }
96  
97      public static com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
98          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
99          throws com.liferay.portal.SystemException {
100         return getService().updateTagsEntry(tagsEntry);
101     }
102 
103     public static com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
104         com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
105         throws com.liferay.portal.SystemException {
106         return getService().updateTagsEntry(tagsEntry, merge);
107     }
108 
109     public static com.liferay.portlet.tags.model.TagsEntry addEntry(
110         long userId, java.lang.String parentEntryName, java.lang.String name,
111         java.lang.String vocabularyName, java.lang.String[] properties,
112         com.liferay.portal.service.ServiceContext serviceContext)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException {
115         return getService()
116                    .addEntry(userId, parentEntryName, name, vocabularyName,
117             properties, serviceContext);
118     }
119 
120     public static void addEntryResources(
121         com.liferay.portlet.tags.model.TagsEntry entry,
122         boolean addCommunityPermissions, boolean addGuestPermissions)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException {
125         getService()
126             .addEntryResources(entry, addCommunityPermissions,
127             addGuestPermissions);
128     }
129 
130     public static void addEntryResources(
131         com.liferay.portlet.tags.model.TagsEntry entry,
132         java.lang.String[] communityPermissions,
133         java.lang.String[] guestPermissions)
134         throws com.liferay.portal.PortalException,
135             com.liferay.portal.SystemException {
136         getService()
137             .addEntryResources(entry, communityPermissions, guestPermissions);
138     }
139 
140     public static void checkEntries(long userId, long groupId,
141         java.lang.String[] names)
142         throws com.liferay.portal.PortalException,
143             com.liferay.portal.SystemException {
144         getService().checkEntries(userId, groupId, names);
145     }
146 
147     public static void deleteEntry(long entryId)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException {
150         getService().deleteEntry(entryId);
151     }
152 
153     public static void deleteEntry(
154         com.liferay.portlet.tags.model.TagsEntry entry)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException {
157         getService().deleteEntry(entry);
158     }
159 
160     public static void deleteVocabularyEntries(long vocabularyId)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException {
163         getService().deleteVocabularyEntries(vocabularyId);
164     }
165 
166     public static boolean hasEntry(long groupId, java.lang.String name,
167         boolean folksonomy)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException {
170         return getService().hasEntry(groupId, name, folksonomy);
171     }
172 
173     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getAssetEntries(
174         long assetId, boolean folksonomy)
175         throws com.liferay.portal.SystemException {
176         return getService().getAssetEntries(assetId, folksonomy);
177     }
178 
179     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries()
180         throws com.liferay.portal.SystemException {
181         return getService().getEntries();
182     }
183 
184     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
185         boolean folksonomy) throws com.liferay.portal.SystemException {
186         return getService().getEntries(folksonomy);
187     }
188 
189     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
190         java.lang.String className, long classPK)
191         throws com.liferay.portal.SystemException {
192         return getService().getEntries(className, classPK);
193     }
194 
195     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
196         long classNameId, long classPK)
197         throws com.liferay.portal.SystemException {
198         return getService().getEntries(classNameId, classPK);
199     }
200 
201     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
202         java.lang.String className, long classPK, boolean folksonomy)
203         throws com.liferay.portal.SystemException {
204         return getService().getEntries(className, classPK, folksonomy);
205     }
206 
207     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
208         long classNameId, long classPK, boolean folksonomy)
209         throws com.liferay.portal.SystemException {
210         return getService().getEntries(classNameId, classPK, folksonomy);
211     }
212 
213     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
214         long groupId, long classNameId, java.lang.String name)
215         throws com.liferay.portal.SystemException {
216         return getService().getEntries(groupId, classNameId, name);
217     }
218 
219     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
220         long groupId, long classNameId, java.lang.String name, int start,
221         int end) throws com.liferay.portal.SystemException {
222         return getService().getEntries(groupId, classNameId, name, start, end);
223     }
224 
225     public static int getEntriesSize(long groupId, long classNameId,
226         java.lang.String name) throws com.liferay.portal.SystemException {
227         return getService().getEntriesSize(groupId, classNameId, name);
228     }
229 
230     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
231         long entryId)
232         throws com.liferay.portal.PortalException,
233             com.liferay.portal.SystemException {
234         return getService().getEntry(entryId);
235     }
236 
237     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
238         long groupId, java.lang.String name)
239         throws com.liferay.portal.PortalException,
240             com.liferay.portal.SystemException {
241         return getService().getEntry(groupId, name);
242     }
243 
244     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
245         long groupId, java.lang.String name, boolean folksonomy)
246         throws com.liferay.portal.PortalException,
247             com.liferay.portal.SystemException {
248         return getService().getEntry(groupId, name, folksonomy);
249     }
250 
251     public static long[] getEntryIds(long groupId, java.lang.String[] names)
252         throws com.liferay.portal.PortalException,
253             com.liferay.portal.SystemException {
254         return getService().getEntryIds(groupId, names);
255     }
256 
257     public static long[] getEntryIds(long groupId, java.lang.String[] names,
258         boolean folksonomy)
259         throws com.liferay.portal.PortalException,
260             com.liferay.portal.SystemException {
261         return getService().getEntryIds(groupId, names, folksonomy);
262     }
263 
264     public static java.lang.String[] getEntryNames()
265         throws com.liferay.portal.SystemException {
266         return getService().getEntryNames();
267     }
268 
269     public static java.lang.String[] getEntryNames(java.lang.String className,
270         long classPK) throws com.liferay.portal.SystemException {
271         return getService().getEntryNames(className, classPK);
272     }
273 
274     public static java.lang.String[] getEntryNames(long classNameId,
275         long classPK) throws com.liferay.portal.SystemException {
276         return getService().getEntryNames(classNameId, classPK);
277     }
278 
279     public static java.lang.String[] getEntryNames(boolean folksonomy)
280         throws com.liferay.portal.SystemException {
281         return getService().getEntryNames(folksonomy);
282     }
283 
284     public static java.lang.String[] getEntryNames(java.lang.String className,
285         long classPK, boolean folksonomy)
286         throws com.liferay.portal.SystemException {
287         return getService().getEntryNames(className, classPK, folksonomy);
288     }
289 
290     public static java.lang.String[] getEntryNames(long classNameId,
291         long classPK, boolean folksonomy)
292         throws com.liferay.portal.SystemException {
293         return getService().getEntryNames(classNameId, classPK, folksonomy);
294     }
295 
296     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
297         long groupId, java.lang.String vocabularyName)
298         throws com.liferay.portal.PortalException,
299             com.liferay.portal.SystemException {
300         return getService().getGroupVocabularyEntries(groupId, vocabularyName);
301     }
302 
303     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
304         long groupId, java.lang.String parentEntryName,
305         java.lang.String vocabularyName)
306         throws com.liferay.portal.PortalException,
307             com.liferay.portal.SystemException {
308         return getService()
309                    .getGroupVocabularyEntries(groupId, parentEntryName,
310             vocabularyName);
311     }
312 
313     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyRootEntries(
314         long groupId, java.lang.String vocabularyName)
315         throws com.liferay.portal.PortalException,
316             com.liferay.portal.SystemException {
317         return getService()
318                    .getGroupVocabularyRootEntries(groupId, vocabularyName);
319     }
320 
321     public static void mergeEntries(long fromEntryId, long toEntryId)
322         throws com.liferay.portal.PortalException,
323             com.liferay.portal.SystemException {
324         getService().mergeEntries(fromEntryId, toEntryId);
325     }
326 
327     public static com.liferay.portal.kernel.json.JSONArray search(
328         long groupId, java.lang.String name, java.lang.String[] properties,
329         int start, int end) throws com.liferay.portal.SystemException {
330         return getService().search(groupId, name, properties, start, end);
331     }
332 
333     public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
334         long userId, long entryId, java.lang.String parentEntryName,
335         java.lang.String name, java.lang.String vocabularyName,
336         java.lang.String[] properties)
337         throws com.liferay.portal.PortalException,
338             com.liferay.portal.SystemException {
339         return getService()
340                    .updateEntry(userId, entryId, parentEntryName, name,
341             vocabularyName, properties);
342     }
343 
344     public static TagsEntryLocalService getService() {
345         if (_service == null) {
346             throw new RuntimeException("TagsEntryLocalService is not set");
347         }
348 
349         return _service;
350     }
351 
352     public void setService(TagsEntryLocalService service) {
353         _service = service;
354     }
355 
356     private static TagsEntryLocalService _service;
357 }