1   /**
2    * Copyright (c) 2000-2009 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.base;
24  
25  import com.liferay.counter.service.CounterLocalService;
26  import com.liferay.counter.service.CounterService;
27  
28  import com.liferay.portal.PortalException;
29  import com.liferay.portal.SystemException;
30  import com.liferay.portal.kernel.annotation.BeanReference;
31  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
32  import com.liferay.portal.service.UserLocalService;
33  import com.liferay.portal.service.UserService;
34  import com.liferay.portal.service.persistence.UserFinder;
35  import com.liferay.portal.service.persistence.UserPersistence;
36  
37  import com.liferay.portlet.tags.model.TagsProperty;
38  import com.liferay.portlet.tags.service.TagsAssetLocalService;
39  import com.liferay.portlet.tags.service.TagsAssetService;
40  import com.liferay.portlet.tags.service.TagsEntryLocalService;
41  import com.liferay.portlet.tags.service.TagsEntryService;
42  import com.liferay.portlet.tags.service.TagsPropertyLocalService;
43  import com.liferay.portlet.tags.service.TagsPropertyService;
44  import com.liferay.portlet.tags.service.TagsSourceLocalService;
45  import com.liferay.portlet.tags.service.TagsSourceService;
46  import com.liferay.portlet.tags.service.TagsVocabularyLocalService;
47  import com.liferay.portlet.tags.service.TagsVocabularyService;
48  import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
49  import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
50  import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
51  import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
52  import com.liferay.portlet.tags.service.persistence.TagsPropertyFinder;
53  import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder;
54  import com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence;
55  import com.liferay.portlet.tags.service.persistence.TagsSourcePersistence;
56  import com.liferay.portlet.tags.service.persistence.TagsVocabularyPersistence;
57  
58  import java.util.List;
59  
60  /**
61   * <a href="TagsPropertyLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
62   *
63   * @author Brian Wing Shun Chan
64   *
65   */
66  public abstract class TagsPropertyLocalServiceBaseImpl
67      implements TagsPropertyLocalService {
68      public TagsProperty addTagsProperty(TagsProperty tagsProperty)
69          throws SystemException {
70          tagsProperty.setNew(true);
71  
72          return tagsPropertyPersistence.update(tagsProperty, false);
73      }
74  
75      public TagsProperty createTagsProperty(long propertyId) {
76          return tagsPropertyPersistence.create(propertyId);
77      }
78  
79      public void deleteTagsProperty(long propertyId)
80          throws PortalException, SystemException {
81          tagsPropertyPersistence.remove(propertyId);
82      }
83  
84      public void deleteTagsProperty(TagsProperty tagsProperty)
85          throws SystemException {
86          tagsPropertyPersistence.remove(tagsProperty);
87      }
88  
89      public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
90          throws SystemException {
91          return tagsPropertyPersistence.findWithDynamicQuery(dynamicQuery);
92      }
93  
94      public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
95          int end) throws SystemException {
96          return tagsPropertyPersistence.findWithDynamicQuery(dynamicQuery,
97              start, end);
98      }
99  
100     public TagsProperty getTagsProperty(long propertyId)
101         throws PortalException, SystemException {
102         return tagsPropertyPersistence.findByPrimaryKey(propertyId);
103     }
104 
105     public List<TagsProperty> getTagsProperties(int start, int end)
106         throws SystemException {
107         return tagsPropertyPersistence.findAll(start, end);
108     }
109 
110     public int getTagsPropertiesCount() throws SystemException {
111         return tagsPropertyPersistence.countAll();
112     }
113 
114     public TagsProperty updateTagsProperty(TagsProperty tagsProperty)
115         throws SystemException {
116         tagsProperty.setNew(false);
117 
118         return tagsPropertyPersistence.update(tagsProperty, true);
119     }
120 
121     public TagsAssetLocalService getTagsAssetLocalService() {
122         return tagsAssetLocalService;
123     }
124 
125     public void setTagsAssetLocalService(
126         TagsAssetLocalService tagsAssetLocalService) {
127         this.tagsAssetLocalService = tagsAssetLocalService;
128     }
129 
130     public TagsAssetService getTagsAssetService() {
131         return tagsAssetService;
132     }
133 
134     public void setTagsAssetService(TagsAssetService tagsAssetService) {
135         this.tagsAssetService = tagsAssetService;
136     }
137 
138     public TagsAssetPersistence getTagsAssetPersistence() {
139         return tagsAssetPersistence;
140     }
141 
142     public void setTagsAssetPersistence(
143         TagsAssetPersistence tagsAssetPersistence) {
144         this.tagsAssetPersistence = tagsAssetPersistence;
145     }
146 
147     public TagsAssetFinder getTagsAssetFinder() {
148         return tagsAssetFinder;
149     }
150 
151     public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
152         this.tagsAssetFinder = tagsAssetFinder;
153     }
154 
155     public TagsEntryLocalService getTagsEntryLocalService() {
156         return tagsEntryLocalService;
157     }
158 
159     public void setTagsEntryLocalService(
160         TagsEntryLocalService tagsEntryLocalService) {
161         this.tagsEntryLocalService = tagsEntryLocalService;
162     }
163 
164     public TagsEntryService getTagsEntryService() {
165         return tagsEntryService;
166     }
167 
168     public void setTagsEntryService(TagsEntryService tagsEntryService) {
169         this.tagsEntryService = tagsEntryService;
170     }
171 
172     public TagsEntryPersistence getTagsEntryPersistence() {
173         return tagsEntryPersistence;
174     }
175 
176     public void setTagsEntryPersistence(
177         TagsEntryPersistence tagsEntryPersistence) {
178         this.tagsEntryPersistence = tagsEntryPersistence;
179     }
180 
181     public TagsEntryFinder getTagsEntryFinder() {
182         return tagsEntryFinder;
183     }
184 
185     public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
186         this.tagsEntryFinder = tagsEntryFinder;
187     }
188 
189     public TagsPropertyLocalService getTagsPropertyLocalService() {
190         return tagsPropertyLocalService;
191     }
192 
193     public void setTagsPropertyLocalService(
194         TagsPropertyLocalService tagsPropertyLocalService) {
195         this.tagsPropertyLocalService = tagsPropertyLocalService;
196     }
197 
198     public TagsPropertyService getTagsPropertyService() {
199         return tagsPropertyService;
200     }
201 
202     public void setTagsPropertyService(TagsPropertyService tagsPropertyService) {
203         this.tagsPropertyService = tagsPropertyService;
204     }
205 
206     public TagsPropertyPersistence getTagsPropertyPersistence() {
207         return tagsPropertyPersistence;
208     }
209 
210     public void setTagsPropertyPersistence(
211         TagsPropertyPersistence tagsPropertyPersistence) {
212         this.tagsPropertyPersistence = tagsPropertyPersistence;
213     }
214 
215     public TagsPropertyFinder getTagsPropertyFinder() {
216         return tagsPropertyFinder;
217     }
218 
219     public void setTagsPropertyFinder(TagsPropertyFinder tagsPropertyFinder) {
220         this.tagsPropertyFinder = tagsPropertyFinder;
221     }
222 
223     public TagsPropertyKeyFinder getTagsPropertyKeyFinder() {
224         return tagsPropertyKeyFinder;
225     }
226 
227     public void setTagsPropertyKeyFinder(
228         TagsPropertyKeyFinder tagsPropertyKeyFinder) {
229         this.tagsPropertyKeyFinder = tagsPropertyKeyFinder;
230     }
231 
232     public TagsSourceLocalService getTagsSourceLocalService() {
233         return tagsSourceLocalService;
234     }
235 
236     public void setTagsSourceLocalService(
237         TagsSourceLocalService tagsSourceLocalService) {
238         this.tagsSourceLocalService = tagsSourceLocalService;
239     }
240 
241     public TagsSourceService getTagsSourceService() {
242         return tagsSourceService;
243     }
244 
245     public void setTagsSourceService(TagsSourceService tagsSourceService) {
246         this.tagsSourceService = tagsSourceService;
247     }
248 
249     public TagsSourcePersistence getTagsSourcePersistence() {
250         return tagsSourcePersistence;
251     }
252 
253     public void setTagsSourcePersistence(
254         TagsSourcePersistence tagsSourcePersistence) {
255         this.tagsSourcePersistence = tagsSourcePersistence;
256     }
257 
258     public TagsVocabularyLocalService getTagsVocabularyLocalService() {
259         return tagsVocabularyLocalService;
260     }
261 
262     public void setTagsVocabularyLocalService(
263         TagsVocabularyLocalService tagsVocabularyLocalService) {
264         this.tagsVocabularyLocalService = tagsVocabularyLocalService;
265     }
266 
267     public TagsVocabularyService getTagsVocabularyService() {
268         return tagsVocabularyService;
269     }
270 
271     public void setTagsVocabularyService(
272         TagsVocabularyService tagsVocabularyService) {
273         this.tagsVocabularyService = tagsVocabularyService;
274     }
275 
276     public TagsVocabularyPersistence getTagsVocabularyPersistence() {
277         return tagsVocabularyPersistence;
278     }
279 
280     public void setTagsVocabularyPersistence(
281         TagsVocabularyPersistence tagsVocabularyPersistence) {
282         this.tagsVocabularyPersistence = tagsVocabularyPersistence;
283     }
284 
285     public CounterLocalService getCounterLocalService() {
286         return counterLocalService;
287     }
288 
289     public void setCounterLocalService(CounterLocalService counterLocalService) {
290         this.counterLocalService = counterLocalService;
291     }
292 
293     public CounterService getCounterService() {
294         return counterService;
295     }
296 
297     public void setCounterService(CounterService counterService) {
298         this.counterService = counterService;
299     }
300 
301     public UserLocalService getUserLocalService() {
302         return userLocalService;
303     }
304 
305     public void setUserLocalService(UserLocalService userLocalService) {
306         this.userLocalService = userLocalService;
307     }
308 
309     public UserService getUserService() {
310         return userService;
311     }
312 
313     public void setUserService(UserService userService) {
314         this.userService = userService;
315     }
316 
317     public UserPersistence getUserPersistence() {
318         return userPersistence;
319     }
320 
321     public void setUserPersistence(UserPersistence userPersistence) {
322         this.userPersistence = userPersistence;
323     }
324 
325     public UserFinder getUserFinder() {
326         return userFinder;
327     }
328 
329     public void setUserFinder(UserFinder userFinder) {
330         this.userFinder = userFinder;
331     }
332 
333     @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetLocalService.impl")
334     protected TagsAssetLocalService tagsAssetLocalService;
335     @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetService.impl")
336     protected TagsAssetService tagsAssetService;
337     @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetPersistence.impl")
338     protected TagsAssetPersistence tagsAssetPersistence;
339     @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetFinder.impl")
340     protected TagsAssetFinder tagsAssetFinder;
341     @BeanReference(name = "com.liferay.portlet.tags.service.TagsEntryLocalService.impl")
342     protected TagsEntryLocalService tagsEntryLocalService;
343     @BeanReference(name = "com.liferay.portlet.tags.service.TagsEntryService.impl")
344     protected TagsEntryService tagsEntryService;
345     @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsEntryPersistence.impl")
346     protected TagsEntryPersistence tagsEntryPersistence;
347     @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsEntryFinder.impl")
348     protected TagsEntryFinder tagsEntryFinder;
349     @BeanReference(name = "com.liferay.portlet.tags.service.TagsPropertyLocalService.impl")
350     protected TagsPropertyLocalService tagsPropertyLocalService;
351     @BeanReference(name = "com.liferay.portlet.tags.service.TagsPropertyService.impl")
352     protected TagsPropertyService tagsPropertyService;
353     @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence.impl")
354     protected TagsPropertyPersistence tagsPropertyPersistence;
355     @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyFinder.impl")
356     protected TagsPropertyFinder tagsPropertyFinder;
357     @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder.impl")
358     protected TagsPropertyKeyFinder tagsPropertyKeyFinder;
359     @BeanReference(name = "com.liferay.portlet.tags.service.TagsSourceLocalService.impl")
360     protected TagsSourceLocalService tagsSourceLocalService;
361     @BeanReference(name = "com.liferay.portlet.tags.service.TagsSourceService.impl")
362     protected TagsSourceService tagsSourceService;
363     @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsSourcePersistence.impl")
364     protected TagsSourcePersistence tagsSourcePersistence;
365     @BeanReference(name = "com.liferay.portlet.tags.service.TagsVocabularyLocalService.impl")
366     protected TagsVocabularyLocalService tagsVocabularyLocalService;
367     @BeanReference(name = "com.liferay.portlet.tags.service.TagsVocabularyService.impl")
368     protected TagsVocabularyService tagsVocabularyService;
369     @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsVocabularyPersistence.impl")
370     protected TagsVocabularyPersistence tagsVocabularyPersistence;
371     @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
372     protected CounterLocalService counterLocalService;
373     @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
374     protected CounterService counterService;
375     @BeanReference(name = "com.liferay.portal.service.UserLocalService.impl")
376     protected UserLocalService userLocalService;
377     @BeanReference(name = "com.liferay.portal.service.UserService.impl")
378     protected UserService userService;
379     @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
380     protected UserPersistence userPersistence;
381     @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder.impl")
382     protected UserFinder userFinder;
383 }