001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023    import com.liferay.portal.kernel.exception.SystemException;
024    import com.liferay.portal.service.BaseServiceImpl;
025    import com.liferay.portal.service.ResourceLocalService;
026    import com.liferay.portal.service.UserLocalService;
027    import com.liferay.portal.service.UserService;
028    import com.liferay.portal.service.persistence.UserFinder;
029    import com.liferay.portal.service.persistence.UserPersistence;
030    
031    import com.liferay.portlet.messageboards.model.MBBan;
032    import com.liferay.portlet.messageboards.service.MBBanLocalService;
033    import com.liferay.portlet.messageboards.service.MBBanService;
034    import com.liferay.portlet.messageboards.service.MBCategoryLocalService;
035    import com.liferay.portlet.messageboards.service.MBCategoryService;
036    import com.liferay.portlet.messageboards.service.MBDiscussionLocalService;
037    import com.liferay.portlet.messageboards.service.MBMailingListLocalService;
038    import com.liferay.portlet.messageboards.service.MBMessageLocalService;
039    import com.liferay.portlet.messageboards.service.MBMessageService;
040    import com.liferay.portlet.messageboards.service.MBStatsUserLocalService;
041    import com.liferay.portlet.messageboards.service.MBThreadFlagLocalService;
042    import com.liferay.portlet.messageboards.service.MBThreadLocalService;
043    import com.liferay.portlet.messageboards.service.MBThreadService;
044    import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
045    import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
046    import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
047    import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
048    import com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence;
049    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
050    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
051    import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
052    import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
053    import com.liferay.portlet.messageboards.service.persistence.MBThreadFlagPersistence;
054    import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
055    
056    import javax.sql.DataSource;
057    
058    /**
059     * The base implementation of the message boards ban remote service.
060     *
061     * <p>
062     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.messageboards.service.impl.MBBanServiceImpl}.
063     * </p>
064     *
065     * @author Brian Wing Shun Chan
066     * @see com.liferay.portlet.messageboards.service.impl.MBBanServiceImpl
067     * @see com.liferay.portlet.messageboards.service.MBBanServiceUtil
068     * @generated
069     */
070    public abstract class MBBanServiceBaseImpl extends BaseServiceImpl
071            implements MBBanService, IdentifiableBean {
072            /*
073             * NOTE FOR DEVELOPERS:
074             *
075             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.messageboards.service.MBBanServiceUtil} to access the message boards ban remote service.
076             */
077    
078            /**
079             * Returns the message boards ban local service.
080             *
081             * @return the message boards ban local service
082             */
083            public MBBanLocalService getMBBanLocalService() {
084                    return mbBanLocalService;
085            }
086    
087            /**
088             * Sets the message boards ban local service.
089             *
090             * @param mbBanLocalService the message boards ban local service
091             */
092            public void setMBBanLocalService(MBBanLocalService mbBanLocalService) {
093                    this.mbBanLocalService = mbBanLocalService;
094            }
095    
096            /**
097             * Returns the message boards ban remote service.
098             *
099             * @return the message boards ban remote service
100             */
101            public MBBanService getMBBanService() {
102                    return mbBanService;
103            }
104    
105            /**
106             * Sets the message boards ban remote service.
107             *
108             * @param mbBanService the message boards ban remote service
109             */
110            public void setMBBanService(MBBanService mbBanService) {
111                    this.mbBanService = mbBanService;
112            }
113    
114            /**
115             * Returns the message boards ban persistence.
116             *
117             * @return the message boards ban persistence
118             */
119            public MBBanPersistence getMBBanPersistence() {
120                    return mbBanPersistence;
121            }
122    
123            /**
124             * Sets the message boards ban persistence.
125             *
126             * @param mbBanPersistence the message boards ban persistence
127             */
128            public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
129                    this.mbBanPersistence = mbBanPersistence;
130            }
131    
132            /**
133             * Returns the message boards category local service.
134             *
135             * @return the message boards category local service
136             */
137            public MBCategoryLocalService getMBCategoryLocalService() {
138                    return mbCategoryLocalService;
139            }
140    
141            /**
142             * Sets the message boards category local service.
143             *
144             * @param mbCategoryLocalService the message boards category local service
145             */
146            public void setMBCategoryLocalService(
147                    MBCategoryLocalService mbCategoryLocalService) {
148                    this.mbCategoryLocalService = mbCategoryLocalService;
149            }
150    
151            /**
152             * Returns the message boards category remote service.
153             *
154             * @return the message boards category remote service
155             */
156            public MBCategoryService getMBCategoryService() {
157                    return mbCategoryService;
158            }
159    
160            /**
161             * Sets the message boards category remote service.
162             *
163             * @param mbCategoryService the message boards category remote service
164             */
165            public void setMBCategoryService(MBCategoryService mbCategoryService) {
166                    this.mbCategoryService = mbCategoryService;
167            }
168    
169            /**
170             * Returns the message boards category persistence.
171             *
172             * @return the message boards category persistence
173             */
174            public MBCategoryPersistence getMBCategoryPersistence() {
175                    return mbCategoryPersistence;
176            }
177    
178            /**
179             * Sets the message boards category persistence.
180             *
181             * @param mbCategoryPersistence the message boards category persistence
182             */
183            public void setMBCategoryPersistence(
184                    MBCategoryPersistence mbCategoryPersistence) {
185                    this.mbCategoryPersistence = mbCategoryPersistence;
186            }
187    
188            /**
189             * Returns the message boards category finder.
190             *
191             * @return the message boards category finder
192             */
193            public MBCategoryFinder getMBCategoryFinder() {
194                    return mbCategoryFinder;
195            }
196    
197            /**
198             * Sets the message boards category finder.
199             *
200             * @param mbCategoryFinder the message boards category finder
201             */
202            public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
203                    this.mbCategoryFinder = mbCategoryFinder;
204            }
205    
206            /**
207             * Returns the message boards discussion local service.
208             *
209             * @return the message boards discussion local service
210             */
211            public MBDiscussionLocalService getMBDiscussionLocalService() {
212                    return mbDiscussionLocalService;
213            }
214    
215            /**
216             * Sets the message boards discussion local service.
217             *
218             * @param mbDiscussionLocalService the message boards discussion local service
219             */
220            public void setMBDiscussionLocalService(
221                    MBDiscussionLocalService mbDiscussionLocalService) {
222                    this.mbDiscussionLocalService = mbDiscussionLocalService;
223            }
224    
225            /**
226             * Returns the message boards discussion persistence.
227             *
228             * @return the message boards discussion persistence
229             */
230            public MBDiscussionPersistence getMBDiscussionPersistence() {
231                    return mbDiscussionPersistence;
232            }
233    
234            /**
235             * Sets the message boards discussion persistence.
236             *
237             * @param mbDiscussionPersistence the message boards discussion persistence
238             */
239            public void setMBDiscussionPersistence(
240                    MBDiscussionPersistence mbDiscussionPersistence) {
241                    this.mbDiscussionPersistence = mbDiscussionPersistence;
242            }
243    
244            /**
245             * Returns the message boards mailing list local service.
246             *
247             * @return the message boards mailing list local service
248             */
249            public MBMailingListLocalService getMBMailingListLocalService() {
250                    return mbMailingListLocalService;
251            }
252    
253            /**
254             * Sets the message boards mailing list local service.
255             *
256             * @param mbMailingListLocalService the message boards mailing list local service
257             */
258            public void setMBMailingListLocalService(
259                    MBMailingListLocalService mbMailingListLocalService) {
260                    this.mbMailingListLocalService = mbMailingListLocalService;
261            }
262    
263            /**
264             * Returns the message boards mailing list persistence.
265             *
266             * @return the message boards mailing list persistence
267             */
268            public MBMailingListPersistence getMBMailingListPersistence() {
269                    return mbMailingListPersistence;
270            }
271    
272            /**
273             * Sets the message boards mailing list persistence.
274             *
275             * @param mbMailingListPersistence the message boards mailing list persistence
276             */
277            public void setMBMailingListPersistence(
278                    MBMailingListPersistence mbMailingListPersistence) {
279                    this.mbMailingListPersistence = mbMailingListPersistence;
280            }
281    
282            /**
283             * Returns the message-boards message local service.
284             *
285             * @return the message-boards message local service
286             */
287            public MBMessageLocalService getMBMessageLocalService() {
288                    return mbMessageLocalService;
289            }
290    
291            /**
292             * Sets the message-boards message local service.
293             *
294             * @param mbMessageLocalService the message-boards message local service
295             */
296            public void setMBMessageLocalService(
297                    MBMessageLocalService mbMessageLocalService) {
298                    this.mbMessageLocalService = mbMessageLocalService;
299            }
300    
301            /**
302             * Returns the message-boards message remote service.
303             *
304             * @return the message-boards message remote service
305             */
306            public MBMessageService getMBMessageService() {
307                    return mbMessageService;
308            }
309    
310            /**
311             * Sets the message-boards message remote service.
312             *
313             * @param mbMessageService the message-boards message remote service
314             */
315            public void setMBMessageService(MBMessageService mbMessageService) {
316                    this.mbMessageService = mbMessageService;
317            }
318    
319            /**
320             * Returns the message-boards message persistence.
321             *
322             * @return the message-boards message persistence
323             */
324            public MBMessagePersistence getMBMessagePersistence() {
325                    return mbMessagePersistence;
326            }
327    
328            /**
329             * Sets the message-boards message persistence.
330             *
331             * @param mbMessagePersistence the message-boards message persistence
332             */
333            public void setMBMessagePersistence(
334                    MBMessagePersistence mbMessagePersistence) {
335                    this.mbMessagePersistence = mbMessagePersistence;
336            }
337    
338            /**
339             * Returns the message-boards message finder.
340             *
341             * @return the message-boards message finder
342             */
343            public MBMessageFinder getMBMessageFinder() {
344                    return mbMessageFinder;
345            }
346    
347            /**
348             * Sets the message-boards message finder.
349             *
350             * @param mbMessageFinder the message-boards message finder
351             */
352            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
353                    this.mbMessageFinder = mbMessageFinder;
354            }
355    
356            /**
357             * Returns the message boards stats user local service.
358             *
359             * @return the message boards stats user local service
360             */
361            public MBStatsUserLocalService getMBStatsUserLocalService() {
362                    return mbStatsUserLocalService;
363            }
364    
365            /**
366             * Sets the message boards stats user local service.
367             *
368             * @param mbStatsUserLocalService the message boards stats user local service
369             */
370            public void setMBStatsUserLocalService(
371                    MBStatsUserLocalService mbStatsUserLocalService) {
372                    this.mbStatsUserLocalService = mbStatsUserLocalService;
373            }
374    
375            /**
376             * Returns the message boards stats user persistence.
377             *
378             * @return the message boards stats user persistence
379             */
380            public MBStatsUserPersistence getMBStatsUserPersistence() {
381                    return mbStatsUserPersistence;
382            }
383    
384            /**
385             * Sets the message boards stats user persistence.
386             *
387             * @param mbStatsUserPersistence the message boards stats user persistence
388             */
389            public void setMBStatsUserPersistence(
390                    MBStatsUserPersistence mbStatsUserPersistence) {
391                    this.mbStatsUserPersistence = mbStatsUserPersistence;
392            }
393    
394            /**
395             * Returns the message boards thread local service.
396             *
397             * @return the message boards thread local service
398             */
399            public MBThreadLocalService getMBThreadLocalService() {
400                    return mbThreadLocalService;
401            }
402    
403            /**
404             * Sets the message boards thread local service.
405             *
406             * @param mbThreadLocalService the message boards thread local service
407             */
408            public void setMBThreadLocalService(
409                    MBThreadLocalService mbThreadLocalService) {
410                    this.mbThreadLocalService = mbThreadLocalService;
411            }
412    
413            /**
414             * Returns the message boards thread remote service.
415             *
416             * @return the message boards thread remote service
417             */
418            public MBThreadService getMBThreadService() {
419                    return mbThreadService;
420            }
421    
422            /**
423             * Sets the message boards thread remote service.
424             *
425             * @param mbThreadService the message boards thread remote service
426             */
427            public void setMBThreadService(MBThreadService mbThreadService) {
428                    this.mbThreadService = mbThreadService;
429            }
430    
431            /**
432             * Returns the message boards thread persistence.
433             *
434             * @return the message boards thread persistence
435             */
436            public MBThreadPersistence getMBThreadPersistence() {
437                    return mbThreadPersistence;
438            }
439    
440            /**
441             * Sets the message boards thread persistence.
442             *
443             * @param mbThreadPersistence the message boards thread persistence
444             */
445            public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
446                    this.mbThreadPersistence = mbThreadPersistence;
447            }
448    
449            /**
450             * Returns the message boards thread finder.
451             *
452             * @return the message boards thread finder
453             */
454            public MBThreadFinder getMBThreadFinder() {
455                    return mbThreadFinder;
456            }
457    
458            /**
459             * Sets the message boards thread finder.
460             *
461             * @param mbThreadFinder the message boards thread finder
462             */
463            public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
464                    this.mbThreadFinder = mbThreadFinder;
465            }
466    
467            /**
468             * Returns the message boards thread flag local service.
469             *
470             * @return the message boards thread flag local service
471             */
472            public MBThreadFlagLocalService getMBThreadFlagLocalService() {
473                    return mbThreadFlagLocalService;
474            }
475    
476            /**
477             * Sets the message boards thread flag local service.
478             *
479             * @param mbThreadFlagLocalService the message boards thread flag local service
480             */
481            public void setMBThreadFlagLocalService(
482                    MBThreadFlagLocalService mbThreadFlagLocalService) {
483                    this.mbThreadFlagLocalService = mbThreadFlagLocalService;
484            }
485    
486            /**
487             * Returns the message boards thread flag persistence.
488             *
489             * @return the message boards thread flag persistence
490             */
491            public MBThreadFlagPersistence getMBThreadFlagPersistence() {
492                    return mbThreadFlagPersistence;
493            }
494    
495            /**
496             * Sets the message boards thread flag persistence.
497             *
498             * @param mbThreadFlagPersistence the message boards thread flag persistence
499             */
500            public void setMBThreadFlagPersistence(
501                    MBThreadFlagPersistence mbThreadFlagPersistence) {
502                    this.mbThreadFlagPersistence = mbThreadFlagPersistence;
503            }
504    
505            /**
506             * Returns the counter local service.
507             *
508             * @return the counter local service
509             */
510            public CounterLocalService getCounterLocalService() {
511                    return counterLocalService;
512            }
513    
514            /**
515             * Sets the counter local service.
516             *
517             * @param counterLocalService the counter local service
518             */
519            public void setCounterLocalService(CounterLocalService counterLocalService) {
520                    this.counterLocalService = counterLocalService;
521            }
522    
523            /**
524             * Returns the resource local service.
525             *
526             * @return the resource local service
527             */
528            public ResourceLocalService getResourceLocalService() {
529                    return resourceLocalService;
530            }
531    
532            /**
533             * Sets the resource local service.
534             *
535             * @param resourceLocalService the resource local service
536             */
537            public void setResourceLocalService(
538                    ResourceLocalService resourceLocalService) {
539                    this.resourceLocalService = resourceLocalService;
540            }
541    
542            /**
543             * Returns the user local service.
544             *
545             * @return the user local service
546             */
547            public UserLocalService getUserLocalService() {
548                    return userLocalService;
549            }
550    
551            /**
552             * Sets the user local service.
553             *
554             * @param userLocalService the user local service
555             */
556            public void setUserLocalService(UserLocalService userLocalService) {
557                    this.userLocalService = userLocalService;
558            }
559    
560            /**
561             * Returns the user remote service.
562             *
563             * @return the user remote service
564             */
565            public UserService getUserService() {
566                    return userService;
567            }
568    
569            /**
570             * Sets the user remote service.
571             *
572             * @param userService the user remote service
573             */
574            public void setUserService(UserService userService) {
575                    this.userService = userService;
576            }
577    
578            /**
579             * Returns the user persistence.
580             *
581             * @return the user persistence
582             */
583            public UserPersistence getUserPersistence() {
584                    return userPersistence;
585            }
586    
587            /**
588             * Sets the user persistence.
589             *
590             * @param userPersistence the user persistence
591             */
592            public void setUserPersistence(UserPersistence userPersistence) {
593                    this.userPersistence = userPersistence;
594            }
595    
596            /**
597             * Returns the user finder.
598             *
599             * @return the user finder
600             */
601            public UserFinder getUserFinder() {
602                    return userFinder;
603            }
604    
605            /**
606             * Sets the user finder.
607             *
608             * @param userFinder the user finder
609             */
610            public void setUserFinder(UserFinder userFinder) {
611                    this.userFinder = userFinder;
612            }
613    
614            public void afterPropertiesSet() {
615            }
616    
617            public void destroy() {
618            }
619    
620            /**
621             * Returns the Spring bean ID for this bean.
622             *
623             * @return the Spring bean ID for this bean
624             */
625            public String getBeanIdentifier() {
626                    return _beanIdentifier;
627            }
628    
629            /**
630             * Sets the Spring bean ID for this bean.
631             *
632             * @param beanIdentifier the Spring bean ID for this bean
633             */
634            public void setBeanIdentifier(String beanIdentifier) {
635                    _beanIdentifier = beanIdentifier;
636            }
637    
638            protected Class<?> getModelClass() {
639                    return MBBan.class;
640            }
641    
642            protected String getModelClassName() {
643                    return MBBan.class.getName();
644            }
645    
646            /**
647             * Performs an SQL query.
648             *
649             * @param sql the sql query
650             */
651            protected void runSQL(String sql) throws SystemException {
652                    try {
653                            DataSource dataSource = mbBanPersistence.getDataSource();
654    
655                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
656                                            sql, new int[0]);
657    
658                            sqlUpdate.update();
659                    }
660                    catch (Exception e) {
661                            throw new SystemException(e);
662                    }
663            }
664    
665            @BeanReference(type = MBBanLocalService.class)
666            protected MBBanLocalService mbBanLocalService;
667            @BeanReference(type = MBBanService.class)
668            protected MBBanService mbBanService;
669            @BeanReference(type = MBBanPersistence.class)
670            protected MBBanPersistence mbBanPersistence;
671            @BeanReference(type = MBCategoryLocalService.class)
672            protected MBCategoryLocalService mbCategoryLocalService;
673            @BeanReference(type = MBCategoryService.class)
674            protected MBCategoryService mbCategoryService;
675            @BeanReference(type = MBCategoryPersistence.class)
676            protected MBCategoryPersistence mbCategoryPersistence;
677            @BeanReference(type = MBCategoryFinder.class)
678            protected MBCategoryFinder mbCategoryFinder;
679            @BeanReference(type = MBDiscussionLocalService.class)
680            protected MBDiscussionLocalService mbDiscussionLocalService;
681            @BeanReference(type = MBDiscussionPersistence.class)
682            protected MBDiscussionPersistence mbDiscussionPersistence;
683            @BeanReference(type = MBMailingListLocalService.class)
684            protected MBMailingListLocalService mbMailingListLocalService;
685            @BeanReference(type = MBMailingListPersistence.class)
686            protected MBMailingListPersistence mbMailingListPersistence;
687            @BeanReference(type = MBMessageLocalService.class)
688            protected MBMessageLocalService mbMessageLocalService;
689            @BeanReference(type = MBMessageService.class)
690            protected MBMessageService mbMessageService;
691            @BeanReference(type = MBMessagePersistence.class)
692            protected MBMessagePersistence mbMessagePersistence;
693            @BeanReference(type = MBMessageFinder.class)
694            protected MBMessageFinder mbMessageFinder;
695            @BeanReference(type = MBStatsUserLocalService.class)
696            protected MBStatsUserLocalService mbStatsUserLocalService;
697            @BeanReference(type = MBStatsUserPersistence.class)
698            protected MBStatsUserPersistence mbStatsUserPersistence;
699            @BeanReference(type = MBThreadLocalService.class)
700            protected MBThreadLocalService mbThreadLocalService;
701            @BeanReference(type = MBThreadService.class)
702            protected MBThreadService mbThreadService;
703            @BeanReference(type = MBThreadPersistence.class)
704            protected MBThreadPersistence mbThreadPersistence;
705            @BeanReference(type = MBThreadFinder.class)
706            protected MBThreadFinder mbThreadFinder;
707            @BeanReference(type = MBThreadFlagLocalService.class)
708            protected MBThreadFlagLocalService mbThreadFlagLocalService;
709            @BeanReference(type = MBThreadFlagPersistence.class)
710            protected MBThreadFlagPersistence mbThreadFlagPersistence;
711            @BeanReference(type = CounterLocalService.class)
712            protected CounterLocalService counterLocalService;
713            @BeanReference(type = ResourceLocalService.class)
714            protected ResourceLocalService resourceLocalService;
715            @BeanReference(type = UserLocalService.class)
716            protected UserLocalService userLocalService;
717            @BeanReference(type = UserService.class)
718            protected UserService userService;
719            @BeanReference(type = UserPersistence.class)
720            protected UserPersistence userPersistence;
721            @BeanReference(type = UserFinder.class)
722            protected UserFinder userFinder;
723            private String _beanIdentifier;
724    }