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="TagsPropertyLocalServiceUtil.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.TagsPropertyLocalService</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   * <p>
43   * <code>com.liferay.portlet.tags.service.TagsPropertyLocalServiceFactory</code>
44   * is responsible for the lookup of the bean.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portlet.tags.service.TagsPropertyLocalService
50   * @see com.liferay.portlet.tags.service.TagsPropertyLocalServiceFactory
51   *
52   */
53  public class TagsPropertyLocalServiceUtil {
54      public static com.liferay.portlet.tags.model.TagsProperty addTagsProperty(
55          com.liferay.portlet.tags.model.TagsProperty model)
56          throws com.liferay.portal.SystemException {
57          TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
58  
59          return tagsPropertyLocalService.addTagsProperty(model);
60      }
61  
62      public static java.util.List dynamicQuery(
63          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
64          throws com.liferay.portal.SystemException {
65          TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
66  
67          return tagsPropertyLocalService.dynamicQuery(queryInitializer);
68      }
69  
70      public static java.util.List dynamicQuery(
71          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
72          int begin, int end) throws com.liferay.portal.SystemException {
73          TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
74  
75          return tagsPropertyLocalService.dynamicQuery(queryInitializer, begin,
76              end);
77      }
78  
79      public static com.liferay.portlet.tags.model.TagsProperty updateTagsProperty(
80          com.liferay.portlet.tags.model.TagsProperty model)
81          throws com.liferay.portal.SystemException {
82          TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
83  
84          return tagsPropertyLocalService.updateTagsProperty(model);
85      }
86  
87      public static com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence() {
88          TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
89  
90          return tagsPropertyLocalService.getTagsAssetPersistence();
91      }
92  
93      public static void setTagsAssetPersistence(
94          com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence) {
95          TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
96  
97          tagsPropertyLocalService.setTagsAssetPersistence(tagsAssetPersistence);
98      }
99  
100     public static com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder() {
101         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
102 
103         return tagsPropertyLocalService.getTagsAssetFinder();
104     }
105 
106     public static void setTagsAssetFinder(
107         com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder) {
108         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
109 
110         tagsPropertyLocalService.setTagsAssetFinder(tagsAssetFinder);
111     }
112 
113     public static com.liferay.portlet.tags.service.persistence.TagsEntryPersistence getTagsEntryPersistence() {
114         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
115 
116         return tagsPropertyLocalService.getTagsEntryPersistence();
117     }
118 
119     public static void setTagsEntryPersistence(
120         com.liferay.portlet.tags.service.persistence.TagsEntryPersistence tagsEntryPersistence) {
121         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
122 
123         tagsPropertyLocalService.setTagsEntryPersistence(tagsEntryPersistence);
124     }
125 
126     public static com.liferay.portlet.tags.service.persistence.TagsEntryFinder getTagsEntryFinder() {
127         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
128 
129         return tagsPropertyLocalService.getTagsEntryFinder();
130     }
131 
132     public static void setTagsEntryFinder(
133         com.liferay.portlet.tags.service.persistence.TagsEntryFinder tagsEntryFinder) {
134         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
135 
136         tagsPropertyLocalService.setTagsEntryFinder(tagsEntryFinder);
137     }
138 
139     public static com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence getTagsPropertyPersistence() {
140         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
141 
142         return tagsPropertyLocalService.getTagsPropertyPersistence();
143     }
144 
145     public static void setTagsPropertyPersistence(
146         com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence tagsPropertyPersistence) {
147         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
148 
149         tagsPropertyLocalService.setTagsPropertyPersistence(tagsPropertyPersistence);
150     }
151 
152     public static com.liferay.portlet.tags.service.persistence.TagsPropertyFinder getTagsPropertyFinder() {
153         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
154 
155         return tagsPropertyLocalService.getTagsPropertyFinder();
156     }
157 
158     public static void setTagsPropertyFinder(
159         com.liferay.portlet.tags.service.persistence.TagsPropertyFinder tagsPropertyFinder) {
160         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
161 
162         tagsPropertyLocalService.setTagsPropertyFinder(tagsPropertyFinder);
163     }
164 
165     public static com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder getTagsPropertyKeyFinder() {
166         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
167 
168         return tagsPropertyLocalService.getTagsPropertyKeyFinder();
169     }
170 
171     public static void setTagsPropertyKeyFinder(
172         com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder tagsPropertyKeyFinder) {
173         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
174 
175         tagsPropertyLocalService.setTagsPropertyKeyFinder(tagsPropertyKeyFinder);
176     }
177 
178     public static com.liferay.portlet.tags.service.persistence.TagsSourcePersistence getTagsSourcePersistence() {
179         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
180 
181         return tagsPropertyLocalService.getTagsSourcePersistence();
182     }
183 
184     public static void setTagsSourcePersistence(
185         com.liferay.portlet.tags.service.persistence.TagsSourcePersistence tagsSourcePersistence) {
186         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
187 
188         tagsPropertyLocalService.setTagsSourcePersistence(tagsSourcePersistence);
189     }
190 
191     public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
192         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
193 
194         return tagsPropertyLocalService.getUserPersistence();
195     }
196 
197     public static void setUserPersistence(
198         com.liferay.portal.service.persistence.UserPersistence userPersistence) {
199         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
200 
201         tagsPropertyLocalService.setUserPersistence(userPersistence);
202     }
203 
204     public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
205         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
206 
207         return tagsPropertyLocalService.getUserFinder();
208     }
209 
210     public static void setUserFinder(
211         com.liferay.portal.service.persistence.UserFinder userFinder) {
212         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
213 
214         tagsPropertyLocalService.setUserFinder(userFinder);
215     }
216 
217     public static void afterPropertiesSet() {
218         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
219 
220         tagsPropertyLocalService.afterPropertiesSet();
221     }
222 
223     public static com.liferay.portlet.tags.model.TagsProperty addProperty(
224         long userId, long entryId, java.lang.String key, java.lang.String value)
225         throws com.liferay.portal.PortalException, 
226             com.liferay.portal.SystemException {
227         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
228 
229         return tagsPropertyLocalService.addProperty(userId, entryId, key, value);
230     }
231 
232     public static com.liferay.portlet.tags.model.TagsProperty addProperty(
233         long userId, java.lang.String entryName, java.lang.String key,
234         java.lang.String value)
235         throws com.liferay.portal.PortalException, 
236             com.liferay.portal.SystemException {
237         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
238 
239         return tagsPropertyLocalService.addProperty(userId, entryName, key,
240             value);
241     }
242 
243     public static void deleteProperties(long entryId)
244         throws com.liferay.portal.PortalException, 
245             com.liferay.portal.SystemException {
246         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
247 
248         tagsPropertyLocalService.deleteProperties(entryId);
249     }
250 
251     public static void deleteProperty(long propertyId)
252         throws com.liferay.portal.PortalException, 
253             com.liferay.portal.SystemException {
254         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
255 
256         tagsPropertyLocalService.deleteProperty(propertyId);
257     }
258 
259     public static void deleteProperty(
260         com.liferay.portlet.tags.model.TagsProperty property)
261         throws com.liferay.portal.PortalException, 
262             com.liferay.portal.SystemException {
263         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
264 
265         tagsPropertyLocalService.deleteProperty(property);
266     }
267 
268     public static java.util.List getProperties()
269         throws com.liferay.portal.SystemException {
270         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
271 
272         return tagsPropertyLocalService.getProperties();
273     }
274 
275     public static java.util.List getProperties(long entryId)
276         throws com.liferay.portal.SystemException {
277         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
278 
279         return tagsPropertyLocalService.getProperties(entryId);
280     }
281 
282     public static com.liferay.portlet.tags.model.TagsProperty getProperty(
283         long propertyId)
284         throws com.liferay.portal.PortalException, 
285             com.liferay.portal.SystemException {
286         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
287 
288         return tagsPropertyLocalService.getProperty(propertyId);
289     }
290 
291     public static com.liferay.portlet.tags.model.TagsProperty getProperty(
292         long entryId, java.lang.String key)
293         throws com.liferay.portal.PortalException, 
294             com.liferay.portal.SystemException {
295         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
296 
297         return tagsPropertyLocalService.getProperty(entryId, key);
298     }
299 
300     public static java.lang.String[] getPropertyKeys(long companyId)
301         throws com.liferay.portal.SystemException {
302         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
303 
304         return tagsPropertyLocalService.getPropertyKeys(companyId);
305     }
306 
307     public static java.util.List getPropertyValues(long companyId,
308         java.lang.String key) throws com.liferay.portal.SystemException {
309         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
310 
311         return tagsPropertyLocalService.getPropertyValues(companyId, key);
312     }
313 
314     public static com.liferay.portlet.tags.model.TagsProperty updateProperty(
315         long propertyId, java.lang.String key, java.lang.String value)
316         throws com.liferay.portal.PortalException, 
317             com.liferay.portal.SystemException {
318         TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getService();
319 
320         return tagsPropertyLocalService.updateProperty(propertyId, key, value);
321     }
322 }