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 name)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException {
116         return getService().addEntry(userId, name);
117     }
118 
119     public static com.liferay.portlet.tags.model.TagsEntry addEntry(
120         long userId, java.lang.String name, java.lang.String[] properties)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException {
123         return getService().addEntry(userId, name, properties);
124     }
125 
126     public static void checkEntries(long userId, java.lang.String[] names)
127         throws com.liferay.portal.PortalException,
128             com.liferay.portal.SystemException {
129         getService().checkEntries(userId, names);
130     }
131 
132     public static void deleteEntry(long entryId)
133         throws com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException {
135         getService().deleteEntry(entryId);
136     }
137 
138     public static void deleteEntry(
139         com.liferay.portlet.tags.model.TagsEntry entry)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException {
142         getService().deleteEntry(entry);
143     }
144 
145     public static boolean hasEntry(long companyId, java.lang.String name)
146         throws com.liferay.portal.SystemException {
147         return getService().hasEntry(companyId, name);
148     }
149 
150     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getAssetEntries(
151         long assetId) throws com.liferay.portal.SystemException {
152         return getService().getAssetEntries(assetId);
153     }
154 
155     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries()
156         throws com.liferay.portal.SystemException {
157         return getService().getEntries();
158     }
159 
160     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
161         java.lang.String className, long classPK)
162         throws com.liferay.portal.SystemException {
163         return getService().getEntries(className, classPK);
164     }
165 
166     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
167         long classNameId, long classPK)
168         throws com.liferay.portal.SystemException {
169         return getService().getEntries(classNameId, classPK);
170     }
171 
172     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
173         long groupId, long companyId, long classNameId, java.lang.String name)
174         throws com.liferay.portal.SystemException {
175         return getService().getEntries(groupId, companyId, classNameId, name);
176     }
177 
178     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
179         long groupId, long companyId, long classNameId, java.lang.String name,
180         int start, int end) throws com.liferay.portal.SystemException {
181         return getService()
182                    .getEntries(groupId, companyId, classNameId, name, start, end);
183     }
184 
185     public static int getEntriesSize(long groupId, long companyId,
186         long classNameId, java.lang.String name)
187         throws com.liferay.portal.SystemException {
188         return getService().getEntriesSize(groupId, companyId, classNameId, name);
189     }
190 
191     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
192         long entryId)
193         throws com.liferay.portal.PortalException,
194             com.liferay.portal.SystemException {
195         return getService().getEntry(entryId);
196     }
197 
198     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
199         long companyId, java.lang.String name)
200         throws com.liferay.portal.PortalException,
201             com.liferay.portal.SystemException {
202         return getService().getEntry(companyId, name);
203     }
204 
205     public static long[] getEntryIds(long companyId, java.lang.String[] names)
206         throws com.liferay.portal.SystemException {
207         return getService().getEntryIds(companyId, names);
208     }
209 
210     public static java.lang.String[] getEntryNames()
211         throws com.liferay.portal.SystemException {
212         return getService().getEntryNames();
213     }
214 
215     public static java.lang.String[] getEntryNames(java.lang.String className,
216         long classPK) throws com.liferay.portal.SystemException {
217         return getService().getEntryNames(className, classPK);
218     }
219 
220     public static java.lang.String[] getEntryNames(long classNameId,
221         long classPK) throws com.liferay.portal.SystemException {
222         return getService().getEntryNames(classNameId, classPK);
223     }
224 
225     public static void mergeEntries(long fromEntryId, long toEntryId)
226         throws com.liferay.portal.PortalException,
227             com.liferay.portal.SystemException {
228         getService().mergeEntries(fromEntryId, toEntryId);
229     }
230 
231     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
232         long companyId, java.lang.String name, java.lang.String[] properties)
233         throws com.liferay.portal.SystemException {
234         return getService().search(companyId, name, properties);
235     }
236 
237     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
238         long companyId, java.lang.String name, java.lang.String[] properties,
239         int start, int end) throws com.liferay.portal.SystemException {
240         return getService().search(companyId, name, properties, start, end);
241     }
242 
243     public static com.liferay.portal.kernel.json.JSONArray searchAutocomplete(
244         long companyId, java.lang.String name, java.lang.String[] properties,
245         int start, int end) throws com.liferay.portal.SystemException {
246         return getService()
247                    .searchAutocomplete(companyId, name, properties, start, end);
248     }
249 
250     public static int searchCount(long companyId, java.lang.String name,
251         java.lang.String[] properties)
252         throws com.liferay.portal.SystemException {
253         return getService().searchCount(companyId, name, properties);
254     }
255 
256     public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
257         long entryId, java.lang.String name)
258         throws com.liferay.portal.PortalException,
259             com.liferay.portal.SystemException {
260         return getService().updateEntry(entryId, name);
261     }
262 
263     public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
264         long userId, long entryId, java.lang.String name,
265         java.lang.String[] properties)
266         throws com.liferay.portal.PortalException,
267             com.liferay.portal.SystemException {
268         return getService().updateEntry(userId, entryId, name, properties);
269     }
270 
271     public static TagsEntryLocalService getService() {
272         if (_service == null) {
273             throw new RuntimeException("TagsEntryLocalService is not set");
274         }
275 
276         return _service;
277     }
278 
279     public void setService(TagsEntryLocalService service) {
280         _service = service;
281     }
282 
283     private static TagsEntryLocalService _service;
284 }