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