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