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.softwarecatalog.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.base.PrincipalBean;
36  import com.liferay.portal.service.persistence.ImagePersistence;
37  import com.liferay.portal.service.persistence.ResourceFinder;
38  import com.liferay.portal.service.persistence.ResourcePersistence;
39  import com.liferay.portal.service.persistence.UserFinder;
40  import com.liferay.portal.service.persistence.UserPersistence;
41  
42  import com.liferay.portlet.messageboards.service.MBMessageLocalService;
43  import com.liferay.portlet.messageboards.service.MBMessageService;
44  import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
45  import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
46  import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
47  import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
48  import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService;
49  import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService;
50  import com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService;
51  import com.liferay.portlet.softwarecatalog.service.SCLicenseService;
52  import com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService;
53  import com.liferay.portlet.softwarecatalog.service.SCProductEntryService;
54  import com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService;
55  import com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService;
56  import com.liferay.portlet.softwarecatalog.service.SCProductVersionService;
57  import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence;
58  import com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence;
59  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence;
60  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence;
61  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence;
62  
63  /**
64   * <a href="SCProductEntryServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
65   *
66   * @author Brian Wing Shun Chan
67   *
68   */
69  public abstract class SCProductEntryServiceBaseImpl extends PrincipalBean
70      implements SCProductEntryService, InitializingBean {
71      public SCLicenseLocalService getSCLicenseLocalService() {
72          return scLicenseLocalService;
73      }
74  
75      public void setSCLicenseLocalService(
76          SCLicenseLocalService scLicenseLocalService) {
77          this.scLicenseLocalService = scLicenseLocalService;
78      }
79  
80      public SCLicenseService getSCLicenseService() {
81          return scLicenseService;
82      }
83  
84      public void setSCLicenseService(SCLicenseService scLicenseService) {
85          this.scLicenseService = scLicenseService;
86      }
87  
88      public SCLicensePersistence getSCLicensePersistence() {
89          return scLicensePersistence;
90      }
91  
92      public void setSCLicensePersistence(
93          SCLicensePersistence scLicensePersistence) {
94          this.scLicensePersistence = scLicensePersistence;
95      }
96  
97      public SCFrameworkVersionLocalService getSCFrameworkVersionLocalService() {
98          return scFrameworkVersionLocalService;
99      }
100 
101     public void setSCFrameworkVersionLocalService(
102         SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
103         this.scFrameworkVersionLocalService = scFrameworkVersionLocalService;
104     }
105 
106     public SCFrameworkVersionService getSCFrameworkVersionService() {
107         return scFrameworkVersionService;
108     }
109 
110     public void setSCFrameworkVersionService(
111         SCFrameworkVersionService scFrameworkVersionService) {
112         this.scFrameworkVersionService = scFrameworkVersionService;
113     }
114 
115     public SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
116         return scFrameworkVersionPersistence;
117     }
118 
119     public void setSCFrameworkVersionPersistence(
120         SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
121         this.scFrameworkVersionPersistence = scFrameworkVersionPersistence;
122     }
123 
124     public SCProductEntryLocalService getSCProductEntryLocalService() {
125         return scProductEntryLocalService;
126     }
127 
128     public void setSCProductEntryLocalService(
129         SCProductEntryLocalService scProductEntryLocalService) {
130         this.scProductEntryLocalService = scProductEntryLocalService;
131     }
132 
133     public SCProductEntryPersistence getSCProductEntryPersistence() {
134         return scProductEntryPersistence;
135     }
136 
137     public void setSCProductEntryPersistence(
138         SCProductEntryPersistence scProductEntryPersistence) {
139         this.scProductEntryPersistence = scProductEntryPersistence;
140     }
141 
142     public SCProductScreenshotLocalService getSCProductScreenshotLocalService() {
143         return scProductScreenshotLocalService;
144     }
145 
146     public void setSCProductScreenshotLocalService(
147         SCProductScreenshotLocalService scProductScreenshotLocalService) {
148         this.scProductScreenshotLocalService = scProductScreenshotLocalService;
149     }
150 
151     public SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
152         return scProductScreenshotPersistence;
153     }
154 
155     public void setSCProductScreenshotPersistence(
156         SCProductScreenshotPersistence scProductScreenshotPersistence) {
157         this.scProductScreenshotPersistence = scProductScreenshotPersistence;
158     }
159 
160     public SCProductVersionLocalService getSCProductVersionLocalService() {
161         return scProductVersionLocalService;
162     }
163 
164     public void setSCProductVersionLocalService(
165         SCProductVersionLocalService scProductVersionLocalService) {
166         this.scProductVersionLocalService = scProductVersionLocalService;
167     }
168 
169     public SCProductVersionService getSCProductVersionService() {
170         return scProductVersionService;
171     }
172 
173     public void setSCProductVersionService(
174         SCProductVersionService scProductVersionService) {
175         this.scProductVersionService = scProductVersionService;
176     }
177 
178     public SCProductVersionPersistence getSCProductVersionPersistence() {
179         return scProductVersionPersistence;
180     }
181 
182     public void setSCProductVersionPersistence(
183         SCProductVersionPersistence scProductVersionPersistence) {
184         this.scProductVersionPersistence = scProductVersionPersistence;
185     }
186 
187     public CounterLocalService getCounterLocalService() {
188         return counterLocalService;
189     }
190 
191     public void setCounterLocalService(CounterLocalService counterLocalService) {
192         this.counterLocalService = counterLocalService;
193     }
194 
195     public CounterService getCounterService() {
196         return counterService;
197     }
198 
199     public void setCounterService(CounterService counterService) {
200         this.counterService = counterService;
201     }
202 
203     public ImageLocalService getImageLocalService() {
204         return imageLocalService;
205     }
206 
207     public void setImageLocalService(ImageLocalService imageLocalService) {
208         this.imageLocalService = imageLocalService;
209     }
210 
211     public ImagePersistence getImagePersistence() {
212         return imagePersistence;
213     }
214 
215     public void setImagePersistence(ImagePersistence imagePersistence) {
216         this.imagePersistence = imagePersistence;
217     }
218 
219     public ResourceLocalService getResourceLocalService() {
220         return resourceLocalService;
221     }
222 
223     public void setResourceLocalService(
224         ResourceLocalService resourceLocalService) {
225         this.resourceLocalService = resourceLocalService;
226     }
227 
228     public ResourceService getResourceService() {
229         return resourceService;
230     }
231 
232     public void setResourceService(ResourceService resourceService) {
233         this.resourceService = resourceService;
234     }
235 
236     public ResourcePersistence getResourcePersistence() {
237         return resourcePersistence;
238     }
239 
240     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
241         this.resourcePersistence = resourcePersistence;
242     }
243 
244     public ResourceFinder getResourceFinder() {
245         return resourceFinder;
246     }
247 
248     public void setResourceFinder(ResourceFinder resourceFinder) {
249         this.resourceFinder = resourceFinder;
250     }
251 
252     public UserLocalService getUserLocalService() {
253         return userLocalService;
254     }
255 
256     public void setUserLocalService(UserLocalService userLocalService) {
257         this.userLocalService = userLocalService;
258     }
259 
260     public UserService getUserService() {
261         return userService;
262     }
263 
264     public void setUserService(UserService userService) {
265         this.userService = userService;
266     }
267 
268     public UserPersistence getUserPersistence() {
269         return userPersistence;
270     }
271 
272     public void setUserPersistence(UserPersistence userPersistence) {
273         this.userPersistence = userPersistence;
274     }
275 
276     public UserFinder getUserFinder() {
277         return userFinder;
278     }
279 
280     public void setUserFinder(UserFinder userFinder) {
281         this.userFinder = userFinder;
282     }
283 
284     public MBMessageLocalService getMBMessageLocalService() {
285         return mbMessageLocalService;
286     }
287 
288     public void setMBMessageLocalService(
289         MBMessageLocalService mbMessageLocalService) {
290         this.mbMessageLocalService = mbMessageLocalService;
291     }
292 
293     public MBMessageService getMBMessageService() {
294         return mbMessageService;
295     }
296 
297     public void setMBMessageService(MBMessageService mbMessageService) {
298         this.mbMessageService = mbMessageService;
299     }
300 
301     public MBMessagePersistence getMBMessagePersistence() {
302         return mbMessagePersistence;
303     }
304 
305     public void setMBMessagePersistence(
306         MBMessagePersistence mbMessagePersistence) {
307         this.mbMessagePersistence = mbMessagePersistence;
308     }
309 
310     public MBMessageFinder getMBMessageFinder() {
311         return mbMessageFinder;
312     }
313 
314     public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
315         this.mbMessageFinder = mbMessageFinder;
316     }
317 
318     public RatingsStatsLocalService getRatingsStatsLocalService() {
319         return ratingsStatsLocalService;
320     }
321 
322     public void setRatingsStatsLocalService(
323         RatingsStatsLocalService ratingsStatsLocalService) {
324         this.ratingsStatsLocalService = ratingsStatsLocalService;
325     }
326 
327     public RatingsStatsPersistence getRatingsStatsPersistence() {
328         return ratingsStatsPersistence;
329     }
330 
331     public void setRatingsStatsPersistence(
332         RatingsStatsPersistence ratingsStatsPersistence) {
333         this.ratingsStatsPersistence = ratingsStatsPersistence;
334     }
335 
336     public void afterPropertiesSet() {
337         if (scLicenseLocalService == null) {
338             scLicenseLocalService = (SCLicenseLocalService)PortalBeanLocatorUtil.locate(SCLicenseLocalService.class.getName() +
339                     ".impl");
340         }
341 
342         if (scLicenseService == null) {
343             scLicenseService = (SCLicenseService)PortalBeanLocatorUtil.locate(SCLicenseService.class.getName() +
344                     ".impl");
345         }
346 
347         if (scLicensePersistence == null) {
348             scLicensePersistence = (SCLicensePersistence)PortalBeanLocatorUtil.locate(SCLicensePersistence.class.getName() +
349                     ".impl");
350         }
351 
352         if (scFrameworkVersionLocalService == null) {
353             scFrameworkVersionLocalService = (SCFrameworkVersionLocalService)PortalBeanLocatorUtil.locate(SCFrameworkVersionLocalService.class.getName() +
354                     ".impl");
355         }
356 
357         if (scFrameworkVersionService == null) {
358             scFrameworkVersionService = (SCFrameworkVersionService)PortalBeanLocatorUtil.locate(SCFrameworkVersionService.class.getName() +
359                     ".impl");
360         }
361 
362         if (scFrameworkVersionPersistence == null) {
363             scFrameworkVersionPersistence = (SCFrameworkVersionPersistence)PortalBeanLocatorUtil.locate(SCFrameworkVersionPersistence.class.getName() +
364                     ".impl");
365         }
366 
367         if (scProductEntryLocalService == null) {
368             scProductEntryLocalService = (SCProductEntryLocalService)PortalBeanLocatorUtil.locate(SCProductEntryLocalService.class.getName() +
369                     ".impl");
370         }
371 
372         if (scProductEntryPersistence == null) {
373             scProductEntryPersistence = (SCProductEntryPersistence)PortalBeanLocatorUtil.locate(SCProductEntryPersistence.class.getName() +
374                     ".impl");
375         }
376 
377         if (scProductScreenshotLocalService == null) {
378             scProductScreenshotLocalService = (SCProductScreenshotLocalService)PortalBeanLocatorUtil.locate(SCProductScreenshotLocalService.class.getName() +
379                     ".impl");
380         }
381 
382         if (scProductScreenshotPersistence == null) {
383             scProductScreenshotPersistence = (SCProductScreenshotPersistence)PortalBeanLocatorUtil.locate(SCProductScreenshotPersistence.class.getName() +
384                     ".impl");
385         }
386 
387         if (scProductVersionLocalService == null) {
388             scProductVersionLocalService = (SCProductVersionLocalService)PortalBeanLocatorUtil.locate(SCProductVersionLocalService.class.getName() +
389                     ".impl");
390         }
391 
392         if (scProductVersionService == null) {
393             scProductVersionService = (SCProductVersionService)PortalBeanLocatorUtil.locate(SCProductVersionService.class.getName() +
394                     ".impl");
395         }
396 
397         if (scProductVersionPersistence == null) {
398             scProductVersionPersistence = (SCProductVersionPersistence)PortalBeanLocatorUtil.locate(SCProductVersionPersistence.class.getName() +
399                     ".impl");
400         }
401 
402         if (counterLocalService == null) {
403             counterLocalService = (CounterLocalService)PortalBeanLocatorUtil.locate(CounterLocalService.class.getName() +
404                     ".impl");
405         }
406 
407         if (counterService == null) {
408             counterService = (CounterService)PortalBeanLocatorUtil.locate(CounterService.class.getName() +
409                     ".impl");
410         }
411 
412         if (imageLocalService == null) {
413             imageLocalService = (ImageLocalService)PortalBeanLocatorUtil.locate(ImageLocalService.class.getName() +
414                     ".impl");
415         }
416 
417         if (imagePersistence == null) {
418             imagePersistence = (ImagePersistence)PortalBeanLocatorUtil.locate(ImagePersistence.class.getName() +
419                     ".impl");
420         }
421 
422         if (resourceLocalService == null) {
423             resourceLocalService = (ResourceLocalService)PortalBeanLocatorUtil.locate(ResourceLocalService.class.getName() +
424                     ".impl");
425         }
426 
427         if (resourceService == null) {
428             resourceService = (ResourceService)PortalBeanLocatorUtil.locate(ResourceService.class.getName() +
429                     ".impl");
430         }
431 
432         if (resourcePersistence == null) {
433             resourcePersistence = (ResourcePersistence)PortalBeanLocatorUtil.locate(ResourcePersistence.class.getName() +
434                     ".impl");
435         }
436 
437         if (resourceFinder == null) {
438             resourceFinder = (ResourceFinder)PortalBeanLocatorUtil.locate(ResourceFinder.class.getName() +
439                     ".impl");
440         }
441 
442         if (userLocalService == null) {
443             userLocalService = (UserLocalService)PortalBeanLocatorUtil.locate(UserLocalService.class.getName() +
444                     ".impl");
445         }
446 
447         if (userService == null) {
448             userService = (UserService)PortalBeanLocatorUtil.locate(UserService.class.getName() +
449                     ".impl");
450         }
451 
452         if (userPersistence == null) {
453             userPersistence = (UserPersistence)PortalBeanLocatorUtil.locate(UserPersistence.class.getName() +
454                     ".impl");
455         }
456 
457         if (userFinder == null) {
458             userFinder = (UserFinder)PortalBeanLocatorUtil.locate(UserFinder.class.getName() +
459                     ".impl");
460         }
461 
462         if (mbMessageLocalService == null) {
463             mbMessageLocalService = (MBMessageLocalService)PortalBeanLocatorUtil.locate(MBMessageLocalService.class.getName() +
464                     ".impl");
465         }
466 
467         if (mbMessageService == null) {
468             mbMessageService = (MBMessageService)PortalBeanLocatorUtil.locate(MBMessageService.class.getName() +
469                     ".impl");
470         }
471 
472         if (mbMessagePersistence == null) {
473             mbMessagePersistence = (MBMessagePersistence)PortalBeanLocatorUtil.locate(MBMessagePersistence.class.getName() +
474                     ".impl");
475         }
476 
477         if (mbMessageFinder == null) {
478             mbMessageFinder = (MBMessageFinder)PortalBeanLocatorUtil.locate(MBMessageFinder.class.getName() +
479                     ".impl");
480         }
481 
482         if (ratingsStatsLocalService == null) {
483             ratingsStatsLocalService = (RatingsStatsLocalService)PortalBeanLocatorUtil.locate(RatingsStatsLocalService.class.getName() +
484                     ".impl");
485         }
486 
487         if (ratingsStatsPersistence == null) {
488             ratingsStatsPersistence = (RatingsStatsPersistence)PortalBeanLocatorUtil.locate(RatingsStatsPersistence.class.getName() +
489                     ".impl");
490         }
491     }
492 
493     protected SCLicenseLocalService scLicenseLocalService;
494     protected SCLicenseService scLicenseService;
495     protected SCLicensePersistence scLicensePersistence;
496     protected SCFrameworkVersionLocalService scFrameworkVersionLocalService;
497     protected SCFrameworkVersionService scFrameworkVersionService;
498     protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
499     protected SCProductEntryLocalService scProductEntryLocalService;
500     protected SCProductEntryPersistence scProductEntryPersistence;
501     protected SCProductScreenshotLocalService scProductScreenshotLocalService;
502     protected SCProductScreenshotPersistence scProductScreenshotPersistence;
503     protected SCProductVersionLocalService scProductVersionLocalService;
504     protected SCProductVersionService scProductVersionService;
505     protected SCProductVersionPersistence scProductVersionPersistence;
506     protected CounterLocalService counterLocalService;
507     protected CounterService counterService;
508     protected ImageLocalService imageLocalService;
509     protected ImagePersistence imagePersistence;
510     protected ResourceLocalService resourceLocalService;
511     protected ResourceService resourceService;
512     protected ResourcePersistence resourcePersistence;
513     protected ResourceFinder resourceFinder;
514     protected UserLocalService userLocalService;
515     protected UserService userService;
516     protected UserPersistence userPersistence;
517     protected UserFinder userFinder;
518     protected MBMessageLocalService mbMessageLocalService;
519     protected MBMessageService mbMessageService;
520     protected MBMessagePersistence mbMessagePersistence;
521     protected MBMessageFinder mbMessageFinder;
522     protected RatingsStatsLocalService ratingsStatsLocalService;
523     protected RatingsStatsPersistence ratingsStatsPersistence;
524 }