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.journal.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.ImageLocalService;
31  import com.liferay.portal.service.ResourceLocalService;
32  import com.liferay.portal.service.ResourceService;
33  import com.liferay.portal.service.UserLocalService;
34  import com.liferay.portal.service.UserService;
35  import com.liferay.portal.service.WebDAVPropsLocalService;
36  import com.liferay.portal.service.base.PrincipalBean;
37  import com.liferay.portal.service.persistence.ImagePersistence;
38  import com.liferay.portal.service.persistence.ResourceFinder;
39  import com.liferay.portal.service.persistence.ResourcePersistence;
40  import com.liferay.portal.service.persistence.UserFinder;
41  import com.liferay.portal.service.persistence.UserPersistence;
42  import com.liferay.portal.service.persistence.WebDAVPropsPersistence;
43  
44  import com.liferay.portlet.journal.service.JournalArticleImageLocalService;
45  import com.liferay.portlet.journal.service.JournalArticleLocalService;
46  import com.liferay.portlet.journal.service.JournalArticleResourceLocalService;
47  import com.liferay.portlet.journal.service.JournalArticleService;
48  import com.liferay.portlet.journal.service.JournalContentSearchLocalService;
49  import com.liferay.portlet.journal.service.JournalFeedLocalService;
50  import com.liferay.portlet.journal.service.JournalFeedService;
51  import com.liferay.portlet.journal.service.JournalStructureLocalService;
52  import com.liferay.portlet.journal.service.JournalStructureService;
53  import com.liferay.portlet.journal.service.JournalTemplateLocalService;
54  import com.liferay.portlet.journal.service.JournalTemplateService;
55  import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
56  import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
57  import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
58  import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
59  import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
60  import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
61  import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
62  import com.liferay.portlet.journal.service.persistence.JournalStructureFinder;
63  import com.liferay.portlet.journal.service.persistence.JournalStructurePersistence;
64  import com.liferay.portlet.journal.service.persistence.JournalTemplateFinder;
65  import com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence;
66  
67  /**
68   * <a href="JournalTemplateServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
69   *
70   * @author Brian Wing Shun Chan
71   *
72   */
73  public abstract class JournalTemplateServiceBaseImpl extends PrincipalBean
74      implements JournalTemplateService, InitializingBean {
75      public JournalArticleLocalService getJournalArticleLocalService() {
76          return journalArticleLocalService;
77      }
78  
79      public void setJournalArticleLocalService(
80          JournalArticleLocalService journalArticleLocalService) {
81          this.journalArticleLocalService = journalArticleLocalService;
82      }
83  
84      public JournalArticleService getJournalArticleService() {
85          return journalArticleService;
86      }
87  
88      public void setJournalArticleService(
89          JournalArticleService journalArticleService) {
90          this.journalArticleService = journalArticleService;
91      }
92  
93      public JournalArticlePersistence getJournalArticlePersistence() {
94          return journalArticlePersistence;
95      }
96  
97      public void setJournalArticlePersistence(
98          JournalArticlePersistence journalArticlePersistence) {
99          this.journalArticlePersistence = journalArticlePersistence;
100     }
101 
102     public JournalArticleFinder getJournalArticleFinder() {
103         return journalArticleFinder;
104     }
105 
106     public void setJournalArticleFinder(
107         JournalArticleFinder journalArticleFinder) {
108         this.journalArticleFinder = journalArticleFinder;
109     }
110 
111     public JournalArticleImageLocalService getJournalArticleImageLocalService() {
112         return journalArticleImageLocalService;
113     }
114 
115     public void setJournalArticleImageLocalService(
116         JournalArticleImageLocalService journalArticleImageLocalService) {
117         this.journalArticleImageLocalService = journalArticleImageLocalService;
118     }
119 
120     public JournalArticleImagePersistence getJournalArticleImagePersistence() {
121         return journalArticleImagePersistence;
122     }
123 
124     public void setJournalArticleImagePersistence(
125         JournalArticleImagePersistence journalArticleImagePersistence) {
126         this.journalArticleImagePersistence = journalArticleImagePersistence;
127     }
128 
129     public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
130         return journalArticleResourceLocalService;
131     }
132 
133     public void setJournalArticleResourceLocalService(
134         JournalArticleResourceLocalService journalArticleResourceLocalService) {
135         this.journalArticleResourceLocalService = journalArticleResourceLocalService;
136     }
137 
138     public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
139         return journalArticleResourcePersistence;
140     }
141 
142     public void setJournalArticleResourcePersistence(
143         JournalArticleResourcePersistence journalArticleResourcePersistence) {
144         this.journalArticleResourcePersistence = journalArticleResourcePersistence;
145     }
146 
147     public JournalContentSearchLocalService getJournalContentSearchLocalService() {
148         return journalContentSearchLocalService;
149     }
150 
151     public void setJournalContentSearchLocalService(
152         JournalContentSearchLocalService journalContentSearchLocalService) {
153         this.journalContentSearchLocalService = journalContentSearchLocalService;
154     }
155 
156     public JournalContentSearchPersistence getJournalContentSearchPersistence() {
157         return journalContentSearchPersistence;
158     }
159 
160     public void setJournalContentSearchPersistence(
161         JournalContentSearchPersistence journalContentSearchPersistence) {
162         this.journalContentSearchPersistence = journalContentSearchPersistence;
163     }
164 
165     public JournalFeedLocalService getJournalFeedLocalService() {
166         return journalFeedLocalService;
167     }
168 
169     public void setJournalFeedLocalService(
170         JournalFeedLocalService journalFeedLocalService) {
171         this.journalFeedLocalService = journalFeedLocalService;
172     }
173 
174     public JournalFeedService getJournalFeedService() {
175         return journalFeedService;
176     }
177 
178     public void setJournalFeedService(JournalFeedService journalFeedService) {
179         this.journalFeedService = journalFeedService;
180     }
181 
182     public JournalFeedPersistence getJournalFeedPersistence() {
183         return journalFeedPersistence;
184     }
185 
186     public void setJournalFeedPersistence(
187         JournalFeedPersistence journalFeedPersistence) {
188         this.journalFeedPersistence = journalFeedPersistence;
189     }
190 
191     public JournalFeedFinder getJournalFeedFinder() {
192         return journalFeedFinder;
193     }
194 
195     public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
196         this.journalFeedFinder = journalFeedFinder;
197     }
198 
199     public JournalStructureLocalService getJournalStructureLocalService() {
200         return journalStructureLocalService;
201     }
202 
203     public void setJournalStructureLocalService(
204         JournalStructureLocalService journalStructureLocalService) {
205         this.journalStructureLocalService = journalStructureLocalService;
206     }
207 
208     public JournalStructureService getJournalStructureService() {
209         return journalStructureService;
210     }
211 
212     public void setJournalStructureService(
213         JournalStructureService journalStructureService) {
214         this.journalStructureService = journalStructureService;
215     }
216 
217     public JournalStructurePersistence getJournalStructurePersistence() {
218         return journalStructurePersistence;
219     }
220 
221     public void setJournalStructurePersistence(
222         JournalStructurePersistence journalStructurePersistence) {
223         this.journalStructurePersistence = journalStructurePersistence;
224     }
225 
226     public JournalStructureFinder getJournalStructureFinder() {
227         return journalStructureFinder;
228     }
229 
230     public void setJournalStructureFinder(
231         JournalStructureFinder journalStructureFinder) {
232         this.journalStructureFinder = journalStructureFinder;
233     }
234 
235     public JournalTemplateLocalService getJournalTemplateLocalService() {
236         return journalTemplateLocalService;
237     }
238 
239     public void setJournalTemplateLocalService(
240         JournalTemplateLocalService journalTemplateLocalService) {
241         this.journalTemplateLocalService = journalTemplateLocalService;
242     }
243 
244     public JournalTemplatePersistence getJournalTemplatePersistence() {
245         return journalTemplatePersistence;
246     }
247 
248     public void setJournalTemplatePersistence(
249         JournalTemplatePersistence journalTemplatePersistence) {
250         this.journalTemplatePersistence = journalTemplatePersistence;
251     }
252 
253     public JournalTemplateFinder getJournalTemplateFinder() {
254         return journalTemplateFinder;
255     }
256 
257     public void setJournalTemplateFinder(
258         JournalTemplateFinder journalTemplateFinder) {
259         this.journalTemplateFinder = journalTemplateFinder;
260     }
261 
262     public CounterLocalService getCounterLocalService() {
263         return counterLocalService;
264     }
265 
266     public void setCounterLocalService(CounterLocalService counterLocalService) {
267         this.counterLocalService = counterLocalService;
268     }
269 
270     public CounterService getCounterService() {
271         return counterService;
272     }
273 
274     public void setCounterService(CounterService counterService) {
275         this.counterService = counterService;
276     }
277 
278     public ImageLocalService getImageLocalService() {
279         return imageLocalService;
280     }
281 
282     public void setImageLocalService(ImageLocalService imageLocalService) {
283         this.imageLocalService = imageLocalService;
284     }
285 
286     public ImagePersistence getImagePersistence() {
287         return imagePersistence;
288     }
289 
290     public void setImagePersistence(ImagePersistence imagePersistence) {
291         this.imagePersistence = imagePersistence;
292     }
293 
294     public ResourceLocalService getResourceLocalService() {
295         return resourceLocalService;
296     }
297 
298     public void setResourceLocalService(
299         ResourceLocalService resourceLocalService) {
300         this.resourceLocalService = resourceLocalService;
301     }
302 
303     public ResourceService getResourceService() {
304         return resourceService;
305     }
306 
307     public void setResourceService(ResourceService resourceService) {
308         this.resourceService = resourceService;
309     }
310 
311     public ResourcePersistence getResourcePersistence() {
312         return resourcePersistence;
313     }
314 
315     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
316         this.resourcePersistence = resourcePersistence;
317     }
318 
319     public ResourceFinder getResourceFinder() {
320         return resourceFinder;
321     }
322 
323     public void setResourceFinder(ResourceFinder resourceFinder) {
324         this.resourceFinder = resourceFinder;
325     }
326 
327     public UserLocalService getUserLocalService() {
328         return userLocalService;
329     }
330 
331     public void setUserLocalService(UserLocalService userLocalService) {
332         this.userLocalService = userLocalService;
333     }
334 
335     public UserService getUserService() {
336         return userService;
337     }
338 
339     public void setUserService(UserService userService) {
340         this.userService = userService;
341     }
342 
343     public UserPersistence getUserPersistence() {
344         return userPersistence;
345     }
346 
347     public void setUserPersistence(UserPersistence userPersistence) {
348         this.userPersistence = userPersistence;
349     }
350 
351     public UserFinder getUserFinder() {
352         return userFinder;
353     }
354 
355     public void setUserFinder(UserFinder userFinder) {
356         this.userFinder = userFinder;
357     }
358 
359     public WebDAVPropsLocalService getWebDAVPropsLocalService() {
360         return webDAVPropsLocalService;
361     }
362 
363     public void setWebDAVPropsLocalService(
364         WebDAVPropsLocalService webDAVPropsLocalService) {
365         this.webDAVPropsLocalService = webDAVPropsLocalService;
366     }
367 
368     public WebDAVPropsPersistence getWebDAVPropsPersistence() {
369         return webDAVPropsPersistence;
370     }
371 
372     public void setWebDAVPropsPersistence(
373         WebDAVPropsPersistence webDAVPropsPersistence) {
374         this.webDAVPropsPersistence = webDAVPropsPersistence;
375     }
376 
377     public void afterPropertiesSet() {
378         if (journalArticleLocalService == null) {
379             journalArticleLocalService = (JournalArticleLocalService)PortalBeanLocatorUtil.locate(JournalArticleLocalService.class.getName() +
380                     ".impl");
381         }
382 
383         if (journalArticleService == null) {
384             journalArticleService = (JournalArticleService)PortalBeanLocatorUtil.locate(JournalArticleService.class.getName() +
385                     ".impl");
386         }
387 
388         if (journalArticlePersistence == null) {
389             journalArticlePersistence = (JournalArticlePersistence)PortalBeanLocatorUtil.locate(JournalArticlePersistence.class.getName() +
390                     ".impl");
391         }
392 
393         if (journalArticleFinder == null) {
394             journalArticleFinder = (JournalArticleFinder)PortalBeanLocatorUtil.locate(JournalArticleFinder.class.getName() +
395                     ".impl");
396         }
397 
398         if (journalArticleImageLocalService == null) {
399             journalArticleImageLocalService = (JournalArticleImageLocalService)PortalBeanLocatorUtil.locate(JournalArticleImageLocalService.class.getName() +
400                     ".impl");
401         }
402 
403         if (journalArticleImagePersistence == null) {
404             journalArticleImagePersistence = (JournalArticleImagePersistence)PortalBeanLocatorUtil.locate(JournalArticleImagePersistence.class.getName() +
405                     ".impl");
406         }
407 
408         if (journalArticleResourceLocalService == null) {
409             journalArticleResourceLocalService = (JournalArticleResourceLocalService)PortalBeanLocatorUtil.locate(JournalArticleResourceLocalService.class.getName() +
410                     ".impl");
411         }
412 
413         if (journalArticleResourcePersistence == null) {
414             journalArticleResourcePersistence = (JournalArticleResourcePersistence)PortalBeanLocatorUtil.locate(JournalArticleResourcePersistence.class.getName() +
415                     ".impl");
416         }
417 
418         if (journalContentSearchLocalService == null) {
419             journalContentSearchLocalService = (JournalContentSearchLocalService)PortalBeanLocatorUtil.locate(JournalContentSearchLocalService.class.getName() +
420                     ".impl");
421         }
422 
423         if (journalContentSearchPersistence == null) {
424             journalContentSearchPersistence = (JournalContentSearchPersistence)PortalBeanLocatorUtil.locate(JournalContentSearchPersistence.class.getName() +
425                     ".impl");
426         }
427 
428         if (journalFeedLocalService == null) {
429             journalFeedLocalService = (JournalFeedLocalService)PortalBeanLocatorUtil.locate(JournalFeedLocalService.class.getName() +
430                     ".impl");
431         }
432 
433         if (journalFeedService == null) {
434             journalFeedService = (JournalFeedService)PortalBeanLocatorUtil.locate(JournalFeedService.class.getName() +
435                     ".impl");
436         }
437 
438         if (journalFeedPersistence == null) {
439             journalFeedPersistence = (JournalFeedPersistence)PortalBeanLocatorUtil.locate(JournalFeedPersistence.class.getName() +
440                     ".impl");
441         }
442 
443         if (journalFeedFinder == null) {
444             journalFeedFinder = (JournalFeedFinder)PortalBeanLocatorUtil.locate(JournalFeedFinder.class.getName() +
445                     ".impl");
446         }
447 
448         if (journalStructureLocalService == null) {
449             journalStructureLocalService = (JournalStructureLocalService)PortalBeanLocatorUtil.locate(JournalStructureLocalService.class.getName() +
450                     ".impl");
451         }
452 
453         if (journalStructureService == null) {
454             journalStructureService = (JournalStructureService)PortalBeanLocatorUtil.locate(JournalStructureService.class.getName() +
455                     ".impl");
456         }
457 
458         if (journalStructurePersistence == null) {
459             journalStructurePersistence = (JournalStructurePersistence)PortalBeanLocatorUtil.locate(JournalStructurePersistence.class.getName() +
460                     ".impl");
461         }
462 
463         if (journalStructureFinder == null) {
464             journalStructureFinder = (JournalStructureFinder)PortalBeanLocatorUtil.locate(JournalStructureFinder.class.getName() +
465                     ".impl");
466         }
467 
468         if (journalTemplateLocalService == null) {
469             journalTemplateLocalService = (JournalTemplateLocalService)PortalBeanLocatorUtil.locate(JournalTemplateLocalService.class.getName() +
470                     ".impl");
471         }
472 
473         if (journalTemplatePersistence == null) {
474             journalTemplatePersistence = (JournalTemplatePersistence)PortalBeanLocatorUtil.locate(JournalTemplatePersistence.class.getName() +
475                     ".impl");
476         }
477 
478         if (journalTemplateFinder == null) {
479             journalTemplateFinder = (JournalTemplateFinder)PortalBeanLocatorUtil.locate(JournalTemplateFinder.class.getName() +
480                     ".impl");
481         }
482 
483         if (counterLocalService == null) {
484             counterLocalService = (CounterLocalService)PortalBeanLocatorUtil.locate(CounterLocalService.class.getName() +
485                     ".impl");
486         }
487 
488         if (counterService == null) {
489             counterService = (CounterService)PortalBeanLocatorUtil.locate(CounterService.class.getName() +
490                     ".impl");
491         }
492 
493         if (imageLocalService == null) {
494             imageLocalService = (ImageLocalService)PortalBeanLocatorUtil.locate(ImageLocalService.class.getName() +
495                     ".impl");
496         }
497 
498         if (imagePersistence == null) {
499             imagePersistence = (ImagePersistence)PortalBeanLocatorUtil.locate(ImagePersistence.class.getName() +
500                     ".impl");
501         }
502 
503         if (resourceLocalService == null) {
504             resourceLocalService = (ResourceLocalService)PortalBeanLocatorUtil.locate(ResourceLocalService.class.getName() +
505                     ".impl");
506         }
507 
508         if (resourceService == null) {
509             resourceService = (ResourceService)PortalBeanLocatorUtil.locate(ResourceService.class.getName() +
510                     ".impl");
511         }
512 
513         if (resourcePersistence == null) {
514             resourcePersistence = (ResourcePersistence)PortalBeanLocatorUtil.locate(ResourcePersistence.class.getName() +
515                     ".impl");
516         }
517 
518         if (resourceFinder == null) {
519             resourceFinder = (ResourceFinder)PortalBeanLocatorUtil.locate(ResourceFinder.class.getName() +
520                     ".impl");
521         }
522 
523         if (userLocalService == null) {
524             userLocalService = (UserLocalService)PortalBeanLocatorUtil.locate(UserLocalService.class.getName() +
525                     ".impl");
526         }
527 
528         if (userService == null) {
529             userService = (UserService)PortalBeanLocatorUtil.locate(UserService.class.getName() +
530                     ".impl");
531         }
532 
533         if (userPersistence == null) {
534             userPersistence = (UserPersistence)PortalBeanLocatorUtil.locate(UserPersistence.class.getName() +
535                     ".impl");
536         }
537 
538         if (userFinder == null) {
539             userFinder = (UserFinder)PortalBeanLocatorUtil.locate(UserFinder.class.getName() +
540                     ".impl");
541         }
542 
543         if (webDAVPropsLocalService == null) {
544             webDAVPropsLocalService = (WebDAVPropsLocalService)PortalBeanLocatorUtil.locate(WebDAVPropsLocalService.class.getName() +
545                     ".impl");
546         }
547 
548         if (webDAVPropsPersistence == null) {
549             webDAVPropsPersistence = (WebDAVPropsPersistence)PortalBeanLocatorUtil.locate(WebDAVPropsPersistence.class.getName() +
550                     ".impl");
551         }
552     }
553 
554     protected JournalArticleLocalService journalArticleLocalService;
555     protected JournalArticleService journalArticleService;
556     protected JournalArticlePersistence journalArticlePersistence;
557     protected JournalArticleFinder journalArticleFinder;
558     protected JournalArticleImageLocalService journalArticleImageLocalService;
559     protected JournalArticleImagePersistence journalArticleImagePersistence;
560     protected JournalArticleResourceLocalService journalArticleResourceLocalService;
561     protected JournalArticleResourcePersistence journalArticleResourcePersistence;
562     protected JournalContentSearchLocalService journalContentSearchLocalService;
563     protected JournalContentSearchPersistence journalContentSearchPersistence;
564     protected JournalFeedLocalService journalFeedLocalService;
565     protected JournalFeedService journalFeedService;
566     protected JournalFeedPersistence journalFeedPersistence;
567     protected JournalFeedFinder journalFeedFinder;
568     protected JournalStructureLocalService journalStructureLocalService;
569     protected JournalStructureService journalStructureService;
570     protected JournalStructurePersistence journalStructurePersistence;
571     protected JournalStructureFinder journalStructureFinder;
572     protected JournalTemplateLocalService journalTemplateLocalService;
573     protected JournalTemplatePersistence journalTemplatePersistence;
574     protected JournalTemplateFinder journalTemplateFinder;
575     protected CounterLocalService counterLocalService;
576     protected CounterService counterService;
577     protected ImageLocalService imageLocalService;
578     protected ImagePersistence imagePersistence;
579     protected ResourceLocalService resourceLocalService;
580     protected ResourceService resourceService;
581     protected ResourcePersistence resourcePersistence;
582     protected ResourceFinder resourceFinder;
583     protected UserLocalService userLocalService;
584     protected UserService userService;
585     protected UserPersistence userPersistence;
586     protected UserFinder userFinder;
587     protected WebDAVPropsLocalService webDAVPropsLocalService;
588     protected WebDAVPropsPersistence webDAVPropsPersistence;
589 }