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