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.impl.PrincipalBean;
029:
030: import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService;
031: import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalServiceFactory;
032: import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService;
033: import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionServiceFactory;
034: import com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService;
035: import com.liferay.portlet.softwarecatalog.service.SCLicenseLocalServiceFactory;
036: import com.liferay.portlet.softwarecatalog.service.SCLicenseService;
037: import com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService;
038: import com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalServiceFactory;
039: import com.liferay.portlet.softwarecatalog.service.SCProductEntryService;
040: import com.liferay.portlet.softwarecatalog.service.SCProductEntryServiceFactory;
041: import com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService;
042: import com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalServiceFactory;
043: import com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService;
044: import com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalServiceFactory;
045: import com.liferay.portlet.softwarecatalog.service.SCProductVersionService;
046: import com.liferay.portlet.softwarecatalog.service.SCProductVersionServiceFactory;
047: import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence;
048: import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionUtil;
049: import com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence;
050: import com.liferay.portlet.softwarecatalog.service.persistence.SCLicenseUtil;
051: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence;
052: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryUtil;
053: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence;
054: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotUtil;
055: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence;
056: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionUtil;
057:
058: import org.springframework.beans.factory.InitializingBean;
059:
060: /**
061: * <a href="SCLicenseServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
062: *
063: * @author Brian Wing Shun Chan
064: *
065: */
066: public abstract class SCLicenseServiceBaseImpl extends PrincipalBean
067: implements SCLicenseService, InitializingBean {
068: public SCLicenseLocalService getSCLicenseLocalService() {
069: return scLicenseLocalService;
070: }
071:
072: public void setSCLicenseLocalService(
073: SCLicenseLocalService scLicenseLocalService) {
074: this .scLicenseLocalService = scLicenseLocalService;
075: }
076:
077: public SCLicensePersistence getSCLicensePersistence() {
078: return scLicensePersistence;
079: }
080:
081: public void setSCLicensePersistence(
082: SCLicensePersistence scLicensePersistence) {
083: this .scLicensePersistence = scLicensePersistence;
084: }
085:
086: public SCFrameworkVersionLocalService getSCFrameworkVersionLocalService() {
087: return scFrameworkVersionLocalService;
088: }
089:
090: public void setSCFrameworkVersionLocalService(
091: SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
092: this .scFrameworkVersionLocalService = scFrameworkVersionLocalService;
093: }
094:
095: public SCFrameworkVersionService getSCFrameworkVersionService() {
096: return scFrameworkVersionService;
097: }
098:
099: public void setSCFrameworkVersionService(
100: SCFrameworkVersionService scFrameworkVersionService) {
101: this .scFrameworkVersionService = scFrameworkVersionService;
102: }
103:
104: public SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
105: return scFrameworkVersionPersistence;
106: }
107:
108: public void setSCFrameworkVersionPersistence(
109: SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
110: this .scFrameworkVersionPersistence = scFrameworkVersionPersistence;
111: }
112:
113: public SCProductEntryLocalService getSCProductEntryLocalService() {
114: return scProductEntryLocalService;
115: }
116:
117: public void setSCProductEntryLocalService(
118: SCProductEntryLocalService scProductEntryLocalService) {
119: this .scProductEntryLocalService = scProductEntryLocalService;
120: }
121:
122: public SCProductEntryService getSCProductEntryService() {
123: return scProductEntryService;
124: }
125:
126: public void setSCProductEntryService(
127: SCProductEntryService scProductEntryService) {
128: this .scProductEntryService = scProductEntryService;
129: }
130:
131: public SCProductEntryPersistence getSCProductEntryPersistence() {
132: return scProductEntryPersistence;
133: }
134:
135: public void setSCProductEntryPersistence(
136: SCProductEntryPersistence scProductEntryPersistence) {
137: this .scProductEntryPersistence = scProductEntryPersistence;
138: }
139:
140: public SCProductScreenshotLocalService getSCProductScreenshotLocalService() {
141: return scProductScreenshotLocalService;
142: }
143:
144: public void setSCProductScreenshotLocalService(
145: SCProductScreenshotLocalService scProductScreenshotLocalService) {
146: this .scProductScreenshotLocalService = scProductScreenshotLocalService;
147: }
148:
149: public SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
150: return scProductScreenshotPersistence;
151: }
152:
153: public void setSCProductScreenshotPersistence(
154: SCProductScreenshotPersistence scProductScreenshotPersistence) {
155: this .scProductScreenshotPersistence = scProductScreenshotPersistence;
156: }
157:
158: public SCProductVersionLocalService getSCProductVersionLocalService() {
159: return scProductVersionLocalService;
160: }
161:
162: public void setSCProductVersionLocalService(
163: SCProductVersionLocalService scProductVersionLocalService) {
164: this .scProductVersionLocalService = scProductVersionLocalService;
165: }
166:
167: public SCProductVersionService getSCProductVersionService() {
168: return scProductVersionService;
169: }
170:
171: public void setSCProductVersionService(
172: SCProductVersionService scProductVersionService) {
173: this .scProductVersionService = scProductVersionService;
174: }
175:
176: public SCProductVersionPersistence getSCProductVersionPersistence() {
177: return scProductVersionPersistence;
178: }
179:
180: public void setSCProductVersionPersistence(
181: SCProductVersionPersistence scProductVersionPersistence) {
182: this .scProductVersionPersistence = scProductVersionPersistence;
183: }
184:
185: public CounterLocalService getCounterLocalService() {
186: return counterLocalService;
187: }
188:
189: public void setCounterLocalService(
190: 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
205: .getImpl();
206: }
207:
208: if (scLicensePersistence == null) {
209: scLicensePersistence = SCLicenseUtil.getPersistence();
210: }
211:
212: if (scFrameworkVersionLocalService == null) {
213: scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory
214: .getImpl();
215: }
216:
217: if (scFrameworkVersionService == null) {
218: scFrameworkVersionService = SCFrameworkVersionServiceFactory
219: .getImpl();
220: }
221:
222: if (scFrameworkVersionPersistence == null) {
223: scFrameworkVersionPersistence = SCFrameworkVersionUtil
224: .getPersistence();
225: }
226:
227: if (scProductEntryLocalService == null) {
228: scProductEntryLocalService = SCProductEntryLocalServiceFactory
229: .getImpl();
230: }
231:
232: if (scProductEntryService == null) {
233: scProductEntryService = SCProductEntryServiceFactory
234: .getImpl();
235: }
236:
237: if (scProductEntryPersistence == null) {
238: scProductEntryPersistence = SCProductEntryUtil
239: .getPersistence();
240: }
241:
242: if (scProductScreenshotLocalService == null) {
243: scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
244: .getImpl();
245: }
246:
247: if (scProductScreenshotPersistence == null) {
248: scProductScreenshotPersistence = SCProductScreenshotUtil
249: .getPersistence();
250: }
251:
252: if (scProductVersionLocalService == null) {
253: scProductVersionLocalService = SCProductVersionLocalServiceFactory
254: .getImpl();
255: }
256:
257: if (scProductVersionService == null) {
258: scProductVersionService = SCProductVersionServiceFactory
259: .getImpl();
260: }
261:
262: if (scProductVersionPersistence == null) {
263: scProductVersionPersistence = SCProductVersionUtil
264: .getPersistence();
265: }
266:
267: if (counterLocalService == null) {
268: counterLocalService = CounterLocalServiceFactory.getImpl();
269: }
270:
271: if (counterService == null) {
272: counterService = CounterServiceFactory.getImpl();
273: }
274: }
275:
276: protected SCLicenseLocalService scLicenseLocalService;
277: protected SCLicensePersistence scLicensePersistence;
278: protected SCFrameworkVersionLocalService scFrameworkVersionLocalService;
279: protected SCFrameworkVersionService scFrameworkVersionService;
280: protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
281: protected SCProductEntryLocalService scProductEntryLocalService;
282: protected SCProductEntryService scProductEntryService;
283: protected SCProductEntryPersistence scProductEntryPersistence;
284: protected SCProductScreenshotLocalService scProductScreenshotLocalService;
285: protected SCProductScreenshotPersistence scProductScreenshotPersistence;
286: protected SCProductVersionLocalService scProductVersionLocalService;
287: protected SCProductVersionService scProductVersionService;
288: protected SCProductVersionPersistence scProductVersionPersistence;
289: protected CounterLocalService counterLocalService;
290: protected CounterService counterService;
291: }
|