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