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