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