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