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.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.base.PrincipalBean;
35  import com.liferay.portal.service.persistence.ResourceFinder;
36  import com.liferay.portal.service.persistence.ResourcePersistence;
37  import com.liferay.portal.service.persistence.UserFinder;
38  import com.liferay.portal.service.persistence.UserPersistence;
39  
40  import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService;
41  import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService;
42  import com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService;
43  import com.liferay.portlet.softwarecatalog.service.SCLicenseService;
44  import com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService;
45  import com.liferay.portlet.softwarecatalog.service.SCProductEntryService;
46  import com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService;
47  import com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService;
48  import com.liferay.portlet.softwarecatalog.service.SCProductVersionService;
49  import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence;
50  import com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence;
51  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence;
52  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence;
53  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence;
54  
55  /**
56   * <a href="SCFrameworkVersionServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
57   *
58   * @author Brian Wing Shun Chan
59   *
60   */
61  public abstract class SCFrameworkVersionServiceBaseImpl extends PrincipalBean
62      implements SCFrameworkVersionService, InitializingBean {
63      public SCLicenseLocalService getSCLicenseLocalService() {
64          return scLicenseLocalService;
65      }
66  
67      public void setSCLicenseLocalService(
68          SCLicenseLocalService scLicenseLocalService) {
69          this.scLicenseLocalService = scLicenseLocalService;
70      }
71  
72      public SCLicenseService getSCLicenseService() {
73          return scLicenseService;
74      }
75  
76      public void setSCLicenseService(SCLicenseService scLicenseService) {
77          this.scLicenseService = scLicenseService;
78      }
79  
80      public SCLicensePersistence getSCLicensePersistence() {
81          return scLicensePersistence;
82      }
83  
84      public void setSCLicensePersistence(
85          SCLicensePersistence scLicensePersistence) {
86          this.scLicensePersistence = scLicensePersistence;
87      }
88  
89      public SCFrameworkVersionLocalService getSCFrameworkVersionLocalService() {
90          return scFrameworkVersionLocalService;
91      }
92  
93      public void setSCFrameworkVersionLocalService(
94          SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
95          this.scFrameworkVersionLocalService = scFrameworkVersionLocalService;
96      }
97  
98      public SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
99          return scFrameworkVersionPersistence;
100     }
101 
102     public void setSCFrameworkVersionPersistence(
103         SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
104         this.scFrameworkVersionPersistence = scFrameworkVersionPersistence;
105     }
106 
107     public SCProductEntryLocalService getSCProductEntryLocalService() {
108         return scProductEntryLocalService;
109     }
110 
111     public void setSCProductEntryLocalService(
112         SCProductEntryLocalService scProductEntryLocalService) {
113         this.scProductEntryLocalService = scProductEntryLocalService;
114     }
115 
116     public SCProductEntryService getSCProductEntryService() {
117         return scProductEntryService;
118     }
119 
120     public void setSCProductEntryService(
121         SCProductEntryService scProductEntryService) {
122         this.scProductEntryService = scProductEntryService;
123     }
124 
125     public SCProductEntryPersistence getSCProductEntryPersistence() {
126         return scProductEntryPersistence;
127     }
128 
129     public void setSCProductEntryPersistence(
130         SCProductEntryPersistence scProductEntryPersistence) {
131         this.scProductEntryPersistence = scProductEntryPersistence;
132     }
133 
134     public SCProductScreenshotLocalService getSCProductScreenshotLocalService() {
135         return scProductScreenshotLocalService;
136     }
137 
138     public void setSCProductScreenshotLocalService(
139         SCProductScreenshotLocalService scProductScreenshotLocalService) {
140         this.scProductScreenshotLocalService = scProductScreenshotLocalService;
141     }
142 
143     public SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
144         return scProductScreenshotPersistence;
145     }
146 
147     public void setSCProductScreenshotPersistence(
148         SCProductScreenshotPersistence scProductScreenshotPersistence) {
149         this.scProductScreenshotPersistence = scProductScreenshotPersistence;
150     }
151 
152     public SCProductVersionLocalService getSCProductVersionLocalService() {
153         return scProductVersionLocalService;
154     }
155 
156     public void setSCProductVersionLocalService(
157         SCProductVersionLocalService scProductVersionLocalService) {
158         this.scProductVersionLocalService = scProductVersionLocalService;
159     }
160 
161     public SCProductVersionService getSCProductVersionService() {
162         return scProductVersionService;
163     }
164 
165     public void setSCProductVersionService(
166         SCProductVersionService scProductVersionService) {
167         this.scProductVersionService = scProductVersionService;
168     }
169 
170     public SCProductVersionPersistence getSCProductVersionPersistence() {
171         return scProductVersionPersistence;
172     }
173 
174     public void setSCProductVersionPersistence(
175         SCProductVersionPersistence scProductVersionPersistence) {
176         this.scProductVersionPersistence = scProductVersionPersistence;
177     }
178 
179     public CounterLocalService getCounterLocalService() {
180         return counterLocalService;
181     }
182 
183     public void setCounterLocalService(CounterLocalService counterLocalService) {
184         this.counterLocalService = counterLocalService;
185     }
186 
187     public CounterService getCounterService() {
188         return counterService;
189     }
190 
191     public void setCounterService(CounterService counterService) {
192         this.counterService = counterService;
193     }
194 
195     public ResourceLocalService getResourceLocalService() {
196         return resourceLocalService;
197     }
198 
199     public void setResourceLocalService(
200         ResourceLocalService resourceLocalService) {
201         this.resourceLocalService = resourceLocalService;
202     }
203 
204     public ResourceService getResourceService() {
205         return resourceService;
206     }
207 
208     public void setResourceService(ResourceService resourceService) {
209         this.resourceService = resourceService;
210     }
211 
212     public ResourcePersistence getResourcePersistence() {
213         return resourcePersistence;
214     }
215 
216     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
217         this.resourcePersistence = resourcePersistence;
218     }
219 
220     public ResourceFinder getResourceFinder() {
221         return resourceFinder;
222     }
223 
224     public void setResourceFinder(ResourceFinder resourceFinder) {
225         this.resourceFinder = resourceFinder;
226     }
227 
228     public UserLocalService getUserLocalService() {
229         return userLocalService;
230     }
231 
232     public void setUserLocalService(UserLocalService userLocalService) {
233         this.userLocalService = userLocalService;
234     }
235 
236     public UserService getUserService() {
237         return userService;
238     }
239 
240     public void setUserService(UserService userService) {
241         this.userService = userService;
242     }
243 
244     public UserPersistence getUserPersistence() {
245         return userPersistence;
246     }
247 
248     public void setUserPersistence(UserPersistence userPersistence) {
249         this.userPersistence = userPersistence;
250     }
251 
252     public UserFinder getUserFinder() {
253         return userFinder;
254     }
255 
256     public void setUserFinder(UserFinder userFinder) {
257         this.userFinder = userFinder;
258     }
259 
260     public void afterPropertiesSet() {
261         if (scLicenseLocalService == null) {
262             scLicenseLocalService = (SCLicenseLocalService)PortalBeanLocatorUtil.locate(SCLicenseLocalService.class.getName() +
263                     ".impl");
264         }
265 
266         if (scLicenseService == null) {
267             scLicenseService = (SCLicenseService)PortalBeanLocatorUtil.locate(SCLicenseService.class.getName() +
268                     ".impl");
269         }
270 
271         if (scLicensePersistence == null) {
272             scLicensePersistence = (SCLicensePersistence)PortalBeanLocatorUtil.locate(SCLicensePersistence.class.getName() +
273                     ".impl");
274         }
275 
276         if (scFrameworkVersionLocalService == null) {
277             scFrameworkVersionLocalService = (SCFrameworkVersionLocalService)PortalBeanLocatorUtil.locate(SCFrameworkVersionLocalService.class.getName() +
278                     ".impl");
279         }
280 
281         if (scFrameworkVersionPersistence == null) {
282             scFrameworkVersionPersistence = (SCFrameworkVersionPersistence)PortalBeanLocatorUtil.locate(SCFrameworkVersionPersistence.class.getName() +
283                     ".impl");
284         }
285 
286         if (scProductEntryLocalService == null) {
287             scProductEntryLocalService = (SCProductEntryLocalService)PortalBeanLocatorUtil.locate(SCProductEntryLocalService.class.getName() +
288                     ".impl");
289         }
290 
291         if (scProductEntryService == null) {
292             scProductEntryService = (SCProductEntryService)PortalBeanLocatorUtil.locate(SCProductEntryService.class.getName() +
293                     ".impl");
294         }
295 
296         if (scProductEntryPersistence == null) {
297             scProductEntryPersistence = (SCProductEntryPersistence)PortalBeanLocatorUtil.locate(SCProductEntryPersistence.class.getName() +
298                     ".impl");
299         }
300 
301         if (scProductScreenshotLocalService == null) {
302             scProductScreenshotLocalService = (SCProductScreenshotLocalService)PortalBeanLocatorUtil.locate(SCProductScreenshotLocalService.class.getName() +
303                     ".impl");
304         }
305 
306         if (scProductScreenshotPersistence == null) {
307             scProductScreenshotPersistence = (SCProductScreenshotPersistence)PortalBeanLocatorUtil.locate(SCProductScreenshotPersistence.class.getName() +
308                     ".impl");
309         }
310 
311         if (scProductVersionLocalService == null) {
312             scProductVersionLocalService = (SCProductVersionLocalService)PortalBeanLocatorUtil.locate(SCProductVersionLocalService.class.getName() +
313                     ".impl");
314         }
315 
316         if (scProductVersionService == null) {
317             scProductVersionService = (SCProductVersionService)PortalBeanLocatorUtil.locate(SCProductVersionService.class.getName() +
318                     ".impl");
319         }
320 
321         if (scProductVersionPersistence == null) {
322             scProductVersionPersistence = (SCProductVersionPersistence)PortalBeanLocatorUtil.locate(SCProductVersionPersistence.class.getName() +
323                     ".impl");
324         }
325 
326         if (counterLocalService == null) {
327             counterLocalService = (CounterLocalService)PortalBeanLocatorUtil.locate(CounterLocalService.class.getName() +
328                     ".impl");
329         }
330 
331         if (counterService == null) {
332             counterService = (CounterService)PortalBeanLocatorUtil.locate(CounterService.class.getName() +
333                     ".impl");
334         }
335 
336         if (resourceLocalService == null) {
337             resourceLocalService = (ResourceLocalService)PortalBeanLocatorUtil.locate(ResourceLocalService.class.getName() +
338                     ".impl");
339         }
340 
341         if (resourceService == null) {
342             resourceService = (ResourceService)PortalBeanLocatorUtil.locate(ResourceService.class.getName() +
343                     ".impl");
344         }
345 
346         if (resourcePersistence == null) {
347             resourcePersistence = (ResourcePersistence)PortalBeanLocatorUtil.locate(ResourcePersistence.class.getName() +
348                     ".impl");
349         }
350 
351         if (resourceFinder == null) {
352             resourceFinder = (ResourceFinder)PortalBeanLocatorUtil.locate(ResourceFinder.class.getName() +
353                     ".impl");
354         }
355 
356         if (userLocalService == null) {
357             userLocalService = (UserLocalService)PortalBeanLocatorUtil.locate(UserLocalService.class.getName() +
358                     ".impl");
359         }
360 
361         if (userService == null) {
362             userService = (UserService)PortalBeanLocatorUtil.locate(UserService.class.getName() +
363                     ".impl");
364         }
365 
366         if (userPersistence == null) {
367             userPersistence = (UserPersistence)PortalBeanLocatorUtil.locate(UserPersistence.class.getName() +
368                     ".impl");
369         }
370 
371         if (userFinder == null) {
372             userFinder = (UserFinder)PortalBeanLocatorUtil.locate(UserFinder.class.getName() +
373                     ".impl");
374         }
375     }
376 
377     protected SCLicenseLocalService scLicenseLocalService;
378     protected SCLicenseService scLicenseService;
379     protected SCLicensePersistence scLicensePersistence;
380     protected SCFrameworkVersionLocalService scFrameworkVersionLocalService;
381     protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
382     protected SCProductEntryLocalService scProductEntryLocalService;
383     protected SCProductEntryService scProductEntryService;
384     protected SCProductEntryPersistence scProductEntryPersistence;
385     protected SCProductScreenshotLocalService scProductScreenshotLocalService;
386     protected SCProductScreenshotPersistence scProductScreenshotPersistence;
387     protected SCProductVersionLocalService scProductVersionLocalService;
388     protected SCProductVersionService scProductVersionService;
389     protected SCProductVersionPersistence scProductVersionPersistence;
390     protected CounterLocalService counterLocalService;
391     protected CounterService counterService;
392     protected ResourceLocalService resourceLocalService;
393     protected ResourceService resourceService;
394     protected ResourcePersistence resourcePersistence;
395     protected ResourceFinder resourceFinder;
396     protected UserLocalService userLocalService;
397     protected UserService userService;
398     protected UserPersistence userPersistence;
399     protected UserFinder userFinder;
400 }