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 _service.addTagsEntry(tagsEntry);
52      }
53  
54      public static void deleteTagsEntry(long entryId)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException {
57          _service.deleteTagsEntry(entryId);
58      }
59  
60      public static void deleteTagsEntry(
61          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
62          throws com.liferay.portal.SystemException {
63          _service.deleteTagsEntry(tagsEntry);
64      }
65  
66      public static java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return _service.dynamicQuery(dynamicQuery);
70      }
71  
72      public static java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end) throws com.liferay.portal.SystemException {
75          return _service.dynamicQuery(dynamicQuery, start, end);
76      }
77  
78      public static com.liferay.portlet.tags.model.TagsEntry getTagsEntry(
79          long entryId)
80          throws com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException {
82          return _service.getTagsEntry(entryId);
83      }
84  
85      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
86          int start, int end) throws com.liferay.portal.SystemException {
87          return _service.getTagsEntries(start, end);
88      }
89  
90      public static int getTagsEntriesCount()
91          throws com.liferay.portal.SystemException {
92          return _service.getTagsEntriesCount();
93      }
94  
95      public static com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
96          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
97          throws com.liferay.portal.SystemException {
98          return _service.updateTagsEntry(tagsEntry);
99      }
100 
101     public static com.liferay.portlet.tags.model.TagsEntry addEntry(
102         long userId, java.lang.String name)
103         throws com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException {
105         return _service.addEntry(userId, name);
106     }
107 
108     public static com.liferay.portlet.tags.model.TagsEntry addEntry(
109         long userId, java.lang.String name, java.lang.String[] properties)
110         throws com.liferay.portal.PortalException,
111             com.liferay.portal.SystemException {
112         return _service.addEntry(userId, name, properties);
113     }
114 
115     public static void checkEntries(long userId, java.lang.String[] names)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException {
118         _service.checkEntries(userId, names);
119     }
120 
121     public static void deleteEntry(long entryId)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         _service.deleteEntry(entryId);
125     }
126 
127     public static void deleteEntry(
128         com.liferay.portlet.tags.model.TagsEntry entry)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException {
131         _service.deleteEntry(entry);
132     }
133 
134     public static boolean hasEntry(long companyId, java.lang.String name)
135         throws com.liferay.portal.SystemException {
136         return _service.hasEntry(companyId, name);
137     }
138 
139     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getAssetEntries(
140         long assetId) throws com.liferay.portal.SystemException {
141         return _service.getAssetEntries(assetId);
142     }
143 
144     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries()
145         throws com.liferay.portal.SystemException {
146         return _service.getEntries();
147     }
148 
149     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
150         java.lang.String className, long classPK)
151         throws com.liferay.portal.SystemException {
152         return _service.getEntries(className, classPK);
153     }
154 
155     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
156         long classNameId, long classPK)
157         throws com.liferay.portal.SystemException {
158         return _service.getEntries(classNameId, classPK);
159     }
160 
161     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
162         long groupId, long companyId, long classNameId, java.lang.String name)
163         throws com.liferay.portal.SystemException {
164         return _service.getEntries(groupId, companyId, classNameId, name);
165     }
166 
167     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
168         long groupId, long companyId, long classNameId, java.lang.String name,
169         int start, int end) throws com.liferay.portal.SystemException {
170         return _service.getEntries(groupId, companyId, classNameId, name,
171             start, end);
172     }
173 
174     public static int getEntriesSize(long groupId, long companyId,
175         long classNameId, java.lang.String name)
176         throws com.liferay.portal.SystemException {
177         return _service.getEntriesSize(groupId, companyId, classNameId, name);
178     }
179 
180     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
181         long entryId)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException {
184         return _service.getEntry(entryId);
185     }
186 
187     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
188         long companyId, java.lang.String name)
189         throws com.liferay.portal.PortalException,
190             com.liferay.portal.SystemException {
191         return _service.getEntry(companyId, name);
192     }
193 
194     public static long[] getEntryIds(long companyId, java.lang.String[] names)
195         throws com.liferay.portal.SystemException {
196         return _service.getEntryIds(companyId, names);
197     }
198 
199     public static java.lang.String[] getEntryNames()
200         throws com.liferay.portal.SystemException {
201         return _service.getEntryNames();
202     }
203 
204     public static java.lang.String[] getEntryNames(java.lang.String className,
205         long classPK) throws com.liferay.portal.SystemException {
206         return _service.getEntryNames(className, classPK);
207     }
208 
209     public static java.lang.String[] getEntryNames(long classNameId,
210         long classPK) throws com.liferay.portal.SystemException {
211         return _service.getEntryNames(classNameId, classPK);
212     }
213 
214     public static void mergeEntries(long fromEntryId, long toEntryId)
215         throws com.liferay.portal.PortalException,
216             com.liferay.portal.SystemException {
217         _service.mergeEntries(fromEntryId, toEntryId);
218     }
219 
220     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
221         long companyId, java.lang.String name, java.lang.String[] properties)
222         throws com.liferay.portal.SystemException {
223         return _service.search(companyId, name, properties);
224     }
225 
226     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
227         long companyId, java.lang.String name, java.lang.String[] properties,
228         int start, int end) throws com.liferay.portal.SystemException {
229         return _service.search(companyId, name, properties, start, end);
230     }
231 
232     public static com.liferay.portal.kernel.json.JSONArray searchAutocomplete(
233         long companyId, java.lang.String name, java.lang.String[] properties,
234         int start, int end) throws com.liferay.portal.SystemException {
235         return _service.searchAutocomplete(companyId, name, properties, start,
236             end);
237     }
238 
239     public static int searchCount(long companyId, java.lang.String name,
240         java.lang.String[] properties)
241         throws com.liferay.portal.SystemException {
242         return _service.searchCount(companyId, name, properties);
243     }
244 
245     public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
246         long entryId, java.lang.String name)
247         throws com.liferay.portal.PortalException,
248             com.liferay.portal.SystemException {
249         return _service.updateEntry(entryId, name);
250     }
251 
252     public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
253         long userId, long entryId, java.lang.String name,
254         java.lang.String[] properties)
255         throws com.liferay.portal.PortalException,
256             com.liferay.portal.SystemException {
257         return _service.updateEntry(userId, entryId, name, properties);
258     }
259 
260     public static TagsEntryLocalService getService() {
261         return _service;
262     }
263 
264     public void setService(TagsEntryLocalService service) {
265         _service = service;
266     }
267 
268     private static TagsEntryLocalService _service;
269 }