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