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