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