001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.softwarecatalog.service.base;
022:
023: import com.liferay.counter.service.CounterLocalService;
024: import com.liferay.counter.service.CounterLocalServiceFactory;
025: import com.liferay.counter.service.CounterService;
026: import com.liferay.counter.service.CounterServiceFactory;
027:
028: import com.liferay.portal.service.UserLocalService;
029: import com.liferay.portal.service.UserLocalServiceFactory;
030: import com.liferay.portal.service.UserService;
031: import com.liferay.portal.service.UserServiceFactory;
032: import com.liferay.portal.service.impl.PrincipalBean;
033: import com.liferay.portal.service.persistence.UserFinder;
034: import com.liferay.portal.service.persistence.UserFinderUtil;
035: import com.liferay.portal.service.persistence.UserPersistence;
036: import com.liferay.portal.service.persistence.UserUtil;
037:
038: import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService;
039: import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalServiceFactory;
040: import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService;
041: import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionServiceFactory;
042: import com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService;
043: import com.liferay.portlet.softwarecatalog.service.SCLicenseLocalServiceFactory;
044: import com.liferay.portlet.softwarecatalog.service.SCLicenseService;
045: import com.liferay.portlet.softwarecatalog.service.SCLicenseServiceFactory;
046: import com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService;
047: import com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalServiceFactory;
048: import com.liferay.portlet.softwarecatalog.service.SCProductEntryService;
049: import com.liferay.portlet.softwarecatalog.service.SCProductEntryServiceFactory;
050: import com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService;
051: import com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalServiceFactory;
052: import com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService;
053: import com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalServiceFactory;
054: import com.liferay.portlet.softwarecatalog.service.SCProductVersionService;
055: import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence;
056: import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionUtil;
057: import com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence;
058: import com.liferay.portlet.softwarecatalog.service.persistence.SCLicenseUtil;
059: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence;
060: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryUtil;
061: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence;
062: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotUtil;
063: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence;
064: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionUtil;
065:
066: import org.springframework.beans.factory.InitializingBean;
067:
068: /**
069: * <a href="SCProductVersionServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
070: *
071: * @author Brian Wing Shun Chan
072: *
073: */
074: public abstract class SCProductVersionServiceBaseImpl extends
075: PrincipalBean implements SCProductVersionService,
076: InitializingBean {
077: public SCLicenseLocalService getSCLicenseLocalService() {
078: return scLicenseLocalService;
079: }
080:
081: public void setSCLicenseLocalService(
082: SCLicenseLocalService scLicenseLocalService) {
083: this .scLicenseLocalService = scLicenseLocalService;
084: }
085:
086: public SCLicenseService getSCLicenseService() {
087: return scLicenseService;
088: }
089:
090: public void setSCLicenseService(SCLicenseService scLicenseService) {
091: this .scLicenseService = scLicenseService;
092: }
093:
094: public SCLicensePersistence getSCLicensePersistence() {
095: return scLicensePersistence;
096: }
097:
098: public void setSCLicensePersistence(
099: 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(
198: 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
245: .getImpl();
246: }
247:
248: if (scLicenseService == null) {
249: scLicenseService = SCLicenseServiceFactory.getImpl();
250: }
251:
252: if (scLicensePersistence == null) {
253: scLicensePersistence = SCLicenseUtil.getPersistence();
254: }
255:
256: if (scFrameworkVersionLocalService == null) {
257: scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory
258: .getImpl();
259: }
260:
261: if (scFrameworkVersionService == null) {
262: scFrameworkVersionService = SCFrameworkVersionServiceFactory
263: .getImpl();
264: }
265:
266: if (scFrameworkVersionPersistence == null) {
267: scFrameworkVersionPersistence = SCFrameworkVersionUtil
268: .getPersistence();
269: }
270:
271: if (scProductEntryLocalService == null) {
272: scProductEntryLocalService = SCProductEntryLocalServiceFactory
273: .getImpl();
274: }
275:
276: if (scProductEntryService == null) {
277: scProductEntryService = SCProductEntryServiceFactory
278: .getImpl();
279: }
280:
281: if (scProductEntryPersistence == null) {
282: scProductEntryPersistence = SCProductEntryUtil
283: .getPersistence();
284: }
285:
286: if (scProductScreenshotLocalService == null) {
287: scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
288: .getImpl();
289: }
290:
291: if (scProductScreenshotPersistence == null) {
292: scProductScreenshotPersistence = SCProductScreenshotUtil
293: .getPersistence();
294: }
295:
296: if (scProductVersionLocalService == null) {
297: scProductVersionLocalService = SCProductVersionLocalServiceFactory
298: .getImpl();
299: }
300:
301: if (scProductVersionPersistence == null) {
302: scProductVersionPersistence = SCProductVersionUtil
303: .getPersistence();
304: }
305:
306: if (counterLocalService == null) {
307: counterLocalService = CounterLocalServiceFactory.getImpl();
308: }
309:
310: if (counterService == null) {
311: counterService = CounterServiceFactory.getImpl();
312: }
313:
314: if (userLocalService == null) {
315: userLocalService = UserLocalServiceFactory.getImpl();
316: }
317:
318: if (userService == null) {
319: userService = UserServiceFactory.getImpl();
320: }
321:
322: if (userPersistence == null) {
323: userPersistence = UserUtil.getPersistence();
324: }
325:
326: if (userFinder == null) {
327: userFinder = UserFinderUtil.getFinder();
328: }
329: }
330:
331: protected SCLicenseLocalService scLicenseLocalService;
332: protected SCLicenseService scLicenseService;
333: protected SCLicensePersistence scLicensePersistence;
334: protected SCFrameworkVersionLocalService scFrameworkVersionLocalService;
335: protected SCFrameworkVersionService scFrameworkVersionService;
336: protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
337: protected SCProductEntryLocalService scProductEntryLocalService;
338: protected SCProductEntryService scProductEntryService;
339: protected SCProductEntryPersistence scProductEntryPersistence;
340: protected SCProductScreenshotLocalService scProductScreenshotLocalService;
341: protected SCProductScreenshotPersistence scProductScreenshotPersistence;
342: protected SCProductVersionLocalService scProductVersionLocalService;
343: protected SCProductVersionPersistence scProductVersionPersistence;
344: protected CounterLocalService counterLocalService;
345: protected CounterService counterService;
346: protected UserLocalService userLocalService;
347: protected UserService userService;
348: protected UserPersistence userPersistence;
349: protected UserFinder userFinder;
350: }
|