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.messageboards.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.ResourceLocalService;
31  import com.liferay.portal.service.ResourceService;
32  import com.liferay.portal.service.SubscriptionLocalService;
33  import com.liferay.portal.service.UserLocalService;
34  import com.liferay.portal.service.UserService;
35  import com.liferay.portal.service.base.PrincipalBean;
36  import com.liferay.portal.service.persistence.ResourceFinder;
37  import com.liferay.portal.service.persistence.ResourcePersistence;
38  import com.liferay.portal.service.persistence.SubscriptionPersistence;
39  import com.liferay.portal.service.persistence.UserFinder;
40  import com.liferay.portal.service.persistence.UserPersistence;
41  
42  import com.liferay.portlet.messageboards.service.MBBanLocalService;
43  import com.liferay.portlet.messageboards.service.MBBanService;
44  import com.liferay.portlet.messageboards.service.MBCategoryLocalService;
45  import com.liferay.portlet.messageboards.service.MBCategoryService;
46  import com.liferay.portlet.messageboards.service.MBMessageFlagLocalService;
47  import com.liferay.portlet.messageboards.service.MBMessageLocalService;
48  import com.liferay.portlet.messageboards.service.MBMessageService;
49  import com.liferay.portlet.messageboards.service.MBStatsUserLocalService;
50  import com.liferay.portlet.messageboards.service.MBThreadLocalService;
51  import com.liferay.portlet.messageboards.service.MBThreadService;
52  import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
53  import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
54  import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
55  import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
56  import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
57  import com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder;
58  import com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence;
59  import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
60  import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
61  import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
62  import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
63  import com.liferay.portlet.tags.service.TagsEntryLocalService;
64  import com.liferay.portlet.tags.service.TagsEntryService;
65  import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
66  import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
67  
68  /**
69   * <a href="MBCategoryServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
70   *
71   * @author Brian Wing Shun Chan
72   *
73   */
74  public abstract class MBCategoryServiceBaseImpl extends PrincipalBean
75      implements MBCategoryService, InitializingBean {
76      public MBBanLocalService getMBBanLocalService() {
77          return mbBanLocalService;
78      }
79  
80      public void setMBBanLocalService(MBBanLocalService mbBanLocalService) {
81          this.mbBanLocalService = mbBanLocalService;
82      }
83  
84      public MBBanService getMBBanService() {
85          return mbBanService;
86      }
87  
88      public void setMBBanService(MBBanService mbBanService) {
89          this.mbBanService = mbBanService;
90      }
91  
92      public MBBanPersistence getMBBanPersistence() {
93          return mbBanPersistence;
94      }
95  
96      public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
97          this.mbBanPersistence = mbBanPersistence;
98      }
99  
100     public MBCategoryLocalService getMBCategoryLocalService() {
101         return mbCategoryLocalService;
102     }
103 
104     public void setMBCategoryLocalService(
105         MBCategoryLocalService mbCategoryLocalService) {
106         this.mbCategoryLocalService = mbCategoryLocalService;
107     }
108 
109     public MBCategoryPersistence getMBCategoryPersistence() {
110         return mbCategoryPersistence;
111     }
112 
113     public void setMBCategoryPersistence(
114         MBCategoryPersistence mbCategoryPersistence) {
115         this.mbCategoryPersistence = mbCategoryPersistence;
116     }
117 
118     public MBCategoryFinder getMBCategoryFinder() {
119         return mbCategoryFinder;
120     }
121 
122     public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
123         this.mbCategoryFinder = mbCategoryFinder;
124     }
125 
126     public MBDiscussionPersistence getMBDiscussionPersistence() {
127         return mbDiscussionPersistence;
128     }
129 
130     public void setMBDiscussionPersistence(
131         MBDiscussionPersistence mbDiscussionPersistence) {
132         this.mbDiscussionPersistence = mbDiscussionPersistence;
133     }
134 
135     public MBMessageLocalService getMBMessageLocalService() {
136         return mbMessageLocalService;
137     }
138 
139     public void setMBMessageLocalService(
140         MBMessageLocalService mbMessageLocalService) {
141         this.mbMessageLocalService = mbMessageLocalService;
142     }
143 
144     public MBMessageService getMBMessageService() {
145         return mbMessageService;
146     }
147 
148     public void setMBMessageService(MBMessageService mbMessageService) {
149         this.mbMessageService = mbMessageService;
150     }
151 
152     public MBMessagePersistence getMBMessagePersistence() {
153         return mbMessagePersistence;
154     }
155 
156     public void setMBMessagePersistence(
157         MBMessagePersistence mbMessagePersistence) {
158         this.mbMessagePersistence = mbMessagePersistence;
159     }
160 
161     public MBMessageFinder getMBMessageFinder() {
162         return mbMessageFinder;
163     }
164 
165     public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
166         this.mbMessageFinder = mbMessageFinder;
167     }
168 
169     public MBMessageFlagLocalService getMBMessageFlagLocalService() {
170         return mbMessageFlagLocalService;
171     }
172 
173     public void setMBMessageFlagLocalService(
174         MBMessageFlagLocalService mbMessageFlagLocalService) {
175         this.mbMessageFlagLocalService = mbMessageFlagLocalService;
176     }
177 
178     public MBMessageFlagPersistence getMBMessageFlagPersistence() {
179         return mbMessageFlagPersistence;
180     }
181 
182     public void setMBMessageFlagPersistence(
183         MBMessageFlagPersistence mbMessageFlagPersistence) {
184         this.mbMessageFlagPersistence = mbMessageFlagPersistence;
185     }
186 
187     public MBMessageFlagFinder getMBMessageFlagFinder() {
188         return mbMessageFlagFinder;
189     }
190 
191     public void setMBMessageFlagFinder(MBMessageFlagFinder mbMessageFlagFinder) {
192         this.mbMessageFlagFinder = mbMessageFlagFinder;
193     }
194 
195     public MBStatsUserLocalService getMBStatsUserLocalService() {
196         return mbStatsUserLocalService;
197     }
198 
199     public void setMBStatsUserLocalService(
200         MBStatsUserLocalService mbStatsUserLocalService) {
201         this.mbStatsUserLocalService = mbStatsUserLocalService;
202     }
203 
204     public MBStatsUserPersistence getMBStatsUserPersistence() {
205         return mbStatsUserPersistence;
206     }
207 
208     public void setMBStatsUserPersistence(
209         MBStatsUserPersistence mbStatsUserPersistence) {
210         this.mbStatsUserPersistence = mbStatsUserPersistence;
211     }
212 
213     public MBThreadLocalService getMBThreadLocalService() {
214         return mbThreadLocalService;
215     }
216 
217     public void setMBThreadLocalService(
218         MBThreadLocalService mbThreadLocalService) {
219         this.mbThreadLocalService = mbThreadLocalService;
220     }
221 
222     public MBThreadService getMBThreadService() {
223         return mbThreadService;
224     }
225 
226     public void setMBThreadService(MBThreadService mbThreadService) {
227         this.mbThreadService = mbThreadService;
228     }
229 
230     public MBThreadPersistence getMBThreadPersistence() {
231         return mbThreadPersistence;
232     }
233 
234     public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
235         this.mbThreadPersistence = mbThreadPersistence;
236     }
237 
238     public MBThreadFinder getMBThreadFinder() {
239         return mbThreadFinder;
240     }
241 
242     public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
243         this.mbThreadFinder = mbThreadFinder;
244     }
245 
246     public CounterLocalService getCounterLocalService() {
247         return counterLocalService;
248     }
249 
250     public void setCounterLocalService(CounterLocalService counterLocalService) {
251         this.counterLocalService = counterLocalService;
252     }
253 
254     public CounterService getCounterService() {
255         return counterService;
256     }
257 
258     public void setCounterService(CounterService counterService) {
259         this.counterService = counterService;
260     }
261 
262     public ResourceLocalService getResourceLocalService() {
263         return resourceLocalService;
264     }
265 
266     public void setResourceLocalService(
267         ResourceLocalService resourceLocalService) {
268         this.resourceLocalService = resourceLocalService;
269     }
270 
271     public ResourceService getResourceService() {
272         return resourceService;
273     }
274 
275     public void setResourceService(ResourceService resourceService) {
276         this.resourceService = resourceService;
277     }
278 
279     public ResourcePersistence getResourcePersistence() {
280         return resourcePersistence;
281     }
282 
283     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
284         this.resourcePersistence = resourcePersistence;
285     }
286 
287     public ResourceFinder getResourceFinder() {
288         return resourceFinder;
289     }
290 
291     public void setResourceFinder(ResourceFinder resourceFinder) {
292         this.resourceFinder = resourceFinder;
293     }
294 
295     public SubscriptionLocalService getSubscriptionLocalService() {
296         return subscriptionLocalService;
297     }
298 
299     public void setSubscriptionLocalService(
300         SubscriptionLocalService subscriptionLocalService) {
301         this.subscriptionLocalService = subscriptionLocalService;
302     }
303 
304     public SubscriptionPersistence getSubscriptionPersistence() {
305         return subscriptionPersistence;
306     }
307 
308     public void setSubscriptionPersistence(
309         SubscriptionPersistence subscriptionPersistence) {
310         this.subscriptionPersistence = subscriptionPersistence;
311     }
312 
313     public UserLocalService getUserLocalService() {
314         return userLocalService;
315     }
316 
317     public void setUserLocalService(UserLocalService userLocalService) {
318         this.userLocalService = userLocalService;
319     }
320 
321     public UserService getUserService() {
322         return userService;
323     }
324 
325     public void setUserService(UserService userService) {
326         this.userService = userService;
327     }
328 
329     public UserPersistence getUserPersistence() {
330         return userPersistence;
331     }
332 
333     public void setUserPersistence(UserPersistence userPersistence) {
334         this.userPersistence = userPersistence;
335     }
336 
337     public UserFinder getUserFinder() {
338         return userFinder;
339     }
340 
341     public void setUserFinder(UserFinder userFinder) {
342         this.userFinder = userFinder;
343     }
344 
345     public TagsEntryLocalService getTagsEntryLocalService() {
346         return tagsEntryLocalService;
347     }
348 
349     public void setTagsEntryLocalService(
350         TagsEntryLocalService tagsEntryLocalService) {
351         this.tagsEntryLocalService = tagsEntryLocalService;
352     }
353 
354     public TagsEntryService getTagsEntryService() {
355         return tagsEntryService;
356     }
357 
358     public void setTagsEntryService(TagsEntryService tagsEntryService) {
359         this.tagsEntryService = tagsEntryService;
360     }
361 
362     public TagsEntryPersistence getTagsEntryPersistence() {
363         return tagsEntryPersistence;
364     }
365 
366     public void setTagsEntryPersistence(
367         TagsEntryPersistence tagsEntryPersistence) {
368         this.tagsEntryPersistence = tagsEntryPersistence;
369     }
370 
371     public TagsEntryFinder getTagsEntryFinder() {
372         return tagsEntryFinder;
373     }
374 
375     public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
376         this.tagsEntryFinder = tagsEntryFinder;
377     }
378 
379     public void afterPropertiesSet() {
380         if (mbBanLocalService == null) {
381             mbBanLocalService = (MBBanLocalService)PortalBeanLocatorUtil.locate(MBBanLocalService.class.getName() +
382                     ".impl");
383         }
384 
385         if (mbBanService == null) {
386             mbBanService = (MBBanService)PortalBeanLocatorUtil.locate(MBBanService.class.getName() +
387                     ".impl");
388         }
389 
390         if (mbBanPersistence == null) {
391             mbBanPersistence = (MBBanPersistence)PortalBeanLocatorUtil.locate(MBBanPersistence.class.getName() +
392                     ".impl");
393         }
394 
395         if (mbCategoryLocalService == null) {
396             mbCategoryLocalService = (MBCategoryLocalService)PortalBeanLocatorUtil.locate(MBCategoryLocalService.class.getName() +
397                     ".impl");
398         }
399 
400         if (mbCategoryPersistence == null) {
401             mbCategoryPersistence = (MBCategoryPersistence)PortalBeanLocatorUtil.locate(MBCategoryPersistence.class.getName() +
402                     ".impl");
403         }
404 
405         if (mbCategoryFinder == null) {
406             mbCategoryFinder = (MBCategoryFinder)PortalBeanLocatorUtil.locate(MBCategoryFinder.class.getName() +
407                     ".impl");
408         }
409 
410         if (mbDiscussionPersistence == null) {
411             mbDiscussionPersistence = (MBDiscussionPersistence)PortalBeanLocatorUtil.locate(MBDiscussionPersistence.class.getName() +
412                     ".impl");
413         }
414 
415         if (mbMessageLocalService == null) {
416             mbMessageLocalService = (MBMessageLocalService)PortalBeanLocatorUtil.locate(MBMessageLocalService.class.getName() +
417                     ".impl");
418         }
419 
420         if (mbMessageService == null) {
421             mbMessageService = (MBMessageService)PortalBeanLocatorUtil.locate(MBMessageService.class.getName() +
422                     ".impl");
423         }
424 
425         if (mbMessagePersistence == null) {
426             mbMessagePersistence = (MBMessagePersistence)PortalBeanLocatorUtil.locate(MBMessagePersistence.class.getName() +
427                     ".impl");
428         }
429 
430         if (mbMessageFinder == null) {
431             mbMessageFinder = (MBMessageFinder)PortalBeanLocatorUtil.locate(MBMessageFinder.class.getName() +
432                     ".impl");
433         }
434 
435         if (mbMessageFlagLocalService == null) {
436             mbMessageFlagLocalService = (MBMessageFlagLocalService)PortalBeanLocatorUtil.locate(MBMessageFlagLocalService.class.getName() +
437                     ".impl");
438         }
439 
440         if (mbMessageFlagPersistence == null) {
441             mbMessageFlagPersistence = (MBMessageFlagPersistence)PortalBeanLocatorUtil.locate(MBMessageFlagPersistence.class.getName() +
442                     ".impl");
443         }
444 
445         if (mbMessageFlagFinder == null) {
446             mbMessageFlagFinder = (MBMessageFlagFinder)PortalBeanLocatorUtil.locate(MBMessageFlagFinder.class.getName() +
447                     ".impl");
448         }
449 
450         if (mbStatsUserLocalService == null) {
451             mbStatsUserLocalService = (MBStatsUserLocalService)PortalBeanLocatorUtil.locate(MBStatsUserLocalService.class.getName() +
452                     ".impl");
453         }
454 
455         if (mbStatsUserPersistence == null) {
456             mbStatsUserPersistence = (MBStatsUserPersistence)PortalBeanLocatorUtil.locate(MBStatsUserPersistence.class.getName() +
457                     ".impl");
458         }
459 
460         if (mbThreadLocalService == null) {
461             mbThreadLocalService = (MBThreadLocalService)PortalBeanLocatorUtil.locate(MBThreadLocalService.class.getName() +
462                     ".impl");
463         }
464 
465         if (mbThreadService == null) {
466             mbThreadService = (MBThreadService)PortalBeanLocatorUtil.locate(MBThreadService.class.getName() +
467                     ".impl");
468         }
469 
470         if (mbThreadPersistence == null) {
471             mbThreadPersistence = (MBThreadPersistence)PortalBeanLocatorUtil.locate(MBThreadPersistence.class.getName() +
472                     ".impl");
473         }
474 
475         if (mbThreadFinder == null) {
476             mbThreadFinder = (MBThreadFinder)PortalBeanLocatorUtil.locate(MBThreadFinder.class.getName() +
477                     ".impl");
478         }
479 
480         if (counterLocalService == null) {
481             counterLocalService = (CounterLocalService)PortalBeanLocatorUtil.locate(CounterLocalService.class.getName() +
482                     ".impl");
483         }
484 
485         if (counterService == null) {
486             counterService = (CounterService)PortalBeanLocatorUtil.locate(CounterService.class.getName() +
487                     ".impl");
488         }
489 
490         if (resourceLocalService == null) {
491             resourceLocalService = (ResourceLocalService)PortalBeanLocatorUtil.locate(ResourceLocalService.class.getName() +
492                     ".impl");
493         }
494 
495         if (resourceService == null) {
496             resourceService = (ResourceService)PortalBeanLocatorUtil.locate(ResourceService.class.getName() +
497                     ".impl");
498         }
499 
500         if (resourcePersistence == null) {
501             resourcePersistence = (ResourcePersistence)PortalBeanLocatorUtil.locate(ResourcePersistence.class.getName() +
502                     ".impl");
503         }
504 
505         if (resourceFinder == null) {
506             resourceFinder = (ResourceFinder)PortalBeanLocatorUtil.locate(ResourceFinder.class.getName() +
507                     ".impl");
508         }
509 
510         if (subscriptionLocalService == null) {
511             subscriptionLocalService = (SubscriptionLocalService)PortalBeanLocatorUtil.locate(SubscriptionLocalService.class.getName() +
512                     ".impl");
513         }
514 
515         if (subscriptionPersistence == null) {
516             subscriptionPersistence = (SubscriptionPersistence)PortalBeanLocatorUtil.locate(SubscriptionPersistence.class.getName() +
517                     ".impl");
518         }
519 
520         if (userLocalService == null) {
521             userLocalService = (UserLocalService)PortalBeanLocatorUtil.locate(UserLocalService.class.getName() +
522                     ".impl");
523         }
524 
525         if (userService == null) {
526             userService = (UserService)PortalBeanLocatorUtil.locate(UserService.class.getName() +
527                     ".impl");
528         }
529 
530         if (userPersistence == null) {
531             userPersistence = (UserPersistence)PortalBeanLocatorUtil.locate(UserPersistence.class.getName() +
532                     ".impl");
533         }
534 
535         if (userFinder == null) {
536             userFinder = (UserFinder)PortalBeanLocatorUtil.locate(UserFinder.class.getName() +
537                     ".impl");
538         }
539 
540         if (tagsEntryLocalService == null) {
541             tagsEntryLocalService = (TagsEntryLocalService)PortalBeanLocatorUtil.locate(TagsEntryLocalService.class.getName() +
542                     ".impl");
543         }
544 
545         if (tagsEntryService == null) {
546             tagsEntryService = (TagsEntryService)PortalBeanLocatorUtil.locate(TagsEntryService.class.getName() +
547                     ".impl");
548         }
549 
550         if (tagsEntryPersistence == null) {
551             tagsEntryPersistence = (TagsEntryPersistence)PortalBeanLocatorUtil.locate(TagsEntryPersistence.class.getName() +
552                     ".impl");
553         }
554 
555         if (tagsEntryFinder == null) {
556             tagsEntryFinder = (TagsEntryFinder)PortalBeanLocatorUtil.locate(TagsEntryFinder.class.getName() +
557                     ".impl");
558         }
559     }
560 
561     protected MBBanLocalService mbBanLocalService;
562     protected MBBanService mbBanService;
563     protected MBBanPersistence mbBanPersistence;
564     protected MBCategoryLocalService mbCategoryLocalService;
565     protected MBCategoryPersistence mbCategoryPersistence;
566     protected MBCategoryFinder mbCategoryFinder;
567     protected MBDiscussionPersistence mbDiscussionPersistence;
568     protected MBMessageLocalService mbMessageLocalService;
569     protected MBMessageService mbMessageService;
570     protected MBMessagePersistence mbMessagePersistence;
571     protected MBMessageFinder mbMessageFinder;
572     protected MBMessageFlagLocalService mbMessageFlagLocalService;
573     protected MBMessageFlagPersistence mbMessageFlagPersistence;
574     protected MBMessageFlagFinder mbMessageFlagFinder;
575     protected MBStatsUserLocalService mbStatsUserLocalService;
576     protected MBStatsUserPersistence mbStatsUserPersistence;
577     protected MBThreadLocalService mbThreadLocalService;
578     protected MBThreadService mbThreadService;
579     protected MBThreadPersistence mbThreadPersistence;
580     protected MBThreadFinder mbThreadFinder;
581     protected CounterLocalService counterLocalService;
582     protected CounterService counterService;
583     protected ResourceLocalService resourceLocalService;
584     protected ResourceService resourceService;
585     protected ResourcePersistence resourcePersistence;
586     protected ResourceFinder resourceFinder;
587     protected SubscriptionLocalService subscriptionLocalService;
588     protected SubscriptionPersistence subscriptionPersistence;
589     protected UserLocalService userLocalService;
590     protected UserService userService;
591     protected UserPersistence userPersistence;
592     protected UserFinder userFinder;
593     protected TagsEntryLocalService tagsEntryLocalService;
594     protected TagsEntryService tagsEntryService;
595     protected TagsEntryPersistence tagsEntryPersistence;
596     protected TagsEntryFinder tagsEntryFinder;
597 }