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