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