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