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