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.messageboards.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.messageboards.service.MBBanLocalService;
039: import com.liferay.portlet.messageboards.service.MBBanLocalServiceFactory;
040: import com.liferay.portlet.messageboards.service.MBBanService;
041: import com.liferay.portlet.messageboards.service.MBCategoryLocalService;
042: import com.liferay.portlet.messageboards.service.MBCategoryLocalServiceFactory;
043: import com.liferay.portlet.messageboards.service.MBCategoryService;
044: import com.liferay.portlet.messageboards.service.MBCategoryServiceFactory;
045: import com.liferay.portlet.messageboards.service.MBMessageFlagLocalService;
046: import com.liferay.portlet.messageboards.service.MBMessageFlagLocalServiceFactory;
047: import com.liferay.portlet.messageboards.service.MBMessageLocalService;
048: import com.liferay.portlet.messageboards.service.MBMessageLocalServiceFactory;
049: import com.liferay.portlet.messageboards.service.MBMessageService;
050: import com.liferay.portlet.messageboards.service.MBMessageServiceFactory;
051: import com.liferay.portlet.messageboards.service.MBStatsUserLocalService;
052: import com.liferay.portlet.messageboards.service.MBStatsUserLocalServiceFactory;
053: import com.liferay.portlet.messageboards.service.MBThreadLocalService;
054: import com.liferay.portlet.messageboards.service.MBThreadLocalServiceFactory;
055: import com.liferay.portlet.messageboards.service.MBThreadService;
056: import com.liferay.portlet.messageboards.service.MBThreadServiceFactory;
057: import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
058: import com.liferay.portlet.messageboards.service.persistence.MBBanUtil;
059: import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
060: import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinderUtil;
061: import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
062: import com.liferay.portlet.messageboards.service.persistence.MBCategoryUtil;
063: import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
064: import com.liferay.portlet.messageboards.service.persistence.MBDiscussionUtil;
065: import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
066: import com.liferay.portlet.messageboards.service.persistence.MBMessageFinderUtil;
067: import com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder;
068: import com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinderUtil;
069: import com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence;
070: import com.liferay.portlet.messageboards.service.persistence.MBMessageFlagUtil;
071: import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
072: import com.liferay.portlet.messageboards.service.persistence.MBMessageUtil;
073: import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
074: import com.liferay.portlet.messageboards.service.persistence.MBStatsUserUtil;
075: import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
076: import com.liferay.portlet.messageboards.service.persistence.MBThreadFinderUtil;
077: import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
078: import com.liferay.portlet.messageboards.service.persistence.MBThreadUtil;
079:
080: import org.springframework.beans.factory.InitializingBean;
081:
082: /**
083: * <a href="MBBanServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
084: *
085: * @author Brian Wing Shun Chan
086: *
087: */
088: public abstract class MBBanServiceBaseImpl extends PrincipalBean
089: implements MBBanService, InitializingBean {
090: public MBBanLocalService getMBBanLocalService() {
091: return mbBanLocalService;
092: }
093:
094: public void setMBBanLocalService(MBBanLocalService mbBanLocalService) {
095: this .mbBanLocalService = mbBanLocalService;
096: }
097:
098: public MBBanPersistence getMBBanPersistence() {
099: return mbBanPersistence;
100: }
101:
102: public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
103: this .mbBanPersistence = mbBanPersistence;
104: }
105:
106: public MBCategoryLocalService getMBCategoryLocalService() {
107: return mbCategoryLocalService;
108: }
109:
110: public void setMBCategoryLocalService(
111: MBCategoryLocalService mbCategoryLocalService) {
112: this .mbCategoryLocalService = mbCategoryLocalService;
113: }
114:
115: public MBCategoryService getMBCategoryService() {
116: return mbCategoryService;
117: }
118:
119: public void setMBCategoryService(MBCategoryService mbCategoryService) {
120: this .mbCategoryService = mbCategoryService;
121: }
122:
123: public MBCategoryPersistence getMBCategoryPersistence() {
124: return mbCategoryPersistence;
125: }
126:
127: public void setMBCategoryPersistence(
128: MBCategoryPersistence mbCategoryPersistence) {
129: this .mbCategoryPersistence = mbCategoryPersistence;
130: }
131:
132: public MBCategoryFinder getMBCategoryFinder() {
133: return mbCategoryFinder;
134: }
135:
136: public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
137: this .mbCategoryFinder = mbCategoryFinder;
138: }
139:
140: public MBDiscussionPersistence getMBDiscussionPersistence() {
141: return mbDiscussionPersistence;
142: }
143:
144: public void setMBDiscussionPersistence(
145: MBDiscussionPersistence mbDiscussionPersistence) {
146: this .mbDiscussionPersistence = mbDiscussionPersistence;
147: }
148:
149: public MBMessageLocalService getMBMessageLocalService() {
150: return mbMessageLocalService;
151: }
152:
153: public void setMBMessageLocalService(
154: MBMessageLocalService mbMessageLocalService) {
155: this .mbMessageLocalService = mbMessageLocalService;
156: }
157:
158: public MBMessageService getMBMessageService() {
159: return mbMessageService;
160: }
161:
162: public void setMBMessageService(MBMessageService mbMessageService) {
163: this .mbMessageService = mbMessageService;
164: }
165:
166: public MBMessagePersistence getMBMessagePersistence() {
167: return mbMessagePersistence;
168: }
169:
170: public void setMBMessagePersistence(
171: MBMessagePersistence mbMessagePersistence) {
172: this .mbMessagePersistence = mbMessagePersistence;
173: }
174:
175: public MBMessageFinder getMBMessageFinder() {
176: return mbMessageFinder;
177: }
178:
179: public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
180: this .mbMessageFinder = mbMessageFinder;
181: }
182:
183: public MBMessageFlagLocalService getMBMessageFlagLocalService() {
184: return mbMessageFlagLocalService;
185: }
186:
187: public void setMBMessageFlagLocalService(
188: MBMessageFlagLocalService mbMessageFlagLocalService) {
189: this .mbMessageFlagLocalService = mbMessageFlagLocalService;
190: }
191:
192: public MBMessageFlagPersistence getMBMessageFlagPersistence() {
193: return mbMessageFlagPersistence;
194: }
195:
196: public void setMBMessageFlagPersistence(
197: MBMessageFlagPersistence mbMessageFlagPersistence) {
198: this .mbMessageFlagPersistence = mbMessageFlagPersistence;
199: }
200:
201: public MBMessageFlagFinder getMBMessageFlagFinder() {
202: return mbMessageFlagFinder;
203: }
204:
205: public void setMBMessageFlagFinder(
206: MBMessageFlagFinder mbMessageFlagFinder) {
207: this .mbMessageFlagFinder = mbMessageFlagFinder;
208: }
209:
210: public MBStatsUserLocalService getMBStatsUserLocalService() {
211: return mbStatsUserLocalService;
212: }
213:
214: public void setMBStatsUserLocalService(
215: MBStatsUserLocalService mbStatsUserLocalService) {
216: this .mbStatsUserLocalService = mbStatsUserLocalService;
217: }
218:
219: public MBStatsUserPersistence getMBStatsUserPersistence() {
220: return mbStatsUserPersistence;
221: }
222:
223: public void setMBStatsUserPersistence(
224: MBStatsUserPersistence mbStatsUserPersistence) {
225: this .mbStatsUserPersistence = mbStatsUserPersistence;
226: }
227:
228: public MBThreadLocalService getMBThreadLocalService() {
229: return mbThreadLocalService;
230: }
231:
232: public void setMBThreadLocalService(
233: MBThreadLocalService mbThreadLocalService) {
234: this .mbThreadLocalService = mbThreadLocalService;
235: }
236:
237: public MBThreadService getMBThreadService() {
238: return mbThreadService;
239: }
240:
241: public void setMBThreadService(MBThreadService mbThreadService) {
242: this .mbThreadService = mbThreadService;
243: }
244:
245: public MBThreadPersistence getMBThreadPersistence() {
246: return mbThreadPersistence;
247: }
248:
249: public void setMBThreadPersistence(
250: MBThreadPersistence mbThreadPersistence) {
251: this .mbThreadPersistence = mbThreadPersistence;
252: }
253:
254: public MBThreadFinder getMBThreadFinder() {
255: return mbThreadFinder;
256: }
257:
258: public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
259: this .mbThreadFinder = mbThreadFinder;
260: }
261:
262: public CounterLocalService getCounterLocalService() {
263: return counterLocalService;
264: }
265:
266: public void setCounterLocalService(
267: CounterLocalService counterLocalService) {
268: this .counterLocalService = counterLocalService;
269: }
270:
271: public CounterService getCounterService() {
272: return counterService;
273: }
274:
275: public void setCounterService(CounterService counterService) {
276: this .counterService = counterService;
277: }
278:
279: public UserLocalService getUserLocalService() {
280: return userLocalService;
281: }
282:
283: public void setUserLocalService(UserLocalService userLocalService) {
284: this .userLocalService = userLocalService;
285: }
286:
287: public UserService getUserService() {
288: return userService;
289: }
290:
291: public void setUserService(UserService userService) {
292: this .userService = userService;
293: }
294:
295: public UserPersistence getUserPersistence() {
296: return userPersistence;
297: }
298:
299: public void setUserPersistence(UserPersistence userPersistence) {
300: this .userPersistence = userPersistence;
301: }
302:
303: public UserFinder getUserFinder() {
304: return userFinder;
305: }
306:
307: public void setUserFinder(UserFinder userFinder) {
308: this .userFinder = userFinder;
309: }
310:
311: public void afterPropertiesSet() {
312: if (mbBanLocalService == null) {
313: mbBanLocalService = MBBanLocalServiceFactory.getImpl();
314: }
315:
316: if (mbBanPersistence == null) {
317: mbBanPersistence = MBBanUtil.getPersistence();
318: }
319:
320: if (mbCategoryLocalService == null) {
321: mbCategoryLocalService = MBCategoryLocalServiceFactory
322: .getImpl();
323: }
324:
325: if (mbCategoryService == null) {
326: mbCategoryService = MBCategoryServiceFactory.getImpl();
327: }
328:
329: if (mbCategoryPersistence == null) {
330: mbCategoryPersistence = MBCategoryUtil.getPersistence();
331: }
332:
333: if (mbCategoryFinder == null) {
334: mbCategoryFinder = MBCategoryFinderUtil.getFinder();
335: }
336:
337: if (mbDiscussionPersistence == null) {
338: mbDiscussionPersistence = MBDiscussionUtil.getPersistence();
339: }
340:
341: if (mbMessageLocalService == null) {
342: mbMessageLocalService = MBMessageLocalServiceFactory
343: .getImpl();
344: }
345:
346: if (mbMessageService == null) {
347: mbMessageService = MBMessageServiceFactory.getImpl();
348: }
349:
350: if (mbMessagePersistence == null) {
351: mbMessagePersistence = MBMessageUtil.getPersistence();
352: }
353:
354: if (mbMessageFinder == null) {
355: mbMessageFinder = MBMessageFinderUtil.getFinder();
356: }
357:
358: if (mbMessageFlagLocalService == null) {
359: mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
360: .getImpl();
361: }
362:
363: if (mbMessageFlagPersistence == null) {
364: mbMessageFlagPersistence = MBMessageFlagUtil
365: .getPersistence();
366: }
367:
368: if (mbMessageFlagFinder == null) {
369: mbMessageFlagFinder = MBMessageFlagFinderUtil.getFinder();
370: }
371:
372: if (mbStatsUserLocalService == null) {
373: mbStatsUserLocalService = MBStatsUserLocalServiceFactory
374: .getImpl();
375: }
376:
377: if (mbStatsUserPersistence == null) {
378: mbStatsUserPersistence = MBStatsUserUtil.getPersistence();
379: }
380:
381: if (mbThreadLocalService == null) {
382: mbThreadLocalService = MBThreadLocalServiceFactory
383: .getImpl();
384: }
385:
386: if (mbThreadService == null) {
387: mbThreadService = MBThreadServiceFactory.getImpl();
388: }
389:
390: if (mbThreadPersistence == null) {
391: mbThreadPersistence = MBThreadUtil.getPersistence();
392: }
393:
394: if (mbThreadFinder == null) {
395: mbThreadFinder = MBThreadFinderUtil.getFinder();
396: }
397:
398: if (counterLocalService == null) {
399: counterLocalService = CounterLocalServiceFactory.getImpl();
400: }
401:
402: if (counterService == null) {
403: counterService = CounterServiceFactory.getImpl();
404: }
405:
406: if (userLocalService == null) {
407: userLocalService = UserLocalServiceFactory.getImpl();
408: }
409:
410: if (userService == null) {
411: userService = UserServiceFactory.getImpl();
412: }
413:
414: if (userPersistence == null) {
415: userPersistence = UserUtil.getPersistence();
416: }
417:
418: if (userFinder == null) {
419: userFinder = UserFinderUtil.getFinder();
420: }
421: }
422:
423: protected MBBanLocalService mbBanLocalService;
424: protected MBBanPersistence mbBanPersistence;
425: protected MBCategoryLocalService mbCategoryLocalService;
426: protected MBCategoryService mbCategoryService;
427: protected MBCategoryPersistence mbCategoryPersistence;
428: protected MBCategoryFinder mbCategoryFinder;
429: protected MBDiscussionPersistence mbDiscussionPersistence;
430: protected MBMessageLocalService mbMessageLocalService;
431: protected MBMessageService mbMessageService;
432: protected MBMessagePersistence mbMessagePersistence;
433: protected MBMessageFinder mbMessageFinder;
434: protected MBMessageFlagLocalService mbMessageFlagLocalService;
435: protected MBMessageFlagPersistence mbMessageFlagPersistence;
436: protected MBMessageFlagFinder mbMessageFlagFinder;
437: protected MBStatsUserLocalService mbStatsUserLocalService;
438: protected MBStatsUserPersistence mbStatsUserPersistence;
439: protected MBThreadLocalService mbThreadLocalService;
440: protected MBThreadService mbThreadService;
441: protected MBThreadPersistence mbThreadPersistence;
442: protected MBThreadFinder mbThreadFinder;
443: protected CounterLocalService counterLocalService;
444: protected CounterService counterService;
445: protected UserLocalService userLocalService;
446: protected UserService userService;
447: protected UserPersistence userPersistence;
448: protected UserFinder userFinder;
449: }
|