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