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