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