1   /**
2    * Copyright (c) 2000-2007 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   * <a href="TagsEntryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be overwritten
30   * the next time is generated.
31   * </p>
32   *
33   * <p>
34   * This class provides static methods for the <code>com.liferay.portlet.tags.service.TagsEntryLocalService</code>
35   * bean. The static methods of this class calls the same methods of the bean instance.
36   * It's convenient to be able to just write one line to call a method on a bean
37   * instead of writing a lookup call and a method call.
38   * </p>
39   *
40   * <p>
41   * <code>com.liferay.portlet.tags.service.TagsEntryLocalServiceFactory</code> is
42   * responsible for the lookup of the bean.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.tags.service.TagsEntryLocalService
48   * @see com.liferay.portlet.tags.service.TagsEntryLocalServiceFactory
49   *
50   */
51  public class TagsEntryLocalServiceUtil {
52      public static com.liferay.portlet.tags.model.TagsEntry addTagsEntry(
53          com.liferay.portlet.tags.model.TagsEntry model)
54          throws com.liferay.portal.SystemException {
55          TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
56  
57          return tagsEntryLocalService.addTagsEntry(model);
58      }
59  
60      public static java.util.List dynamicQuery(
61          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
62          throws com.liferay.portal.SystemException {
63          TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
64  
65          return tagsEntryLocalService.dynamicQuery(queryInitializer);
66      }
67  
68      public static java.util.List dynamicQuery(
69          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
70          int begin, int end) throws com.liferay.portal.SystemException {
71          TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
72  
73          return tagsEntryLocalService.dynamicQuery(queryInitializer, begin, end);
74      }
75  
76      public static com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
77          com.liferay.portlet.tags.model.TagsEntry model)
78          throws com.liferay.portal.SystemException {
79          TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
80  
81          return tagsEntryLocalService.updateTagsEntry(model);
82      }
83  
84      public static com.liferay.portlet.tags.model.TagsEntry addEntry(
85          long userId, java.lang.String name)
86          throws com.liferay.portal.PortalException, 
87              com.liferay.portal.SystemException {
88          TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
89  
90          return tagsEntryLocalService.addEntry(userId, name);
91      }
92  
93      public static com.liferay.portlet.tags.model.TagsEntry addEntry(
94          long userId, java.lang.String name, java.lang.String[] properties)
95          throws com.liferay.portal.PortalException, 
96              com.liferay.portal.SystemException {
97          TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
98  
99          return tagsEntryLocalService.addEntry(userId, name, properties);
100     }
101 
102     public static void deleteEntry(long entryId)
103         throws com.liferay.portal.PortalException, 
104             com.liferay.portal.SystemException {
105         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
106         tagsEntryLocalService.deleteEntry(entryId);
107     }
108 
109     public static void deleteEntry(
110         com.liferay.portlet.tags.model.TagsEntry entry)
111         throws com.liferay.portal.PortalException, 
112             com.liferay.portal.SystemException {
113         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
114         tagsEntryLocalService.deleteEntry(entry);
115     }
116 
117     public static boolean hasEntry(long companyId, java.lang.String name)
118         throws com.liferay.portal.PortalException, 
119             com.liferay.portal.SystemException {
120         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
121 
122         return tagsEntryLocalService.hasEntry(companyId, name);
123     }
124 
125     public static java.util.List getAssetEntries(long assetId)
126         throws com.liferay.portal.PortalException, 
127             com.liferay.portal.SystemException {
128         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
129 
130         return tagsEntryLocalService.getAssetEntries(assetId);
131     }
132 
133     public static java.util.List getEntries()
134         throws com.liferay.portal.SystemException {
135         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
136 
137         return tagsEntryLocalService.getEntries();
138     }
139 
140     public static java.util.List getEntries(java.lang.String className,
141         long classPK)
142         throws com.liferay.portal.PortalException, 
143             com.liferay.portal.SystemException {
144         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
145 
146         return tagsEntryLocalService.getEntries(className, classPK);
147     }
148 
149     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
150         long entryId)
151         throws com.liferay.portal.PortalException, 
152             com.liferay.portal.SystemException {
153         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
154 
155         return tagsEntryLocalService.getEntry(entryId);
156     }
157 
158     public static com.liferay.portlet.tags.model.TagsEntry getEntry(
159         long companyId, java.lang.String name)
160         throws com.liferay.portal.PortalException, 
161             com.liferay.portal.SystemException {
162         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
163 
164         return tagsEntryLocalService.getEntry(companyId, name);
165     }
166 
167     public static long[] getEntryIds(long companyId, java.lang.String[] names)
168         throws com.liferay.portal.PortalException, 
169             com.liferay.portal.SystemException {
170         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
171 
172         return tagsEntryLocalService.getEntryIds(companyId, names);
173     }
174 
175     public static java.util.List search(long companyId, java.lang.String name,
176         java.lang.String[] properties)
177         throws com.liferay.portal.SystemException {
178         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
179 
180         return tagsEntryLocalService.search(companyId, name, properties);
181     }
182 
183     public static java.util.List search(long companyId, java.lang.String name,
184         java.lang.String[] properties, int begin, int end)
185         throws com.liferay.portal.SystemException {
186         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
187 
188         return tagsEntryLocalService.search(companyId, name, properties, begin,
189             end);
190     }
191 
192     public static com.liferay.portal.kernel.json.JSONArrayWrapper searchAutocomplete(
193         long companyId, java.lang.String name, java.lang.String[] properties,
194         int begin, int end) throws com.liferay.portal.SystemException {
195         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
196 
197         return tagsEntryLocalService.searchAutocomplete(companyId, name,
198             properties, begin, end);
199     }
200 
201     public static int searchCount(long companyId, java.lang.String name,
202         java.lang.String[] properties)
203         throws com.liferay.portal.SystemException {
204         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
205 
206         return tagsEntryLocalService.searchCount(companyId, name, properties);
207     }
208 
209     public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
210         long entryId, java.lang.String name)
211         throws com.liferay.portal.PortalException, 
212             com.liferay.portal.SystemException {
213         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
214 
215         return tagsEntryLocalService.updateEntry(entryId, name);
216     }
217 
218     public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
219         long userId, long entryId, java.lang.String name,
220         java.lang.String[] properties)
221         throws com.liferay.portal.PortalException, 
222             com.liferay.portal.SystemException {
223         TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
224 
225         return tagsEntryLocalService.updateEntry(userId, entryId, name,
226             properties);
227     }
228 }