001    /**
002     * Copyright (c) 2000-2012 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.mail.service.MailService;
020    
021    import com.liferay.portal.kernel.bean.BeanReference;
022    import com.liferay.portal.kernel.bean.IdentifiableBean;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
026    import com.liferay.portal.kernel.exception.PortalException;
027    import com.liferay.portal.kernel.exception.SystemException;
028    import com.liferay.portal.kernel.log.Log;
029    import com.liferay.portal.kernel.log.LogFactoryUtil;
030    import com.liferay.portal.kernel.search.Indexer;
031    import com.liferay.portal.kernel.search.IndexerRegistryUtil;
032    import com.liferay.portal.kernel.search.SearchException;
033    import com.liferay.portal.kernel.util.OrderByComparator;
034    import com.liferay.portal.model.PersistedModel;
035    import com.liferay.portal.service.CompanyLocalService;
036    import com.liferay.portal.service.CompanyService;
037    import com.liferay.portal.service.GroupLocalService;
038    import com.liferay.portal.service.GroupService;
039    import com.liferay.portal.service.LockLocalService;
040    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
041    import com.liferay.portal.service.PortletPreferencesLocalService;
042    import com.liferay.portal.service.PortletPreferencesService;
043    import com.liferay.portal.service.ResourceLocalService;
044    import com.liferay.portal.service.ResourceService;
045    import com.liferay.portal.service.SubscriptionLocalService;
046    import com.liferay.portal.service.UserLocalService;
047    import com.liferay.portal.service.UserService;
048    import com.liferay.portal.service.WorkflowInstanceLinkLocalService;
049    import com.liferay.portal.service.persistence.CompanyPersistence;
050    import com.liferay.portal.service.persistence.GroupFinder;
051    import com.liferay.portal.service.persistence.GroupPersistence;
052    import com.liferay.portal.service.persistence.LockFinder;
053    import com.liferay.portal.service.persistence.LockPersistence;
054    import com.liferay.portal.service.persistence.PortletPreferencesFinder;
055    import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
056    import com.liferay.portal.service.persistence.ResourceFinder;
057    import com.liferay.portal.service.persistence.ResourcePersistence;
058    import com.liferay.portal.service.persistence.SubscriptionPersistence;
059    import com.liferay.portal.service.persistence.UserFinder;
060    import com.liferay.portal.service.persistence.UserPersistence;
061    import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
062    
063    import com.liferay.portlet.asset.service.AssetEntryLocalService;
064    import com.liferay.portlet.asset.service.AssetEntryService;
065    import com.liferay.portlet.asset.service.AssetLinkLocalService;
066    import com.liferay.portlet.asset.service.AssetTagLocalService;
067    import com.liferay.portlet.asset.service.AssetTagService;
068    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
069    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
070    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
071    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
072    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
073    import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
074    import com.liferay.portlet.blogs.service.BlogsEntryService;
075    import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
076    import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
077    import com.liferay.portlet.expando.service.ExpandoValueLocalService;
078    import com.liferay.portlet.expando.service.ExpandoValueService;
079    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
080    import com.liferay.portlet.messageboards.model.MBMessage;
081    import com.liferay.portlet.messageboards.service.MBBanLocalService;
082    import com.liferay.portlet.messageboards.service.MBBanService;
083    import com.liferay.portlet.messageboards.service.MBCategoryLocalService;
084    import com.liferay.portlet.messageboards.service.MBCategoryService;
085    import com.liferay.portlet.messageboards.service.MBDiscussionLocalService;
086    import com.liferay.portlet.messageboards.service.MBMailingListLocalService;
087    import com.liferay.portlet.messageboards.service.MBMessageLocalService;
088    import com.liferay.portlet.messageboards.service.MBMessageService;
089    import com.liferay.portlet.messageboards.service.MBStatsUserLocalService;
090    import com.liferay.portlet.messageboards.service.MBThreadFlagLocalService;
091    import com.liferay.portlet.messageboards.service.MBThreadLocalService;
092    import com.liferay.portlet.messageboards.service.MBThreadService;
093    import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
094    import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
095    import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
096    import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
097    import com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence;
098    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
099    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
100    import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
101    import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
102    import com.liferay.portlet.messageboards.service.persistence.MBThreadFlagPersistence;
103    import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
104    import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
105    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
106    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
107    import com.liferay.portlet.social.service.SocialActivityLocalService;
108    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
109    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
110    import com.liferay.portlet.wiki.service.WikiPageLocalService;
111    import com.liferay.portlet.wiki.service.WikiPageService;
112    import com.liferay.portlet.wiki.service.persistence.WikiPageFinder;
113    import com.liferay.portlet.wiki.service.persistence.WikiPagePersistence;
114    
115    import java.io.Serializable;
116    
117    import java.util.List;
118    
119    import javax.sql.DataSource;
120    
121    /**
122     * The base implementation of the message-boards message local service.
123     *
124     * <p>
125     * 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.MBMessageLocalServiceImpl}.
126     * </p>
127     *
128     * @author Brian Wing Shun Chan
129     * @see com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl
130     * @see com.liferay.portlet.messageboards.service.MBMessageLocalServiceUtil
131     * @generated
132     */
133    public abstract class MBMessageLocalServiceBaseImpl
134            implements MBMessageLocalService, IdentifiableBean {
135            /*
136             * NOTE FOR DEVELOPERS:
137             *
138             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.messageboards.service.MBMessageLocalServiceUtil} to access the message-boards message local service.
139             */
140    
141            /**
142             * Adds the message-boards message to the database. Also notifies the appropriate model listeners.
143             *
144             * @param mbMessage the message-boards message
145             * @return the message-boards message that was added
146             * @throws SystemException if a system exception occurred
147             */
148            public MBMessage addMBMessage(MBMessage mbMessage)
149                    throws SystemException {
150                    mbMessage.setNew(true);
151    
152                    mbMessage = mbMessagePersistence.update(mbMessage, false);
153    
154                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
155    
156                    if (indexer != null) {
157                            try {
158                                    indexer.reindex(mbMessage);
159                            }
160                            catch (SearchException se) {
161                                    if (_log.isWarnEnabled()) {
162                                            _log.warn(se, se);
163                                    }
164                            }
165                    }
166    
167                    return mbMessage;
168            }
169    
170            /**
171             * Creates a new message-boards message with the primary key. Does not add the message-boards message to the database.
172             *
173             * @param messageId the primary key for the new message-boards message
174             * @return the new message-boards message
175             */
176            public MBMessage createMBMessage(long messageId) {
177                    return mbMessagePersistence.create(messageId);
178            }
179    
180            /**
181             * Deletes the message-boards message with the primary key from the database. Also notifies the appropriate model listeners.
182             *
183             * @param messageId the primary key of the message-boards message
184             * @throws PortalException if a message-boards message with the primary key could not be found
185             * @throws SystemException if a system exception occurred
186             */
187            public void deleteMBMessage(long messageId)
188                    throws PortalException, SystemException {
189                    MBMessage mbMessage = mbMessagePersistence.remove(messageId);
190    
191                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
192    
193                    if (indexer != null) {
194                            try {
195                                    indexer.delete(mbMessage);
196                            }
197                            catch (SearchException se) {
198                                    if (_log.isWarnEnabled()) {
199                                            _log.warn(se, se);
200                                    }
201                            }
202                    }
203            }
204    
205            /**
206             * Deletes the message-boards message from the database. Also notifies the appropriate model listeners.
207             *
208             * @param mbMessage the message-boards message
209             * @throws SystemException if a system exception occurred
210             */
211            public void deleteMBMessage(MBMessage mbMessage) throws SystemException {
212                    mbMessagePersistence.remove(mbMessage);
213    
214                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
215    
216                    if (indexer != null) {
217                            try {
218                                    indexer.delete(mbMessage);
219                            }
220                            catch (SearchException se) {
221                                    if (_log.isWarnEnabled()) {
222                                            _log.warn(se, se);
223                                    }
224                            }
225                    }
226            }
227    
228            /**
229             * Performs a dynamic query on the database and returns the matching rows.
230             *
231             * @param dynamicQuery the dynamic query
232             * @return the matching rows
233             * @throws SystemException if a system exception occurred
234             */
235            @SuppressWarnings("rawtypes")
236            public List dynamicQuery(DynamicQuery dynamicQuery)
237                    throws SystemException {
238                    return mbMessagePersistence.findWithDynamicQuery(dynamicQuery);
239            }
240    
241            /**
242             * Performs a dynamic query on the database and returns a range of the matching rows.
243             *
244             * <p>
245             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
246             * </p>
247             *
248             * @param dynamicQuery the dynamic query
249             * @param start the lower bound of the range of model instances
250             * @param end the upper bound of the range of model instances (not inclusive)
251             * @return the range of matching rows
252             * @throws SystemException if a system exception occurred
253             */
254            @SuppressWarnings("rawtypes")
255            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
256                    throws SystemException {
257                    return mbMessagePersistence.findWithDynamicQuery(dynamicQuery, start,
258                            end);
259            }
260    
261            /**
262             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
263             *
264             * <p>
265             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
266             * </p>
267             *
268             * @param dynamicQuery the dynamic query
269             * @param start the lower bound of the range of model instances
270             * @param end the upper bound of the range of model instances (not inclusive)
271             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
272             * @return the ordered range of matching rows
273             * @throws SystemException if a system exception occurred
274             */
275            @SuppressWarnings("rawtypes")
276            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
277                    OrderByComparator orderByComparator) throws SystemException {
278                    return mbMessagePersistence.findWithDynamicQuery(dynamicQuery, start,
279                            end, orderByComparator);
280            }
281    
282            /**
283             * Returns the number of rows that match the dynamic query.
284             *
285             * @param dynamicQuery the dynamic query
286             * @return the number of rows that match the dynamic query
287             * @throws SystemException if a system exception occurred
288             */
289            public long dynamicQueryCount(DynamicQuery dynamicQuery)
290                    throws SystemException {
291                    return mbMessagePersistence.countWithDynamicQuery(dynamicQuery);
292            }
293    
294            public MBMessage fetchMBMessage(long messageId) throws SystemException {
295                    return mbMessagePersistence.fetchByPrimaryKey(messageId);
296            }
297    
298            /**
299             * Returns the message-boards message with the primary key.
300             *
301             * @param messageId the primary key of the message-boards message
302             * @return the message-boards message
303             * @throws PortalException if a message-boards message with the primary key could not be found
304             * @throws SystemException if a system exception occurred
305             */
306            public MBMessage getMBMessage(long messageId)
307                    throws PortalException, SystemException {
308                    return mbMessagePersistence.findByPrimaryKey(messageId);
309            }
310    
311            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
312                    throws PortalException, SystemException {
313                    return mbMessagePersistence.findByPrimaryKey(primaryKeyObj);
314            }
315    
316            /**
317             * Returns the message-boards message with the UUID in the group.
318             *
319             * @param uuid the UUID of message-boards message
320             * @param groupId the group id of the message-boards message
321             * @return the message-boards message
322             * @throws PortalException if a message-boards message with the UUID in the group could not be found
323             * @throws SystemException if a system exception occurred
324             */
325            public MBMessage getMBMessageByUuidAndGroupId(String uuid, long groupId)
326                    throws PortalException, SystemException {
327                    return mbMessagePersistence.findByUUID_G(uuid, groupId);
328            }
329    
330            /**
331             * Returns a range of all the message-boards messages.
332             *
333             * <p>
334             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
335             * </p>
336             *
337             * @param start the lower bound of the range of message-boards messages
338             * @param end the upper bound of the range of message-boards messages (not inclusive)
339             * @return the range of message-boards messages
340             * @throws SystemException if a system exception occurred
341             */
342            public List<MBMessage> getMBMessages(int start, int end)
343                    throws SystemException {
344                    return mbMessagePersistence.findAll(start, end);
345            }
346    
347            /**
348             * Returns the number of message-boards messages.
349             *
350             * @return the number of message-boards messages
351             * @throws SystemException if a system exception occurred
352             */
353            public int getMBMessagesCount() throws SystemException {
354                    return mbMessagePersistence.countAll();
355            }
356    
357            /**
358             * Updates the message-boards message in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
359             *
360             * @param mbMessage the message-boards message
361             * @return the message-boards message that was updated
362             * @throws SystemException if a system exception occurred
363             */
364            public MBMessage updateMBMessage(MBMessage mbMessage)
365                    throws SystemException {
366                    return updateMBMessage(mbMessage, true);
367            }
368    
369            /**
370             * Updates the message-boards message in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
371             *
372             * @param mbMessage the message-boards message
373             * @param merge whether to merge the message-boards message with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
374             * @return the message-boards message that was updated
375             * @throws SystemException if a system exception occurred
376             */
377            public MBMessage updateMBMessage(MBMessage mbMessage, boolean merge)
378                    throws SystemException {
379                    mbMessage.setNew(false);
380    
381                    mbMessage = mbMessagePersistence.update(mbMessage, merge);
382    
383                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
384    
385                    if (indexer != null) {
386                            try {
387                                    indexer.reindex(mbMessage);
388                            }
389                            catch (SearchException se) {
390                                    if (_log.isWarnEnabled()) {
391                                            _log.warn(se, se);
392                                    }
393                            }
394                    }
395    
396                    return mbMessage;
397            }
398    
399            /**
400             * Returns the message boards ban local service.
401             *
402             * @return the message boards ban local service
403             */
404            public MBBanLocalService getMBBanLocalService() {
405                    return mbBanLocalService;
406            }
407    
408            /**
409             * Sets the message boards ban local service.
410             *
411             * @param mbBanLocalService the message boards ban local service
412             */
413            public void setMBBanLocalService(MBBanLocalService mbBanLocalService) {
414                    this.mbBanLocalService = mbBanLocalService;
415            }
416    
417            /**
418             * Returns the message boards ban remote service.
419             *
420             * @return the message boards ban remote service
421             */
422            public MBBanService getMBBanService() {
423                    return mbBanService;
424            }
425    
426            /**
427             * Sets the message boards ban remote service.
428             *
429             * @param mbBanService the message boards ban remote service
430             */
431            public void setMBBanService(MBBanService mbBanService) {
432                    this.mbBanService = mbBanService;
433            }
434    
435            /**
436             * Returns the message boards ban persistence.
437             *
438             * @return the message boards ban persistence
439             */
440            public MBBanPersistence getMBBanPersistence() {
441                    return mbBanPersistence;
442            }
443    
444            /**
445             * Sets the message boards ban persistence.
446             *
447             * @param mbBanPersistence the message boards ban persistence
448             */
449            public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
450                    this.mbBanPersistence = mbBanPersistence;
451            }
452    
453            /**
454             * Returns the message boards category local service.
455             *
456             * @return the message boards category local service
457             */
458            public MBCategoryLocalService getMBCategoryLocalService() {
459                    return mbCategoryLocalService;
460            }
461    
462            /**
463             * Sets the message boards category local service.
464             *
465             * @param mbCategoryLocalService the message boards category local service
466             */
467            public void setMBCategoryLocalService(
468                    MBCategoryLocalService mbCategoryLocalService) {
469                    this.mbCategoryLocalService = mbCategoryLocalService;
470            }
471    
472            /**
473             * Returns the message boards category remote service.
474             *
475             * @return the message boards category remote service
476             */
477            public MBCategoryService getMBCategoryService() {
478                    return mbCategoryService;
479            }
480    
481            /**
482             * Sets the message boards category remote service.
483             *
484             * @param mbCategoryService the message boards category remote service
485             */
486            public void setMBCategoryService(MBCategoryService mbCategoryService) {
487                    this.mbCategoryService = mbCategoryService;
488            }
489    
490            /**
491             * Returns the message boards category persistence.
492             *
493             * @return the message boards category persistence
494             */
495            public MBCategoryPersistence getMBCategoryPersistence() {
496                    return mbCategoryPersistence;
497            }
498    
499            /**
500             * Sets the message boards category persistence.
501             *
502             * @param mbCategoryPersistence the message boards category persistence
503             */
504            public void setMBCategoryPersistence(
505                    MBCategoryPersistence mbCategoryPersistence) {
506                    this.mbCategoryPersistence = mbCategoryPersistence;
507            }
508    
509            /**
510             * Returns the message boards category finder.
511             *
512             * @return the message boards category finder
513             */
514            public MBCategoryFinder getMBCategoryFinder() {
515                    return mbCategoryFinder;
516            }
517    
518            /**
519             * Sets the message boards category finder.
520             *
521             * @param mbCategoryFinder the message boards category finder
522             */
523            public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
524                    this.mbCategoryFinder = mbCategoryFinder;
525            }
526    
527            /**
528             * Returns the message boards discussion local service.
529             *
530             * @return the message boards discussion local service
531             */
532            public MBDiscussionLocalService getMBDiscussionLocalService() {
533                    return mbDiscussionLocalService;
534            }
535    
536            /**
537             * Sets the message boards discussion local service.
538             *
539             * @param mbDiscussionLocalService the message boards discussion local service
540             */
541            public void setMBDiscussionLocalService(
542                    MBDiscussionLocalService mbDiscussionLocalService) {
543                    this.mbDiscussionLocalService = mbDiscussionLocalService;
544            }
545    
546            /**
547             * Returns the message boards discussion persistence.
548             *
549             * @return the message boards discussion persistence
550             */
551            public MBDiscussionPersistence getMBDiscussionPersistence() {
552                    return mbDiscussionPersistence;
553            }
554    
555            /**
556             * Sets the message boards discussion persistence.
557             *
558             * @param mbDiscussionPersistence the message boards discussion persistence
559             */
560            public void setMBDiscussionPersistence(
561                    MBDiscussionPersistence mbDiscussionPersistence) {
562                    this.mbDiscussionPersistence = mbDiscussionPersistence;
563            }
564    
565            /**
566             * Returns the message boards mailing list local service.
567             *
568             * @return the message boards mailing list local service
569             */
570            public MBMailingListLocalService getMBMailingListLocalService() {
571                    return mbMailingListLocalService;
572            }
573    
574            /**
575             * Sets the message boards mailing list local service.
576             *
577             * @param mbMailingListLocalService the message boards mailing list local service
578             */
579            public void setMBMailingListLocalService(
580                    MBMailingListLocalService mbMailingListLocalService) {
581                    this.mbMailingListLocalService = mbMailingListLocalService;
582            }
583    
584            /**
585             * Returns the message boards mailing list persistence.
586             *
587             * @return the message boards mailing list persistence
588             */
589            public MBMailingListPersistence getMBMailingListPersistence() {
590                    return mbMailingListPersistence;
591            }
592    
593            /**
594             * Sets the message boards mailing list persistence.
595             *
596             * @param mbMailingListPersistence the message boards mailing list persistence
597             */
598            public void setMBMailingListPersistence(
599                    MBMailingListPersistence mbMailingListPersistence) {
600                    this.mbMailingListPersistence = mbMailingListPersistence;
601            }
602    
603            /**
604             * Returns the message-boards message local service.
605             *
606             * @return the message-boards message local service
607             */
608            public MBMessageLocalService getMBMessageLocalService() {
609                    return mbMessageLocalService;
610            }
611    
612            /**
613             * Sets the message-boards message local service.
614             *
615             * @param mbMessageLocalService the message-boards message local service
616             */
617            public void setMBMessageLocalService(
618                    MBMessageLocalService mbMessageLocalService) {
619                    this.mbMessageLocalService = mbMessageLocalService;
620            }
621    
622            /**
623             * Returns the message-boards message remote service.
624             *
625             * @return the message-boards message remote service
626             */
627            public MBMessageService getMBMessageService() {
628                    return mbMessageService;
629            }
630    
631            /**
632             * Sets the message-boards message remote service.
633             *
634             * @param mbMessageService the message-boards message remote service
635             */
636            public void setMBMessageService(MBMessageService mbMessageService) {
637                    this.mbMessageService = mbMessageService;
638            }
639    
640            /**
641             * Returns the message-boards message persistence.
642             *
643             * @return the message-boards message persistence
644             */
645            public MBMessagePersistence getMBMessagePersistence() {
646                    return mbMessagePersistence;
647            }
648    
649            /**
650             * Sets the message-boards message persistence.
651             *
652             * @param mbMessagePersistence the message-boards message persistence
653             */
654            public void setMBMessagePersistence(
655                    MBMessagePersistence mbMessagePersistence) {
656                    this.mbMessagePersistence = mbMessagePersistence;
657            }
658    
659            /**
660             * Returns the message-boards message finder.
661             *
662             * @return the message-boards message finder
663             */
664            public MBMessageFinder getMBMessageFinder() {
665                    return mbMessageFinder;
666            }
667    
668            /**
669             * Sets the message-boards message finder.
670             *
671             * @param mbMessageFinder the message-boards message finder
672             */
673            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
674                    this.mbMessageFinder = mbMessageFinder;
675            }
676    
677            /**
678             * Returns the message boards stats user local service.
679             *
680             * @return the message boards stats user local service
681             */
682            public MBStatsUserLocalService getMBStatsUserLocalService() {
683                    return mbStatsUserLocalService;
684            }
685    
686            /**
687             * Sets the message boards stats user local service.
688             *
689             * @param mbStatsUserLocalService the message boards stats user local service
690             */
691            public void setMBStatsUserLocalService(
692                    MBStatsUserLocalService mbStatsUserLocalService) {
693                    this.mbStatsUserLocalService = mbStatsUserLocalService;
694            }
695    
696            /**
697             * Returns the message boards stats user persistence.
698             *
699             * @return the message boards stats user persistence
700             */
701            public MBStatsUserPersistence getMBStatsUserPersistence() {
702                    return mbStatsUserPersistence;
703            }
704    
705            /**
706             * Sets the message boards stats user persistence.
707             *
708             * @param mbStatsUserPersistence the message boards stats user persistence
709             */
710            public void setMBStatsUserPersistence(
711                    MBStatsUserPersistence mbStatsUserPersistence) {
712                    this.mbStatsUserPersistence = mbStatsUserPersistence;
713            }
714    
715            /**
716             * Returns the message boards thread local service.
717             *
718             * @return the message boards thread local service
719             */
720            public MBThreadLocalService getMBThreadLocalService() {
721                    return mbThreadLocalService;
722            }
723    
724            /**
725             * Sets the message boards thread local service.
726             *
727             * @param mbThreadLocalService the message boards thread local service
728             */
729            public void setMBThreadLocalService(
730                    MBThreadLocalService mbThreadLocalService) {
731                    this.mbThreadLocalService = mbThreadLocalService;
732            }
733    
734            /**
735             * Returns the message boards thread remote service.
736             *
737             * @return the message boards thread remote service
738             */
739            public MBThreadService getMBThreadService() {
740                    return mbThreadService;
741            }
742    
743            /**
744             * Sets the message boards thread remote service.
745             *
746             * @param mbThreadService the message boards thread remote service
747             */
748            public void setMBThreadService(MBThreadService mbThreadService) {
749                    this.mbThreadService = mbThreadService;
750            }
751    
752            /**
753             * Returns the message boards thread persistence.
754             *
755             * @return the message boards thread persistence
756             */
757            public MBThreadPersistence getMBThreadPersistence() {
758                    return mbThreadPersistence;
759            }
760    
761            /**
762             * Sets the message boards thread persistence.
763             *
764             * @param mbThreadPersistence the message boards thread persistence
765             */
766            public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
767                    this.mbThreadPersistence = mbThreadPersistence;
768            }
769    
770            /**
771             * Returns the message boards thread finder.
772             *
773             * @return the message boards thread finder
774             */
775            public MBThreadFinder getMBThreadFinder() {
776                    return mbThreadFinder;
777            }
778    
779            /**
780             * Sets the message boards thread finder.
781             *
782             * @param mbThreadFinder the message boards thread finder
783             */
784            public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
785                    this.mbThreadFinder = mbThreadFinder;
786            }
787    
788            /**
789             * Returns the message boards thread flag local service.
790             *
791             * @return the message boards thread flag local service
792             */
793            public MBThreadFlagLocalService getMBThreadFlagLocalService() {
794                    return mbThreadFlagLocalService;
795            }
796    
797            /**
798             * Sets the message boards thread flag local service.
799             *
800             * @param mbThreadFlagLocalService the message boards thread flag local service
801             */
802            public void setMBThreadFlagLocalService(
803                    MBThreadFlagLocalService mbThreadFlagLocalService) {
804                    this.mbThreadFlagLocalService = mbThreadFlagLocalService;
805            }
806    
807            /**
808             * Returns the message boards thread flag persistence.
809             *
810             * @return the message boards thread flag persistence
811             */
812            public MBThreadFlagPersistence getMBThreadFlagPersistence() {
813                    return mbThreadFlagPersistence;
814            }
815    
816            /**
817             * Sets the message boards thread flag persistence.
818             *
819             * @param mbThreadFlagPersistence the message boards thread flag persistence
820             */
821            public void setMBThreadFlagPersistence(
822                    MBThreadFlagPersistence mbThreadFlagPersistence) {
823                    this.mbThreadFlagPersistence = mbThreadFlagPersistence;
824            }
825    
826            /**
827             * Returns the counter local service.
828             *
829             * @return the counter local service
830             */
831            public CounterLocalService getCounterLocalService() {
832                    return counterLocalService;
833            }
834    
835            /**
836             * Sets the counter local service.
837             *
838             * @param counterLocalService the counter local service
839             */
840            public void setCounterLocalService(CounterLocalService counterLocalService) {
841                    this.counterLocalService = counterLocalService;
842            }
843    
844            /**
845             * Returns the mail remote service.
846             *
847             * @return the mail remote service
848             */
849            public MailService getMailService() {
850                    return mailService;
851            }
852    
853            /**
854             * Sets the mail remote service.
855             *
856             * @param mailService the mail remote service
857             */
858            public void setMailService(MailService mailService) {
859                    this.mailService = mailService;
860            }
861    
862            /**
863             * Returns the company local service.
864             *
865             * @return the company local service
866             */
867            public CompanyLocalService getCompanyLocalService() {
868                    return companyLocalService;
869            }
870    
871            /**
872             * Sets the company local service.
873             *
874             * @param companyLocalService the company local service
875             */
876            public void setCompanyLocalService(CompanyLocalService companyLocalService) {
877                    this.companyLocalService = companyLocalService;
878            }
879    
880            /**
881             * Returns the company remote service.
882             *
883             * @return the company remote service
884             */
885            public CompanyService getCompanyService() {
886                    return companyService;
887            }
888    
889            /**
890             * Sets the company remote service.
891             *
892             * @param companyService the company remote service
893             */
894            public void setCompanyService(CompanyService companyService) {
895                    this.companyService = companyService;
896            }
897    
898            /**
899             * Returns the company persistence.
900             *
901             * @return the company persistence
902             */
903            public CompanyPersistence getCompanyPersistence() {
904                    return companyPersistence;
905            }
906    
907            /**
908             * Sets the company persistence.
909             *
910             * @param companyPersistence the company persistence
911             */
912            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
913                    this.companyPersistence = companyPersistence;
914            }
915    
916            /**
917             * Returns the group local service.
918             *
919             * @return the group local service
920             */
921            public GroupLocalService getGroupLocalService() {
922                    return groupLocalService;
923            }
924    
925            /**
926             * Sets the group local service.
927             *
928             * @param groupLocalService the group local service
929             */
930            public void setGroupLocalService(GroupLocalService groupLocalService) {
931                    this.groupLocalService = groupLocalService;
932            }
933    
934            /**
935             * Returns the group remote service.
936             *
937             * @return the group remote service
938             */
939            public GroupService getGroupService() {
940                    return groupService;
941            }
942    
943            /**
944             * Sets the group remote service.
945             *
946             * @param groupService the group remote service
947             */
948            public void setGroupService(GroupService groupService) {
949                    this.groupService = groupService;
950            }
951    
952            /**
953             * Returns the group persistence.
954             *
955             * @return the group persistence
956             */
957            public GroupPersistence getGroupPersistence() {
958                    return groupPersistence;
959            }
960    
961            /**
962             * Sets the group persistence.
963             *
964             * @param groupPersistence the group persistence
965             */
966            public void setGroupPersistence(GroupPersistence groupPersistence) {
967                    this.groupPersistence = groupPersistence;
968            }
969    
970            /**
971             * Returns the group finder.
972             *
973             * @return the group finder
974             */
975            public GroupFinder getGroupFinder() {
976                    return groupFinder;
977            }
978    
979            /**
980             * Sets the group finder.
981             *
982             * @param groupFinder the group finder
983             */
984            public void setGroupFinder(GroupFinder groupFinder) {
985                    this.groupFinder = groupFinder;
986            }
987    
988            /**
989             * Returns the lock local service.
990             *
991             * @return the lock local service
992             */
993            public LockLocalService getLockLocalService() {
994                    return lockLocalService;
995            }
996    
997            /**
998             * Sets the lock local service.
999             *
1000             * @param lockLocalService the lock local service
1001             */
1002            public void setLockLocalService(LockLocalService lockLocalService) {
1003                    this.lockLocalService = lockLocalService;
1004            }
1005    
1006            /**
1007             * Returns the lock persistence.
1008             *
1009             * @return the lock persistence
1010             */
1011            public LockPersistence getLockPersistence() {
1012                    return lockPersistence;
1013            }
1014    
1015            /**
1016             * Sets the lock persistence.
1017             *
1018             * @param lockPersistence the lock persistence
1019             */
1020            public void setLockPersistence(LockPersistence lockPersistence) {
1021                    this.lockPersistence = lockPersistence;
1022            }
1023    
1024            /**
1025             * Returns the lock finder.
1026             *
1027             * @return the lock finder
1028             */
1029            public LockFinder getLockFinder() {
1030                    return lockFinder;
1031            }
1032    
1033            /**
1034             * Sets the lock finder.
1035             *
1036             * @param lockFinder the lock finder
1037             */
1038            public void setLockFinder(LockFinder lockFinder) {
1039                    this.lockFinder = lockFinder;
1040            }
1041    
1042            /**
1043             * Returns the portlet preferences local service.
1044             *
1045             * @return the portlet preferences local service
1046             */
1047            public PortletPreferencesLocalService getPortletPreferencesLocalService() {
1048                    return portletPreferencesLocalService;
1049            }
1050    
1051            /**
1052             * Sets the portlet preferences local service.
1053             *
1054             * @param portletPreferencesLocalService the portlet preferences local service
1055             */
1056            public void setPortletPreferencesLocalService(
1057                    PortletPreferencesLocalService portletPreferencesLocalService) {
1058                    this.portletPreferencesLocalService = portletPreferencesLocalService;
1059            }
1060    
1061            /**
1062             * Returns the portlet preferences remote service.
1063             *
1064             * @return the portlet preferences remote service
1065             */
1066            public PortletPreferencesService getPortletPreferencesService() {
1067                    return portletPreferencesService;
1068            }
1069    
1070            /**
1071             * Sets the portlet preferences remote service.
1072             *
1073             * @param portletPreferencesService the portlet preferences remote service
1074             */
1075            public void setPortletPreferencesService(
1076                    PortletPreferencesService portletPreferencesService) {
1077                    this.portletPreferencesService = portletPreferencesService;
1078            }
1079    
1080            /**
1081             * Returns the portlet preferences persistence.
1082             *
1083             * @return the portlet preferences persistence
1084             */
1085            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
1086                    return portletPreferencesPersistence;
1087            }
1088    
1089            /**
1090             * Sets the portlet preferences persistence.
1091             *
1092             * @param portletPreferencesPersistence the portlet preferences persistence
1093             */
1094            public void setPortletPreferencesPersistence(
1095                    PortletPreferencesPersistence portletPreferencesPersistence) {
1096                    this.portletPreferencesPersistence = portletPreferencesPersistence;
1097            }
1098    
1099            /**
1100             * Returns the portlet preferences finder.
1101             *
1102             * @return the portlet preferences finder
1103             */
1104            public PortletPreferencesFinder getPortletPreferencesFinder() {
1105                    return portletPreferencesFinder;
1106            }
1107    
1108            /**
1109             * Sets the portlet preferences finder.
1110             *
1111             * @param portletPreferencesFinder the portlet preferences finder
1112             */
1113            public void setPortletPreferencesFinder(
1114                    PortletPreferencesFinder portletPreferencesFinder) {
1115                    this.portletPreferencesFinder = portletPreferencesFinder;
1116            }
1117    
1118            /**
1119             * Returns the resource local service.
1120             *
1121             * @return the resource local service
1122             */
1123            public ResourceLocalService getResourceLocalService() {
1124                    return resourceLocalService;
1125            }
1126    
1127            /**
1128             * Sets the resource local service.
1129             *
1130             * @param resourceLocalService the resource local service
1131             */
1132            public void setResourceLocalService(
1133                    ResourceLocalService resourceLocalService) {
1134                    this.resourceLocalService = resourceLocalService;
1135            }
1136    
1137            /**
1138             * Returns the resource remote service.
1139             *
1140             * @return the resource remote service
1141             */
1142            public ResourceService getResourceService() {
1143                    return resourceService;
1144            }
1145    
1146            /**
1147             * Sets the resource remote service.
1148             *
1149             * @param resourceService the resource remote service
1150             */
1151            public void setResourceService(ResourceService resourceService) {
1152                    this.resourceService = resourceService;
1153            }
1154    
1155            /**
1156             * Returns the resource persistence.
1157             *
1158             * @return the resource persistence
1159             */
1160            public ResourcePersistence getResourcePersistence() {
1161                    return resourcePersistence;
1162            }
1163    
1164            /**
1165             * Sets the resource persistence.
1166             *
1167             * @param resourcePersistence the resource persistence
1168             */
1169            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
1170                    this.resourcePersistence = resourcePersistence;
1171            }
1172    
1173            /**
1174             * Returns the resource finder.
1175             *
1176             * @return the resource finder
1177             */
1178            public ResourceFinder getResourceFinder() {
1179                    return resourceFinder;
1180            }
1181    
1182            /**
1183             * Sets the resource finder.
1184             *
1185             * @param resourceFinder the resource finder
1186             */
1187            public void setResourceFinder(ResourceFinder resourceFinder) {
1188                    this.resourceFinder = resourceFinder;
1189            }
1190    
1191            /**
1192             * Returns the subscription local service.
1193             *
1194             * @return the subscription local service
1195             */
1196            public SubscriptionLocalService getSubscriptionLocalService() {
1197                    return subscriptionLocalService;
1198            }
1199    
1200            /**
1201             * Sets the subscription local service.
1202             *
1203             * @param subscriptionLocalService the subscription local service
1204             */
1205            public void setSubscriptionLocalService(
1206                    SubscriptionLocalService subscriptionLocalService) {
1207                    this.subscriptionLocalService = subscriptionLocalService;
1208            }
1209    
1210            /**
1211             * Returns the subscription persistence.
1212             *
1213             * @return the subscription persistence
1214             */
1215            public SubscriptionPersistence getSubscriptionPersistence() {
1216                    return subscriptionPersistence;
1217            }
1218    
1219            /**
1220             * Sets the subscription persistence.
1221             *
1222             * @param subscriptionPersistence the subscription persistence
1223             */
1224            public void setSubscriptionPersistence(
1225                    SubscriptionPersistence subscriptionPersistence) {
1226                    this.subscriptionPersistence = subscriptionPersistence;
1227            }
1228    
1229            /**
1230             * Returns the user local service.
1231             *
1232             * @return the user local service
1233             */
1234            public UserLocalService getUserLocalService() {
1235                    return userLocalService;
1236            }
1237    
1238            /**
1239             * Sets the user local service.
1240             *
1241             * @param userLocalService the user local service
1242             */
1243            public void setUserLocalService(UserLocalService userLocalService) {
1244                    this.userLocalService = userLocalService;
1245            }
1246    
1247            /**
1248             * Returns the user remote service.
1249             *
1250             * @return the user remote service
1251             */
1252            public UserService getUserService() {
1253                    return userService;
1254            }
1255    
1256            /**
1257             * Sets the user remote service.
1258             *
1259             * @param userService the user remote service
1260             */
1261            public void setUserService(UserService userService) {
1262                    this.userService = userService;
1263            }
1264    
1265            /**
1266             * Returns the user persistence.
1267             *
1268             * @return the user persistence
1269             */
1270            public UserPersistence getUserPersistence() {
1271                    return userPersistence;
1272            }
1273    
1274            /**
1275             * Sets the user persistence.
1276             *
1277             * @param userPersistence the user persistence
1278             */
1279            public void setUserPersistence(UserPersistence userPersistence) {
1280                    this.userPersistence = userPersistence;
1281            }
1282    
1283            /**
1284             * Returns the user finder.
1285             *
1286             * @return the user finder
1287             */
1288            public UserFinder getUserFinder() {
1289                    return userFinder;
1290            }
1291    
1292            /**
1293             * Sets the user finder.
1294             *
1295             * @param userFinder the user finder
1296             */
1297            public void setUserFinder(UserFinder userFinder) {
1298                    this.userFinder = userFinder;
1299            }
1300    
1301            /**
1302             * Returns the workflow instance link local service.
1303             *
1304             * @return the workflow instance link local service
1305             */
1306            public WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1307                    return workflowInstanceLinkLocalService;
1308            }
1309    
1310            /**
1311             * Sets the workflow instance link local service.
1312             *
1313             * @param workflowInstanceLinkLocalService the workflow instance link local service
1314             */
1315            public void setWorkflowInstanceLinkLocalService(
1316                    WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1317                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1318            }
1319    
1320            /**
1321             * Returns the workflow instance link persistence.
1322             *
1323             * @return the workflow instance link persistence
1324             */
1325            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1326                    return workflowInstanceLinkPersistence;
1327            }
1328    
1329            /**
1330             * Sets the workflow instance link persistence.
1331             *
1332             * @param workflowInstanceLinkPersistence the workflow instance link persistence
1333             */
1334            public void setWorkflowInstanceLinkPersistence(
1335                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1336                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1337            }
1338    
1339            /**
1340             * Returns the asset entry local service.
1341             *
1342             * @return the asset entry local service
1343             */
1344            public AssetEntryLocalService getAssetEntryLocalService() {
1345                    return assetEntryLocalService;
1346            }
1347    
1348            /**
1349             * Sets the asset entry local service.
1350             *
1351             * @param assetEntryLocalService the asset entry local service
1352             */
1353            public void setAssetEntryLocalService(
1354                    AssetEntryLocalService assetEntryLocalService) {
1355                    this.assetEntryLocalService = assetEntryLocalService;
1356            }
1357    
1358            /**
1359             * Returns the asset entry remote service.
1360             *
1361             * @return the asset entry remote service
1362             */
1363            public AssetEntryService getAssetEntryService() {
1364                    return assetEntryService;
1365            }
1366    
1367            /**
1368             * Sets the asset entry remote service.
1369             *
1370             * @param assetEntryService the asset entry remote service
1371             */
1372            public void setAssetEntryService(AssetEntryService assetEntryService) {
1373                    this.assetEntryService = assetEntryService;
1374            }
1375    
1376            /**
1377             * Returns the asset entry persistence.
1378             *
1379             * @return the asset entry persistence
1380             */
1381            public AssetEntryPersistence getAssetEntryPersistence() {
1382                    return assetEntryPersistence;
1383            }
1384    
1385            /**
1386             * Sets the asset entry persistence.
1387             *
1388             * @param assetEntryPersistence the asset entry persistence
1389             */
1390            public void setAssetEntryPersistence(
1391                    AssetEntryPersistence assetEntryPersistence) {
1392                    this.assetEntryPersistence = assetEntryPersistence;
1393            }
1394    
1395            /**
1396             * Returns the asset entry finder.
1397             *
1398             * @return the asset entry finder
1399             */
1400            public AssetEntryFinder getAssetEntryFinder() {
1401                    return assetEntryFinder;
1402            }
1403    
1404            /**
1405             * Sets the asset entry finder.
1406             *
1407             * @param assetEntryFinder the asset entry finder
1408             */
1409            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1410                    this.assetEntryFinder = assetEntryFinder;
1411            }
1412    
1413            /**
1414             * Returns the asset link local service.
1415             *
1416             * @return the asset link local service
1417             */
1418            public AssetLinkLocalService getAssetLinkLocalService() {
1419                    return assetLinkLocalService;
1420            }
1421    
1422            /**
1423             * Sets the asset link local service.
1424             *
1425             * @param assetLinkLocalService the asset link local service
1426             */
1427            public void setAssetLinkLocalService(
1428                    AssetLinkLocalService assetLinkLocalService) {
1429                    this.assetLinkLocalService = assetLinkLocalService;
1430            }
1431    
1432            /**
1433             * Returns the asset link persistence.
1434             *
1435             * @return the asset link persistence
1436             */
1437            public AssetLinkPersistence getAssetLinkPersistence() {
1438                    return assetLinkPersistence;
1439            }
1440    
1441            /**
1442             * Sets the asset link persistence.
1443             *
1444             * @param assetLinkPersistence the asset link persistence
1445             */
1446            public void setAssetLinkPersistence(
1447                    AssetLinkPersistence assetLinkPersistence) {
1448                    this.assetLinkPersistence = assetLinkPersistence;
1449            }
1450    
1451            /**
1452             * Returns the asset tag local service.
1453             *
1454             * @return the asset tag local service
1455             */
1456            public AssetTagLocalService getAssetTagLocalService() {
1457                    return assetTagLocalService;
1458            }
1459    
1460            /**
1461             * Sets the asset tag local service.
1462             *
1463             * @param assetTagLocalService the asset tag local service
1464             */
1465            public void setAssetTagLocalService(
1466                    AssetTagLocalService assetTagLocalService) {
1467                    this.assetTagLocalService = assetTagLocalService;
1468            }
1469    
1470            /**
1471             * Returns the asset tag remote service.
1472             *
1473             * @return the asset tag remote service
1474             */
1475            public AssetTagService getAssetTagService() {
1476                    return assetTagService;
1477            }
1478    
1479            /**
1480             * Sets the asset tag remote service.
1481             *
1482             * @param assetTagService the asset tag remote service
1483             */
1484            public void setAssetTagService(AssetTagService assetTagService) {
1485                    this.assetTagService = assetTagService;
1486            }
1487    
1488            /**
1489             * Returns the asset tag persistence.
1490             *
1491             * @return the asset tag persistence
1492             */
1493            public AssetTagPersistence getAssetTagPersistence() {
1494                    return assetTagPersistence;
1495            }
1496    
1497            /**
1498             * Sets the asset tag persistence.
1499             *
1500             * @param assetTagPersistence the asset tag persistence
1501             */
1502            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1503                    this.assetTagPersistence = assetTagPersistence;
1504            }
1505    
1506            /**
1507             * Returns the asset tag finder.
1508             *
1509             * @return the asset tag finder
1510             */
1511            public AssetTagFinder getAssetTagFinder() {
1512                    return assetTagFinder;
1513            }
1514    
1515            /**
1516             * Sets the asset tag finder.
1517             *
1518             * @param assetTagFinder the asset tag finder
1519             */
1520            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1521                    this.assetTagFinder = assetTagFinder;
1522            }
1523    
1524            /**
1525             * Returns the blogs entry local service.
1526             *
1527             * @return the blogs entry local service
1528             */
1529            public BlogsEntryLocalService getBlogsEntryLocalService() {
1530                    return blogsEntryLocalService;
1531            }
1532    
1533            /**
1534             * Sets the blogs entry local service.
1535             *
1536             * @param blogsEntryLocalService the blogs entry local service
1537             */
1538            public void setBlogsEntryLocalService(
1539                    BlogsEntryLocalService blogsEntryLocalService) {
1540                    this.blogsEntryLocalService = blogsEntryLocalService;
1541            }
1542    
1543            /**
1544             * Returns the blogs entry remote service.
1545             *
1546             * @return the blogs entry remote service
1547             */
1548            public BlogsEntryService getBlogsEntryService() {
1549                    return blogsEntryService;
1550            }
1551    
1552            /**
1553             * Sets the blogs entry remote service.
1554             *
1555             * @param blogsEntryService the blogs entry remote service
1556             */
1557            public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
1558                    this.blogsEntryService = blogsEntryService;
1559            }
1560    
1561            /**
1562             * Returns the blogs entry persistence.
1563             *
1564             * @return the blogs entry persistence
1565             */
1566            public BlogsEntryPersistence getBlogsEntryPersistence() {
1567                    return blogsEntryPersistence;
1568            }
1569    
1570            /**
1571             * Sets the blogs entry persistence.
1572             *
1573             * @param blogsEntryPersistence the blogs entry persistence
1574             */
1575            public void setBlogsEntryPersistence(
1576                    BlogsEntryPersistence blogsEntryPersistence) {
1577                    this.blogsEntryPersistence = blogsEntryPersistence;
1578            }
1579    
1580            /**
1581             * Returns the blogs entry finder.
1582             *
1583             * @return the blogs entry finder
1584             */
1585            public BlogsEntryFinder getBlogsEntryFinder() {
1586                    return blogsEntryFinder;
1587            }
1588    
1589            /**
1590             * Sets the blogs entry finder.
1591             *
1592             * @param blogsEntryFinder the blogs entry finder
1593             */
1594            public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
1595                    this.blogsEntryFinder = blogsEntryFinder;
1596            }
1597    
1598            /**
1599             * Returns the expando value local service.
1600             *
1601             * @return the expando value local service
1602             */
1603            public ExpandoValueLocalService getExpandoValueLocalService() {
1604                    return expandoValueLocalService;
1605            }
1606    
1607            /**
1608             * Sets the expando value local service.
1609             *
1610             * @param expandoValueLocalService the expando value local service
1611             */
1612            public void setExpandoValueLocalService(
1613                    ExpandoValueLocalService expandoValueLocalService) {
1614                    this.expandoValueLocalService = expandoValueLocalService;
1615            }
1616    
1617            /**
1618             * Returns the expando value remote service.
1619             *
1620             * @return the expando value remote service
1621             */
1622            public ExpandoValueService getExpandoValueService() {
1623                    return expandoValueService;
1624            }
1625    
1626            /**
1627             * Sets the expando value remote service.
1628             *
1629             * @param expandoValueService the expando value remote service
1630             */
1631            public void setExpandoValueService(ExpandoValueService expandoValueService) {
1632                    this.expandoValueService = expandoValueService;
1633            }
1634    
1635            /**
1636             * Returns the expando value persistence.
1637             *
1638             * @return the expando value persistence
1639             */
1640            public ExpandoValuePersistence getExpandoValuePersistence() {
1641                    return expandoValuePersistence;
1642            }
1643    
1644            /**
1645             * Sets the expando value persistence.
1646             *
1647             * @param expandoValuePersistence the expando value persistence
1648             */
1649            public void setExpandoValuePersistence(
1650                    ExpandoValuePersistence expandoValuePersistence) {
1651                    this.expandoValuePersistence = expandoValuePersistence;
1652            }
1653    
1654            /**
1655             * Returns the ratings stats local service.
1656             *
1657             * @return the ratings stats local service
1658             */
1659            public RatingsStatsLocalService getRatingsStatsLocalService() {
1660                    return ratingsStatsLocalService;
1661            }
1662    
1663            /**
1664             * Sets the ratings stats local service.
1665             *
1666             * @param ratingsStatsLocalService the ratings stats local service
1667             */
1668            public void setRatingsStatsLocalService(
1669                    RatingsStatsLocalService ratingsStatsLocalService) {
1670                    this.ratingsStatsLocalService = ratingsStatsLocalService;
1671            }
1672    
1673            /**
1674             * Returns the ratings stats persistence.
1675             *
1676             * @return the ratings stats persistence
1677             */
1678            public RatingsStatsPersistence getRatingsStatsPersistence() {
1679                    return ratingsStatsPersistence;
1680            }
1681    
1682            /**
1683             * Sets the ratings stats persistence.
1684             *
1685             * @param ratingsStatsPersistence the ratings stats persistence
1686             */
1687            public void setRatingsStatsPersistence(
1688                    RatingsStatsPersistence ratingsStatsPersistence) {
1689                    this.ratingsStatsPersistence = ratingsStatsPersistence;
1690            }
1691    
1692            /**
1693             * Returns the ratings stats finder.
1694             *
1695             * @return the ratings stats finder
1696             */
1697            public RatingsStatsFinder getRatingsStatsFinder() {
1698                    return ratingsStatsFinder;
1699            }
1700    
1701            /**
1702             * Sets the ratings stats finder.
1703             *
1704             * @param ratingsStatsFinder the ratings stats finder
1705             */
1706            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1707                    this.ratingsStatsFinder = ratingsStatsFinder;
1708            }
1709    
1710            /**
1711             * Returns the social activity local service.
1712             *
1713             * @return the social activity local service
1714             */
1715            public SocialActivityLocalService getSocialActivityLocalService() {
1716                    return socialActivityLocalService;
1717            }
1718    
1719            /**
1720             * Sets the social activity local service.
1721             *
1722             * @param socialActivityLocalService the social activity local service
1723             */
1724            public void setSocialActivityLocalService(
1725                    SocialActivityLocalService socialActivityLocalService) {
1726                    this.socialActivityLocalService = socialActivityLocalService;
1727            }
1728    
1729            /**
1730             * Returns the social activity persistence.
1731             *
1732             * @return the social activity persistence
1733             */
1734            public SocialActivityPersistence getSocialActivityPersistence() {
1735                    return socialActivityPersistence;
1736            }
1737    
1738            /**
1739             * Sets the social activity persistence.
1740             *
1741             * @param socialActivityPersistence the social activity persistence
1742             */
1743            public void setSocialActivityPersistence(
1744                    SocialActivityPersistence socialActivityPersistence) {
1745                    this.socialActivityPersistence = socialActivityPersistence;
1746            }
1747    
1748            /**
1749             * Returns the social activity finder.
1750             *
1751             * @return the social activity finder
1752             */
1753            public SocialActivityFinder getSocialActivityFinder() {
1754                    return socialActivityFinder;
1755            }
1756    
1757            /**
1758             * Sets the social activity finder.
1759             *
1760             * @param socialActivityFinder the social activity finder
1761             */
1762            public void setSocialActivityFinder(
1763                    SocialActivityFinder socialActivityFinder) {
1764                    this.socialActivityFinder = socialActivityFinder;
1765            }
1766    
1767            /**
1768             * Returns the wiki page local service.
1769             *
1770             * @return the wiki page local service
1771             */
1772            public WikiPageLocalService getWikiPageLocalService() {
1773                    return wikiPageLocalService;
1774            }
1775    
1776            /**
1777             * Sets the wiki page local service.
1778             *
1779             * @param wikiPageLocalService the wiki page local service
1780             */
1781            public void setWikiPageLocalService(
1782                    WikiPageLocalService wikiPageLocalService) {
1783                    this.wikiPageLocalService = wikiPageLocalService;
1784            }
1785    
1786            /**
1787             * Returns the wiki page remote service.
1788             *
1789             * @return the wiki page remote service
1790             */
1791            public WikiPageService getWikiPageService() {
1792                    return wikiPageService;
1793            }
1794    
1795            /**
1796             * Sets the wiki page remote service.
1797             *
1798             * @param wikiPageService the wiki page remote service
1799             */
1800            public void setWikiPageService(WikiPageService wikiPageService) {
1801                    this.wikiPageService = wikiPageService;
1802            }
1803    
1804            /**
1805             * Returns the wiki page persistence.
1806             *
1807             * @return the wiki page persistence
1808             */
1809            public WikiPagePersistence getWikiPagePersistence() {
1810                    return wikiPagePersistence;
1811            }
1812    
1813            /**
1814             * Sets the wiki page persistence.
1815             *
1816             * @param wikiPagePersistence the wiki page persistence
1817             */
1818            public void setWikiPagePersistence(WikiPagePersistence wikiPagePersistence) {
1819                    this.wikiPagePersistence = wikiPagePersistence;
1820            }
1821    
1822            /**
1823             * Returns the wiki page finder.
1824             *
1825             * @return the wiki page finder
1826             */
1827            public WikiPageFinder getWikiPageFinder() {
1828                    return wikiPageFinder;
1829            }
1830    
1831            /**
1832             * Sets the wiki page finder.
1833             *
1834             * @param wikiPageFinder the wiki page finder
1835             */
1836            public void setWikiPageFinder(WikiPageFinder wikiPageFinder) {
1837                    this.wikiPageFinder = wikiPageFinder;
1838            }
1839    
1840            public void afterPropertiesSet() {
1841                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBMessage",
1842                            mbMessageLocalService);
1843            }
1844    
1845            public void destroy() {
1846                    persistedModelLocalServiceRegistry.unregister(
1847                            "com.liferay.portlet.messageboards.model.MBMessage");
1848            }
1849    
1850            /**
1851             * Returns the Spring bean ID for this bean.
1852             *
1853             * @return the Spring bean ID for this bean
1854             */
1855            public String getBeanIdentifier() {
1856                    return _beanIdentifier;
1857            }
1858    
1859            /**
1860             * Sets the Spring bean ID for this bean.
1861             *
1862             * @param beanIdentifier the Spring bean ID for this bean
1863             */
1864            public void setBeanIdentifier(String beanIdentifier) {
1865                    _beanIdentifier = beanIdentifier;
1866            }
1867    
1868            protected ClassLoader getClassLoader() {
1869                    Class<?> clazz = getClass();
1870    
1871                    return clazz.getClassLoader();
1872            }
1873    
1874            protected Class<?> getModelClass() {
1875                    return MBMessage.class;
1876            }
1877    
1878            protected String getModelClassName() {
1879                    return MBMessage.class.getName();
1880            }
1881    
1882            /**
1883             * Performs an SQL query.
1884             *
1885             * @param sql the sql query
1886             */
1887            protected void runSQL(String sql) throws SystemException {
1888                    try {
1889                            DataSource dataSource = mbMessagePersistence.getDataSource();
1890    
1891                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1892                                            sql, new int[0]);
1893    
1894                            sqlUpdate.update();
1895                    }
1896                    catch (Exception e) {
1897                            throw new SystemException(e);
1898                    }
1899            }
1900    
1901            @BeanReference(type = MBBanLocalService.class)
1902            protected MBBanLocalService mbBanLocalService;
1903            @BeanReference(type = MBBanService.class)
1904            protected MBBanService mbBanService;
1905            @BeanReference(type = MBBanPersistence.class)
1906            protected MBBanPersistence mbBanPersistence;
1907            @BeanReference(type = MBCategoryLocalService.class)
1908            protected MBCategoryLocalService mbCategoryLocalService;
1909            @BeanReference(type = MBCategoryService.class)
1910            protected MBCategoryService mbCategoryService;
1911            @BeanReference(type = MBCategoryPersistence.class)
1912            protected MBCategoryPersistence mbCategoryPersistence;
1913            @BeanReference(type = MBCategoryFinder.class)
1914            protected MBCategoryFinder mbCategoryFinder;
1915            @BeanReference(type = MBDiscussionLocalService.class)
1916            protected MBDiscussionLocalService mbDiscussionLocalService;
1917            @BeanReference(type = MBDiscussionPersistence.class)
1918            protected MBDiscussionPersistence mbDiscussionPersistence;
1919            @BeanReference(type = MBMailingListLocalService.class)
1920            protected MBMailingListLocalService mbMailingListLocalService;
1921            @BeanReference(type = MBMailingListPersistence.class)
1922            protected MBMailingListPersistence mbMailingListPersistence;
1923            @BeanReference(type = MBMessageLocalService.class)
1924            protected MBMessageLocalService mbMessageLocalService;
1925            @BeanReference(type = MBMessageService.class)
1926            protected MBMessageService mbMessageService;
1927            @BeanReference(type = MBMessagePersistence.class)
1928            protected MBMessagePersistence mbMessagePersistence;
1929            @BeanReference(type = MBMessageFinder.class)
1930            protected MBMessageFinder mbMessageFinder;
1931            @BeanReference(type = MBStatsUserLocalService.class)
1932            protected MBStatsUserLocalService mbStatsUserLocalService;
1933            @BeanReference(type = MBStatsUserPersistence.class)
1934            protected MBStatsUserPersistence mbStatsUserPersistence;
1935            @BeanReference(type = MBThreadLocalService.class)
1936            protected MBThreadLocalService mbThreadLocalService;
1937            @BeanReference(type = MBThreadService.class)
1938            protected MBThreadService mbThreadService;
1939            @BeanReference(type = MBThreadPersistence.class)
1940            protected MBThreadPersistence mbThreadPersistence;
1941            @BeanReference(type = MBThreadFinder.class)
1942            protected MBThreadFinder mbThreadFinder;
1943            @BeanReference(type = MBThreadFlagLocalService.class)
1944            protected MBThreadFlagLocalService mbThreadFlagLocalService;
1945            @BeanReference(type = MBThreadFlagPersistence.class)
1946            protected MBThreadFlagPersistence mbThreadFlagPersistence;
1947            @BeanReference(type = CounterLocalService.class)
1948            protected CounterLocalService counterLocalService;
1949            @BeanReference(type = MailService.class)
1950            protected MailService mailService;
1951            @BeanReference(type = CompanyLocalService.class)
1952            protected CompanyLocalService companyLocalService;
1953            @BeanReference(type = CompanyService.class)
1954            protected CompanyService companyService;
1955            @BeanReference(type = CompanyPersistence.class)
1956            protected CompanyPersistence companyPersistence;
1957            @BeanReference(type = GroupLocalService.class)
1958            protected GroupLocalService groupLocalService;
1959            @BeanReference(type = GroupService.class)
1960            protected GroupService groupService;
1961            @BeanReference(type = GroupPersistence.class)
1962            protected GroupPersistence groupPersistence;
1963            @BeanReference(type = GroupFinder.class)
1964            protected GroupFinder groupFinder;
1965            @BeanReference(type = LockLocalService.class)
1966            protected LockLocalService lockLocalService;
1967            @BeanReference(type = LockPersistence.class)
1968            protected LockPersistence lockPersistence;
1969            @BeanReference(type = LockFinder.class)
1970            protected LockFinder lockFinder;
1971            @BeanReference(type = PortletPreferencesLocalService.class)
1972            protected PortletPreferencesLocalService portletPreferencesLocalService;
1973            @BeanReference(type = PortletPreferencesService.class)
1974            protected PortletPreferencesService portletPreferencesService;
1975            @BeanReference(type = PortletPreferencesPersistence.class)
1976            protected PortletPreferencesPersistence portletPreferencesPersistence;
1977            @BeanReference(type = PortletPreferencesFinder.class)
1978            protected PortletPreferencesFinder portletPreferencesFinder;
1979            @BeanReference(type = ResourceLocalService.class)
1980            protected ResourceLocalService resourceLocalService;
1981            @BeanReference(type = ResourceService.class)
1982            protected ResourceService resourceService;
1983            @BeanReference(type = ResourcePersistence.class)
1984            protected ResourcePersistence resourcePersistence;
1985            @BeanReference(type = ResourceFinder.class)
1986            protected ResourceFinder resourceFinder;
1987            @BeanReference(type = SubscriptionLocalService.class)
1988            protected SubscriptionLocalService subscriptionLocalService;
1989            @BeanReference(type = SubscriptionPersistence.class)
1990            protected SubscriptionPersistence subscriptionPersistence;
1991            @BeanReference(type = UserLocalService.class)
1992            protected UserLocalService userLocalService;
1993            @BeanReference(type = UserService.class)
1994            protected UserService userService;
1995            @BeanReference(type = UserPersistence.class)
1996            protected UserPersistence userPersistence;
1997            @BeanReference(type = UserFinder.class)
1998            protected UserFinder userFinder;
1999            @BeanReference(type = WorkflowInstanceLinkLocalService.class)
2000            protected WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
2001            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
2002            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
2003            @BeanReference(type = AssetEntryLocalService.class)
2004            protected AssetEntryLocalService assetEntryLocalService;
2005            @BeanReference(type = AssetEntryService.class)
2006            protected AssetEntryService assetEntryService;
2007            @BeanReference(type = AssetEntryPersistence.class)
2008            protected AssetEntryPersistence assetEntryPersistence;
2009            @BeanReference(type = AssetEntryFinder.class)
2010            protected AssetEntryFinder assetEntryFinder;
2011            @BeanReference(type = AssetLinkLocalService.class)
2012            protected AssetLinkLocalService assetLinkLocalService;
2013            @BeanReference(type = AssetLinkPersistence.class)
2014            protected AssetLinkPersistence assetLinkPersistence;
2015            @BeanReference(type = AssetTagLocalService.class)
2016            protected AssetTagLocalService assetTagLocalService;
2017            @BeanReference(type = AssetTagService.class)
2018            protected AssetTagService assetTagService;
2019            @BeanReference(type = AssetTagPersistence.class)
2020            protected AssetTagPersistence assetTagPersistence;
2021            @BeanReference(type = AssetTagFinder.class)
2022            protected AssetTagFinder assetTagFinder;
2023            @BeanReference(type = BlogsEntryLocalService.class)
2024            protected BlogsEntryLocalService blogsEntryLocalService;
2025            @BeanReference(type = BlogsEntryService.class)
2026            protected BlogsEntryService blogsEntryService;
2027            @BeanReference(type = BlogsEntryPersistence.class)
2028            protected BlogsEntryPersistence blogsEntryPersistence;
2029            @BeanReference(type = BlogsEntryFinder.class)
2030            protected BlogsEntryFinder blogsEntryFinder;
2031            @BeanReference(type = ExpandoValueLocalService.class)
2032            protected ExpandoValueLocalService expandoValueLocalService;
2033            @BeanReference(type = ExpandoValueService.class)
2034            protected ExpandoValueService expandoValueService;
2035            @BeanReference(type = ExpandoValuePersistence.class)
2036            protected ExpandoValuePersistence expandoValuePersistence;
2037            @BeanReference(type = RatingsStatsLocalService.class)
2038            protected RatingsStatsLocalService ratingsStatsLocalService;
2039            @BeanReference(type = RatingsStatsPersistence.class)
2040            protected RatingsStatsPersistence ratingsStatsPersistence;
2041            @BeanReference(type = RatingsStatsFinder.class)
2042            protected RatingsStatsFinder ratingsStatsFinder;
2043            @BeanReference(type = SocialActivityLocalService.class)
2044            protected SocialActivityLocalService socialActivityLocalService;
2045            @BeanReference(type = SocialActivityPersistence.class)
2046            protected SocialActivityPersistence socialActivityPersistence;
2047            @BeanReference(type = SocialActivityFinder.class)
2048            protected SocialActivityFinder socialActivityFinder;
2049            @BeanReference(type = WikiPageLocalService.class)
2050            protected WikiPageLocalService wikiPageLocalService;
2051            @BeanReference(type = WikiPageService.class)
2052            protected WikiPageService wikiPageService;
2053            @BeanReference(type = WikiPagePersistence.class)
2054            protected WikiPagePersistence wikiPagePersistence;
2055            @BeanReference(type = WikiPageFinder.class)
2056            protected WikiPageFinder wikiPageFinder;
2057            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
2058            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
2059            private static Log _log = LogFactoryUtil.getLog(MBMessageLocalServiceBaseImpl.class);
2060            private String _beanIdentifier;
2061    }