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