001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.dao.db.DB;
021    import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
024    import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
025    import com.liferay.portal.kernel.dao.orm.Criterion;
026    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
027    import com.liferay.portal.kernel.dao.orm.Disjunction;
028    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
029    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
030    import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
031    import com.liferay.portal.kernel.dao.orm.Projection;
032    import com.liferay.portal.kernel.dao.orm.Property;
033    import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil;
034    import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
035    import com.liferay.portal.kernel.exception.PortalException;
036    import com.liferay.portal.kernel.exception.SystemException;
037    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
038    import com.liferay.portal.kernel.search.Indexable;
039    import com.liferay.portal.kernel.search.IndexableType;
040    import com.liferay.portal.kernel.util.OrderByComparator;
041    import com.liferay.portal.kernel.workflow.WorkflowConstants;
042    import com.liferay.portal.model.PersistedModel;
043    import com.liferay.portal.service.BaseLocalServiceImpl;
044    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
045    import com.liferay.portal.service.persistence.ClassNamePersistence;
046    import com.liferay.portal.service.persistence.CompanyPersistence;
047    import com.liferay.portal.service.persistence.GroupFinder;
048    import com.liferay.portal.service.persistence.GroupPersistence;
049    import com.liferay.portal.service.persistence.PortletPreferencesFinder;
050    import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
051    import com.liferay.portal.service.persistence.SubscriptionPersistence;
052    import com.liferay.portal.service.persistence.UserFinder;
053    import com.liferay.portal.service.persistence.UserPersistence;
054    import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
055    import com.liferay.portal.util.PortalUtil;
056    
057    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
058    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
059    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
060    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
061    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
062    import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
063    import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
064    import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
065    import com.liferay.portlet.exportimport.lar.ExportImportHelperUtil;
066    import com.liferay.portlet.exportimport.lar.ManifestSummary;
067    import com.liferay.portlet.exportimport.lar.PortletDataContext;
068    import com.liferay.portlet.exportimport.lar.StagedModelDataHandler;
069    import com.liferay.portlet.exportimport.lar.StagedModelDataHandlerRegistryUtil;
070    import com.liferay.portlet.exportimport.lar.StagedModelDataHandlerUtil;
071    import com.liferay.portlet.exportimport.lar.StagedModelType;
072    import com.liferay.portlet.messageboards.model.MBMessage;
073    import com.liferay.portlet.messageboards.service.MBMessageLocalService;
074    import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
075    import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
076    import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
077    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
078    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
079    import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
080    import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
081    import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
082    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
083    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
084    
085    import java.io.Serializable;
086    
087    import java.util.List;
088    
089    import javax.sql.DataSource;
090    
091    /**
092     * Provides the base implementation for the message-boards message local service.
093     *
094     * <p>
095     * 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}.
096     * </p>
097     *
098     * @author Brian Wing Shun Chan
099     * @see com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl
100     * @see com.liferay.portlet.messageboards.service.MBMessageLocalServiceUtil
101     * @generated
102     */
103    @ProviderType
104    public abstract class MBMessageLocalServiceBaseImpl extends BaseLocalServiceImpl
105            implements MBMessageLocalService, IdentifiableOSGiService {
106            /*
107             * NOTE FOR DEVELOPERS:
108             *
109             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.messageboards.service.MBMessageLocalServiceUtil} to access the message-boards message local service.
110             */
111    
112            /**
113             * Adds the message-boards message to the database. Also notifies the appropriate model listeners.
114             *
115             * @param mbMessage the message-boards message
116             * @return the message-boards message that was added
117             */
118            @Indexable(type = IndexableType.REINDEX)
119            @Override
120            public MBMessage addMBMessage(MBMessage mbMessage) {
121                    mbMessage.setNew(true);
122    
123                    return mbMessagePersistence.update(mbMessage);
124            }
125    
126            /**
127             * Creates a new message-boards message with the primary key. Does not add the message-boards message to the database.
128             *
129             * @param messageId the primary key for the new message-boards message
130             * @return the new message-boards message
131             */
132            @Override
133            public MBMessage createMBMessage(long messageId) {
134                    return mbMessagePersistence.create(messageId);
135            }
136    
137            /**
138             * Deletes the message-boards message with the primary key from the database. Also notifies the appropriate model listeners.
139             *
140             * @param messageId the primary key of the message-boards message
141             * @return the message-boards message that was removed
142             * @throws PortalException if a message-boards message with the primary key could not be found
143             */
144            @Indexable(type = IndexableType.DELETE)
145            @Override
146            public MBMessage deleteMBMessage(long messageId) throws PortalException {
147                    return mbMessagePersistence.remove(messageId);
148            }
149    
150            /**
151             * Deletes the message-boards message from the database. Also notifies the appropriate model listeners.
152             *
153             * @param mbMessage the message-boards message
154             * @return the message-boards message that was removed
155             */
156            @Indexable(type = IndexableType.DELETE)
157            @Override
158            public MBMessage deleteMBMessage(MBMessage mbMessage) {
159                    return mbMessagePersistence.remove(mbMessage);
160            }
161    
162            @Override
163            public DynamicQuery dynamicQuery() {
164                    Class<?> clazz = getClass();
165    
166                    return DynamicQueryFactoryUtil.forClass(MBMessage.class,
167                            clazz.getClassLoader());
168            }
169    
170            /**
171             * Performs a dynamic query on the database and returns the matching rows.
172             *
173             * @param dynamicQuery the dynamic query
174             * @return the matching rows
175             */
176            @Override
177            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
178                    return mbMessagePersistence.findWithDynamicQuery(dynamicQuery);
179            }
180    
181            /**
182             * Performs a dynamic query on the database and returns a range of the matching rows.
183             *
184             * <p>
185             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBMessageModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
186             * </p>
187             *
188             * @param dynamicQuery the dynamic query
189             * @param start the lower bound of the range of model instances
190             * @param end the upper bound of the range of model instances (not inclusive)
191             * @return the range of matching rows
192             */
193            @Override
194            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
195                    int end) {
196                    return mbMessagePersistence.findWithDynamicQuery(dynamicQuery, start,
197                            end);
198            }
199    
200            /**
201             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
202             *
203             * <p>
204             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBMessageModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
205             * </p>
206             *
207             * @param dynamicQuery the dynamic query
208             * @param start the lower bound of the range of model instances
209             * @param end the upper bound of the range of model instances (not inclusive)
210             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
211             * @return the ordered range of matching rows
212             */
213            @Override
214            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
215                    int end, OrderByComparator<T> orderByComparator) {
216                    return mbMessagePersistence.findWithDynamicQuery(dynamicQuery, start,
217                            end, orderByComparator);
218            }
219    
220            /**
221             * Returns the number of rows matching the dynamic query.
222             *
223             * @param dynamicQuery the dynamic query
224             * @return the number of rows matching the dynamic query
225             */
226            @Override
227            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
228                    return mbMessagePersistence.countWithDynamicQuery(dynamicQuery);
229            }
230    
231            /**
232             * Returns the number of rows matching the dynamic query.
233             *
234             * @param dynamicQuery the dynamic query
235             * @param projection the projection to apply to the query
236             * @return the number of rows matching the dynamic query
237             */
238            @Override
239            public long dynamicQueryCount(DynamicQuery dynamicQuery,
240                    Projection projection) {
241                    return mbMessagePersistence.countWithDynamicQuery(dynamicQuery,
242                            projection);
243            }
244    
245            @Override
246            public MBMessage fetchMBMessage(long messageId) {
247                    return mbMessagePersistence.fetchByPrimaryKey(messageId);
248            }
249    
250            /**
251             * Returns the message-boards message matching the UUID and group.
252             *
253             * @param uuid the message-boards message's UUID
254             * @param groupId the primary key of the group
255             * @return the matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
256             */
257            @Override
258            public MBMessage fetchMBMessageByUuidAndGroupId(String uuid, long groupId) {
259                    return mbMessagePersistence.fetchByUUID_G(uuid, groupId);
260            }
261    
262            /**
263             * Returns the message-boards message with the primary key.
264             *
265             * @param messageId the primary key of the message-boards message
266             * @return the message-boards message
267             * @throws PortalException if a message-boards message with the primary key could not be found
268             */
269            @Override
270            public MBMessage getMBMessage(long messageId) throws PortalException {
271                    return mbMessagePersistence.findByPrimaryKey(messageId);
272            }
273    
274            @Override
275            public ActionableDynamicQuery getActionableDynamicQuery() {
276                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
277    
278                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.messageboards.service.MBMessageLocalServiceUtil.getService());
279                    actionableDynamicQuery.setClass(MBMessage.class);
280                    actionableDynamicQuery.setClassLoader(getClassLoader());
281    
282                    actionableDynamicQuery.setPrimaryKeyPropertyName("messageId");
283    
284                    return actionableDynamicQuery;
285            }
286    
287            protected void initActionableDynamicQuery(
288                    ActionableDynamicQuery actionableDynamicQuery) {
289                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.messageboards.service.MBMessageLocalServiceUtil.getService());
290                    actionableDynamicQuery.setClass(MBMessage.class);
291                    actionableDynamicQuery.setClassLoader(getClassLoader());
292    
293                    actionableDynamicQuery.setPrimaryKeyPropertyName("messageId");
294            }
295    
296            @Override
297            public ExportActionableDynamicQuery getExportActionableDynamicQuery(
298                    final PortletDataContext portletDataContext) {
299                    final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
300                                    @Override
301                                    public long performCount() throws PortalException {
302                                            ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
303    
304                                            StagedModelType stagedModelType = getStagedModelType();
305    
306                                            long modelAdditionCount = super.performCount();
307    
308                                            manifestSummary.addModelAdditionCount(stagedModelType,
309                                                    modelAdditionCount);
310    
311                                            long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
312                                                            stagedModelType);
313    
314                                            manifestSummary.addModelDeletionCount(stagedModelType,
315                                                    modelDeletionCount);
316    
317                                            return modelAdditionCount;
318                                    }
319                            };
320    
321                    initActionableDynamicQuery(exportActionableDynamicQuery);
322    
323                    exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
324                                    @Override
325                                    public void addCriteria(DynamicQuery dynamicQuery) {
326                                            Criterion modifiedDateCriterion = portletDataContext.getDateRangeCriteria(
327                                                            "modifiedDate");
328                                            Criterion statusDateCriterion = portletDataContext.getDateRangeCriteria(
329                                                            "statusDate");
330    
331                                            if ((modifiedDateCriterion != null) &&
332                                                            (statusDateCriterion != null)) {
333                                                    Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
334    
335                                                    disjunction.add(modifiedDateCriterion);
336                                                    disjunction.add(statusDateCriterion);
337    
338                                                    dynamicQuery.add(disjunction);
339                                            }
340    
341                                            StagedModelType stagedModelType = exportActionableDynamicQuery.getStagedModelType();
342    
343                                            long referrerClassNameId = stagedModelType.getReferrerClassNameId();
344    
345                                            Property classNameIdProperty = PropertyFactoryUtil.forName(
346                                                            "classNameId");
347    
348                                            if ((referrerClassNameId != StagedModelType.REFERRER_CLASS_NAME_ID_ALL) &&
349                                                            (referrerClassNameId != StagedModelType.REFERRER_CLASS_NAME_ID_ANY)) {
350                                                    dynamicQuery.add(classNameIdProperty.eq(
351                                                                    stagedModelType.getReferrerClassNameId()));
352                                            }
353                                            else if (referrerClassNameId == StagedModelType.REFERRER_CLASS_NAME_ID_ANY) {
354                                                    dynamicQuery.add(classNameIdProperty.isNotNull());
355                                            }
356    
357                                            Property workflowStatusProperty = PropertyFactoryUtil.forName(
358                                                            "status");
359    
360                                            if (portletDataContext.isInitialPublication()) {
361                                                    dynamicQuery.add(workflowStatusProperty.ne(
362                                                                    WorkflowConstants.STATUS_IN_TRASH));
363                                            }
364                                            else {
365                                                    StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(MBMessage.class.getName());
366    
367                                                    dynamicQuery.add(workflowStatusProperty.in(
368                                                                    stagedModelDataHandler.getExportableStatuses()));
369                                            }
370                                    }
371                            });
372    
373                    exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
374    
375                    exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
376    
377                    exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod<MBMessage>() {
378                                    @Override
379                                    public void performAction(MBMessage mbMessage)
380                                            throws PortalException {
381                                            StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
382                                                    mbMessage);
383                                    }
384                            });
385                    exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
386                                    PortalUtil.getClassNameId(MBMessage.class.getName()),
387                                    StagedModelType.REFERRER_CLASS_NAME_ID_ALL));
388    
389                    return exportActionableDynamicQuery;
390            }
391    
392            /**
393             * @throws PortalException
394             */
395            @Override
396            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
397                    throws PortalException {
398                    return mbMessageLocalService.deleteMBMessage((MBMessage)persistedModel);
399            }
400    
401            @Override
402            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
403                    throws PortalException {
404                    return mbMessagePersistence.findByPrimaryKey(primaryKeyObj);
405            }
406    
407            /**
408             * Returns all the message-boards messages matching the UUID and company.
409             *
410             * @param uuid the UUID of the message-boards messages
411             * @param companyId the primary key of the company
412             * @return the matching message-boards messages, or an empty list if no matches were found
413             */
414            @Override
415            public List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid,
416                    long companyId) {
417                    return mbMessagePersistence.findByUuid_C(uuid, companyId);
418            }
419    
420            /**
421             * Returns a range of message-boards messages matching the UUID and company.
422             *
423             * @param uuid the UUID of the message-boards messages
424             * @param companyId the primary key of the company
425             * @param start the lower bound of the range of message-boards messages
426             * @param end the upper bound of the range of message-boards messages (not inclusive)
427             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
428             * @return the range of matching message-boards messages, or an empty list if no matches were found
429             */
430            @Override
431            public List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid,
432                    long companyId, int start, int end,
433                    OrderByComparator<MBMessage> orderByComparator) {
434                    return mbMessagePersistence.findByUuid_C(uuid, companyId, start, end,
435                            orderByComparator);
436            }
437    
438            /**
439             * Returns the message-boards message matching the UUID and group.
440             *
441             * @param uuid the message-boards message's UUID
442             * @param groupId the primary key of the group
443             * @return the matching message-boards message
444             * @throws PortalException if a matching message-boards message could not be found
445             */
446            @Override
447            public MBMessage getMBMessageByUuidAndGroupId(String uuid, long groupId)
448                    throws PortalException {
449                    return mbMessagePersistence.findByUUID_G(uuid, groupId);
450            }
451    
452            /**
453             * Returns a range of all the message-boards messages.
454             *
455             * <p>
456             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBMessageModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
457             * </p>
458             *
459             * @param start the lower bound of the range of message-boards messages
460             * @param end the upper bound of the range of message-boards messages (not inclusive)
461             * @return the range of message-boards messages
462             */
463            @Override
464            public List<MBMessage> getMBMessages(int start, int end) {
465                    return mbMessagePersistence.findAll(start, end);
466            }
467    
468            /**
469             * Returns the number of message-boards messages.
470             *
471             * @return the number of message-boards messages
472             */
473            @Override
474            public int getMBMessagesCount() {
475                    return mbMessagePersistence.countAll();
476            }
477    
478            /**
479             * Updates the message-boards message in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
480             *
481             * @param mbMessage the message-boards message
482             * @return the message-boards message that was updated
483             */
484            @Indexable(type = IndexableType.REINDEX)
485            @Override
486            public MBMessage updateMBMessage(MBMessage mbMessage) {
487                    return mbMessagePersistence.update(mbMessage);
488            }
489    
490            /**
491             * Returns the message-boards message local service.
492             *
493             * @return the message-boards message local service
494             */
495            public MBMessageLocalService getMBMessageLocalService() {
496                    return mbMessageLocalService;
497            }
498    
499            /**
500             * Sets the message-boards message local service.
501             *
502             * @param mbMessageLocalService the message-boards message local service
503             */
504            public void setMBMessageLocalService(
505                    MBMessageLocalService mbMessageLocalService) {
506                    this.mbMessageLocalService = mbMessageLocalService;
507            }
508    
509            /**
510             * Returns the message-boards message remote service.
511             *
512             * @return the message-boards message remote service
513             */
514            public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
515                    return mbMessageService;
516            }
517    
518            /**
519             * Sets the message-boards message remote service.
520             *
521             * @param mbMessageService the message-boards message remote service
522             */
523            public void setMBMessageService(
524                    com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
525                    this.mbMessageService = mbMessageService;
526            }
527    
528            /**
529             * Returns the message-boards message persistence.
530             *
531             * @return the message-boards message persistence
532             */
533            public MBMessagePersistence getMBMessagePersistence() {
534                    return mbMessagePersistence;
535            }
536    
537            /**
538             * Sets the message-boards message persistence.
539             *
540             * @param mbMessagePersistence the message-boards message persistence
541             */
542            public void setMBMessagePersistence(
543                    MBMessagePersistence mbMessagePersistence) {
544                    this.mbMessagePersistence = mbMessagePersistence;
545            }
546    
547            /**
548             * Returns the message-boards message finder.
549             *
550             * @return the message-boards message finder
551             */
552            public MBMessageFinder getMBMessageFinder() {
553                    return mbMessageFinder;
554            }
555    
556            /**
557             * Sets the message-boards message finder.
558             *
559             * @param mbMessageFinder the message-boards message finder
560             */
561            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
562                    this.mbMessageFinder = mbMessageFinder;
563            }
564    
565            /**
566             * Returns the counter local service.
567             *
568             * @return the counter local service
569             */
570            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
571                    return counterLocalService;
572            }
573    
574            /**
575             * Sets the counter local service.
576             *
577             * @param counterLocalService the counter local service
578             */
579            public void setCounterLocalService(
580                    com.liferay.counter.service.CounterLocalService counterLocalService) {
581                    this.counterLocalService = counterLocalService;
582            }
583    
584            /**
585             * Returns the mail remote service.
586             *
587             * @return the mail remote service
588             */
589            public com.liferay.mail.service.MailService getMailService() {
590                    return mailService;
591            }
592    
593            /**
594             * Sets the mail remote service.
595             *
596             * @param mailService the mail remote service
597             */
598            public void setMailService(com.liferay.mail.service.MailService mailService) {
599                    this.mailService = mailService;
600            }
601    
602            /**
603             * Returns the class name local service.
604             *
605             * @return the class name local service
606             */
607            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
608                    return classNameLocalService;
609            }
610    
611            /**
612             * Sets the class name local service.
613             *
614             * @param classNameLocalService the class name local service
615             */
616            public void setClassNameLocalService(
617                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
618                    this.classNameLocalService = classNameLocalService;
619            }
620    
621            /**
622             * Returns the class name remote service.
623             *
624             * @return the class name remote service
625             */
626            public com.liferay.portal.service.ClassNameService getClassNameService() {
627                    return classNameService;
628            }
629    
630            /**
631             * Sets the class name remote service.
632             *
633             * @param classNameService the class name remote service
634             */
635            public void setClassNameService(
636                    com.liferay.portal.service.ClassNameService classNameService) {
637                    this.classNameService = classNameService;
638            }
639    
640            /**
641             * Returns the class name persistence.
642             *
643             * @return the class name persistence
644             */
645            public ClassNamePersistence getClassNamePersistence() {
646                    return classNamePersistence;
647            }
648    
649            /**
650             * Sets the class name persistence.
651             *
652             * @param classNamePersistence the class name persistence
653             */
654            public void setClassNamePersistence(
655                    ClassNamePersistence classNamePersistence) {
656                    this.classNamePersistence = classNamePersistence;
657            }
658    
659            /**
660             * Returns the company local service.
661             *
662             * @return the company local service
663             */
664            public com.liferay.portal.service.CompanyLocalService getCompanyLocalService() {
665                    return companyLocalService;
666            }
667    
668            /**
669             * Sets the company local service.
670             *
671             * @param companyLocalService the company local service
672             */
673            public void setCompanyLocalService(
674                    com.liferay.portal.service.CompanyLocalService companyLocalService) {
675                    this.companyLocalService = companyLocalService;
676            }
677    
678            /**
679             * Returns the company remote service.
680             *
681             * @return the company remote service
682             */
683            public com.liferay.portal.service.CompanyService getCompanyService() {
684                    return companyService;
685            }
686    
687            /**
688             * Sets the company remote service.
689             *
690             * @param companyService the company remote service
691             */
692            public void setCompanyService(
693                    com.liferay.portal.service.CompanyService companyService) {
694                    this.companyService = companyService;
695            }
696    
697            /**
698             * Returns the company persistence.
699             *
700             * @return the company persistence
701             */
702            public CompanyPersistence getCompanyPersistence() {
703                    return companyPersistence;
704            }
705    
706            /**
707             * Sets the company persistence.
708             *
709             * @param companyPersistence the company persistence
710             */
711            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
712                    this.companyPersistence = companyPersistence;
713            }
714    
715            /**
716             * Returns the group local service.
717             *
718             * @return the group local service
719             */
720            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
721                    return groupLocalService;
722            }
723    
724            /**
725             * Sets the group local service.
726             *
727             * @param groupLocalService the group local service
728             */
729            public void setGroupLocalService(
730                    com.liferay.portal.service.GroupLocalService groupLocalService) {
731                    this.groupLocalService = groupLocalService;
732            }
733    
734            /**
735             * Returns the group remote service.
736             *
737             * @return the group remote service
738             */
739            public com.liferay.portal.service.GroupService getGroupService() {
740                    return groupService;
741            }
742    
743            /**
744             * Sets the group remote service.
745             *
746             * @param groupService the group remote service
747             */
748            public void setGroupService(
749                    com.liferay.portal.service.GroupService groupService) {
750                    this.groupService = groupService;
751            }
752    
753            /**
754             * Returns the group persistence.
755             *
756             * @return the group persistence
757             */
758            public GroupPersistence getGroupPersistence() {
759                    return groupPersistence;
760            }
761    
762            /**
763             * Sets the group persistence.
764             *
765             * @param groupPersistence the group persistence
766             */
767            public void setGroupPersistence(GroupPersistence groupPersistence) {
768                    this.groupPersistence = groupPersistence;
769            }
770    
771            /**
772             * Returns the group finder.
773             *
774             * @return the group finder
775             */
776            public GroupFinder getGroupFinder() {
777                    return groupFinder;
778            }
779    
780            /**
781             * Sets the group finder.
782             *
783             * @param groupFinder the group finder
784             */
785            public void setGroupFinder(GroupFinder groupFinder) {
786                    this.groupFinder = groupFinder;
787            }
788    
789            /**
790             * Returns the portlet preferences local service.
791             *
792             * @return the portlet preferences local service
793             */
794            public com.liferay.portal.service.PortletPreferencesLocalService getPortletPreferencesLocalService() {
795                    return portletPreferencesLocalService;
796            }
797    
798            /**
799             * Sets the portlet preferences local service.
800             *
801             * @param portletPreferencesLocalService the portlet preferences local service
802             */
803            public void setPortletPreferencesLocalService(
804                    com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService) {
805                    this.portletPreferencesLocalService = portletPreferencesLocalService;
806            }
807    
808            /**
809             * Returns the portlet preferences remote service.
810             *
811             * @return the portlet preferences remote service
812             */
813            public com.liferay.portal.service.PortletPreferencesService getPortletPreferencesService() {
814                    return portletPreferencesService;
815            }
816    
817            /**
818             * Sets the portlet preferences remote service.
819             *
820             * @param portletPreferencesService the portlet preferences remote service
821             */
822            public void setPortletPreferencesService(
823                    com.liferay.portal.service.PortletPreferencesService portletPreferencesService) {
824                    this.portletPreferencesService = portletPreferencesService;
825            }
826    
827            /**
828             * Returns the portlet preferences persistence.
829             *
830             * @return the portlet preferences persistence
831             */
832            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
833                    return portletPreferencesPersistence;
834            }
835    
836            /**
837             * Sets the portlet preferences persistence.
838             *
839             * @param portletPreferencesPersistence the portlet preferences persistence
840             */
841            public void setPortletPreferencesPersistence(
842                    PortletPreferencesPersistence portletPreferencesPersistence) {
843                    this.portletPreferencesPersistence = portletPreferencesPersistence;
844            }
845    
846            /**
847             * Returns the portlet preferences finder.
848             *
849             * @return the portlet preferences finder
850             */
851            public PortletPreferencesFinder getPortletPreferencesFinder() {
852                    return portletPreferencesFinder;
853            }
854    
855            /**
856             * Sets the portlet preferences finder.
857             *
858             * @param portletPreferencesFinder the portlet preferences finder
859             */
860            public void setPortletPreferencesFinder(
861                    PortletPreferencesFinder portletPreferencesFinder) {
862                    this.portletPreferencesFinder = portletPreferencesFinder;
863            }
864    
865            /**
866             * Returns the resource local service.
867             *
868             * @return the resource local service
869             */
870            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
871                    return resourceLocalService;
872            }
873    
874            /**
875             * Sets the resource local service.
876             *
877             * @param resourceLocalService the resource local service
878             */
879            public void setResourceLocalService(
880                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
881                    this.resourceLocalService = resourceLocalService;
882            }
883    
884            /**
885             * Returns the subscription local service.
886             *
887             * @return the subscription local service
888             */
889            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
890                    return subscriptionLocalService;
891            }
892    
893            /**
894             * Sets the subscription local service.
895             *
896             * @param subscriptionLocalService the subscription local service
897             */
898            public void setSubscriptionLocalService(
899                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
900                    this.subscriptionLocalService = subscriptionLocalService;
901            }
902    
903            /**
904             * Returns the subscription persistence.
905             *
906             * @return the subscription persistence
907             */
908            public SubscriptionPersistence getSubscriptionPersistence() {
909                    return subscriptionPersistence;
910            }
911    
912            /**
913             * Sets the subscription persistence.
914             *
915             * @param subscriptionPersistence the subscription persistence
916             */
917            public void setSubscriptionPersistence(
918                    SubscriptionPersistence subscriptionPersistence) {
919                    this.subscriptionPersistence = subscriptionPersistence;
920            }
921    
922            /**
923             * Returns the user local service.
924             *
925             * @return the user local service
926             */
927            public com.liferay.portal.service.UserLocalService getUserLocalService() {
928                    return userLocalService;
929            }
930    
931            /**
932             * Sets the user local service.
933             *
934             * @param userLocalService the user local service
935             */
936            public void setUserLocalService(
937                    com.liferay.portal.service.UserLocalService userLocalService) {
938                    this.userLocalService = userLocalService;
939            }
940    
941            /**
942             * Returns the user remote service.
943             *
944             * @return the user remote service
945             */
946            public com.liferay.portal.service.UserService getUserService() {
947                    return userService;
948            }
949    
950            /**
951             * Sets the user remote service.
952             *
953             * @param userService the user remote service
954             */
955            public void setUserService(
956                    com.liferay.portal.service.UserService userService) {
957                    this.userService = userService;
958            }
959    
960            /**
961             * Returns the user persistence.
962             *
963             * @return the user persistence
964             */
965            public UserPersistence getUserPersistence() {
966                    return userPersistence;
967            }
968    
969            /**
970             * Sets the user persistence.
971             *
972             * @param userPersistence the user persistence
973             */
974            public void setUserPersistence(UserPersistence userPersistence) {
975                    this.userPersistence = userPersistence;
976            }
977    
978            /**
979             * Returns the user finder.
980             *
981             * @return the user finder
982             */
983            public UserFinder getUserFinder() {
984                    return userFinder;
985            }
986    
987            /**
988             * Sets the user finder.
989             *
990             * @param userFinder the user finder
991             */
992            public void setUserFinder(UserFinder userFinder) {
993                    this.userFinder = userFinder;
994            }
995    
996            /**
997             * Returns the workflow instance link local service.
998             *
999             * @return the workflow instance link local service
1000             */
1001            public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1002                    return workflowInstanceLinkLocalService;
1003            }
1004    
1005            /**
1006             * Sets the workflow instance link local service.
1007             *
1008             * @param workflowInstanceLinkLocalService the workflow instance link local service
1009             */
1010            public void setWorkflowInstanceLinkLocalService(
1011                    com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1012                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1013            }
1014    
1015            /**
1016             * Returns the workflow instance link persistence.
1017             *
1018             * @return the workflow instance link persistence
1019             */
1020            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1021                    return workflowInstanceLinkPersistence;
1022            }
1023    
1024            /**
1025             * Sets the workflow instance link persistence.
1026             *
1027             * @param workflowInstanceLinkPersistence the workflow instance link persistence
1028             */
1029            public void setWorkflowInstanceLinkPersistence(
1030                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1031                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1032            }
1033    
1034            /**
1035             * Returns the asset entry local service.
1036             *
1037             * @return the asset entry local service
1038             */
1039            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
1040                    return assetEntryLocalService;
1041            }
1042    
1043            /**
1044             * Sets the asset entry local service.
1045             *
1046             * @param assetEntryLocalService the asset entry local service
1047             */
1048            public void setAssetEntryLocalService(
1049                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
1050                    this.assetEntryLocalService = assetEntryLocalService;
1051            }
1052    
1053            /**
1054             * Returns the asset entry remote service.
1055             *
1056             * @return the asset entry remote service
1057             */
1058            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
1059                    return assetEntryService;
1060            }
1061    
1062            /**
1063             * Sets the asset entry remote service.
1064             *
1065             * @param assetEntryService the asset entry remote service
1066             */
1067            public void setAssetEntryService(
1068                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
1069                    this.assetEntryService = assetEntryService;
1070            }
1071    
1072            /**
1073             * Returns the asset entry persistence.
1074             *
1075             * @return the asset entry persistence
1076             */
1077            public AssetEntryPersistence getAssetEntryPersistence() {
1078                    return assetEntryPersistence;
1079            }
1080    
1081            /**
1082             * Sets the asset entry persistence.
1083             *
1084             * @param assetEntryPersistence the asset entry persistence
1085             */
1086            public void setAssetEntryPersistence(
1087                    AssetEntryPersistence assetEntryPersistence) {
1088                    this.assetEntryPersistence = assetEntryPersistence;
1089            }
1090    
1091            /**
1092             * Returns the asset entry finder.
1093             *
1094             * @return the asset entry finder
1095             */
1096            public AssetEntryFinder getAssetEntryFinder() {
1097                    return assetEntryFinder;
1098            }
1099    
1100            /**
1101             * Sets the asset entry finder.
1102             *
1103             * @param assetEntryFinder the asset entry finder
1104             */
1105            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1106                    this.assetEntryFinder = assetEntryFinder;
1107            }
1108    
1109            /**
1110             * Returns the asset link local service.
1111             *
1112             * @return the asset link local service
1113             */
1114            public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
1115                    return assetLinkLocalService;
1116            }
1117    
1118            /**
1119             * Sets the asset link local service.
1120             *
1121             * @param assetLinkLocalService the asset link local service
1122             */
1123            public void setAssetLinkLocalService(
1124                    com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
1125                    this.assetLinkLocalService = assetLinkLocalService;
1126            }
1127    
1128            /**
1129             * Returns the asset link persistence.
1130             *
1131             * @return the asset link persistence
1132             */
1133            public AssetLinkPersistence getAssetLinkPersistence() {
1134                    return assetLinkPersistence;
1135            }
1136    
1137            /**
1138             * Sets the asset link persistence.
1139             *
1140             * @param assetLinkPersistence the asset link persistence
1141             */
1142            public void setAssetLinkPersistence(
1143                    AssetLinkPersistence assetLinkPersistence) {
1144                    this.assetLinkPersistence = assetLinkPersistence;
1145            }
1146    
1147            /**
1148             * Returns the asset tag local service.
1149             *
1150             * @return the asset tag local service
1151             */
1152            public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
1153                    return assetTagLocalService;
1154            }
1155    
1156            /**
1157             * Sets the asset tag local service.
1158             *
1159             * @param assetTagLocalService the asset tag local service
1160             */
1161            public void setAssetTagLocalService(
1162                    com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
1163                    this.assetTagLocalService = assetTagLocalService;
1164            }
1165    
1166            /**
1167             * Returns the asset tag remote service.
1168             *
1169             * @return the asset tag remote service
1170             */
1171            public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
1172                    return assetTagService;
1173            }
1174    
1175            /**
1176             * Sets the asset tag remote service.
1177             *
1178             * @param assetTagService the asset tag remote service
1179             */
1180            public void setAssetTagService(
1181                    com.liferay.portlet.asset.service.AssetTagService assetTagService) {
1182                    this.assetTagService = assetTagService;
1183            }
1184    
1185            /**
1186             * Returns the asset tag persistence.
1187             *
1188             * @return the asset tag persistence
1189             */
1190            public AssetTagPersistence getAssetTagPersistence() {
1191                    return assetTagPersistence;
1192            }
1193    
1194            /**
1195             * Sets the asset tag persistence.
1196             *
1197             * @param assetTagPersistence the asset tag persistence
1198             */
1199            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1200                    this.assetTagPersistence = assetTagPersistence;
1201            }
1202    
1203            /**
1204             * Returns the asset tag finder.
1205             *
1206             * @return the asset tag finder
1207             */
1208            public AssetTagFinder getAssetTagFinder() {
1209                    return assetTagFinder;
1210            }
1211    
1212            /**
1213             * Sets the asset tag finder.
1214             *
1215             * @param assetTagFinder the asset tag finder
1216             */
1217            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1218                    this.assetTagFinder = assetTagFinder;
1219            }
1220    
1221            /**
1222             * Returns the blogs entry local service.
1223             *
1224             * @return the blogs entry local service
1225             */
1226            public com.liferay.portlet.blogs.service.BlogsEntryLocalService getBlogsEntryLocalService() {
1227                    return blogsEntryLocalService;
1228            }
1229    
1230            /**
1231             * Sets the blogs entry local service.
1232             *
1233             * @param blogsEntryLocalService the blogs entry local service
1234             */
1235            public void setBlogsEntryLocalService(
1236                    com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService) {
1237                    this.blogsEntryLocalService = blogsEntryLocalService;
1238            }
1239    
1240            /**
1241             * Returns the blogs entry remote service.
1242             *
1243             * @return the blogs entry remote service
1244             */
1245            public com.liferay.portlet.blogs.service.BlogsEntryService getBlogsEntryService() {
1246                    return blogsEntryService;
1247            }
1248    
1249            /**
1250             * Sets the blogs entry remote service.
1251             *
1252             * @param blogsEntryService the blogs entry remote service
1253             */
1254            public void setBlogsEntryService(
1255                    com.liferay.portlet.blogs.service.BlogsEntryService blogsEntryService) {
1256                    this.blogsEntryService = blogsEntryService;
1257            }
1258    
1259            /**
1260             * Returns the blogs entry persistence.
1261             *
1262             * @return the blogs entry persistence
1263             */
1264            public BlogsEntryPersistence getBlogsEntryPersistence() {
1265                    return blogsEntryPersistence;
1266            }
1267    
1268            /**
1269             * Sets the blogs entry persistence.
1270             *
1271             * @param blogsEntryPersistence the blogs entry persistence
1272             */
1273            public void setBlogsEntryPersistence(
1274                    BlogsEntryPersistence blogsEntryPersistence) {
1275                    this.blogsEntryPersistence = blogsEntryPersistence;
1276            }
1277    
1278            /**
1279             * Returns the blogs entry finder.
1280             *
1281             * @return the blogs entry finder
1282             */
1283            public BlogsEntryFinder getBlogsEntryFinder() {
1284                    return blogsEntryFinder;
1285            }
1286    
1287            /**
1288             * Sets the blogs entry finder.
1289             *
1290             * @param blogsEntryFinder the blogs entry finder
1291             */
1292            public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
1293                    this.blogsEntryFinder = blogsEntryFinder;
1294            }
1295    
1296            /**
1297             * Returns the expando row local service.
1298             *
1299             * @return the expando row local service
1300             */
1301            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
1302                    return expandoRowLocalService;
1303            }
1304    
1305            /**
1306             * Sets the expando row local service.
1307             *
1308             * @param expandoRowLocalService the expando row local service
1309             */
1310            public void setExpandoRowLocalService(
1311                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
1312                    this.expandoRowLocalService = expandoRowLocalService;
1313            }
1314    
1315            /**
1316             * Returns the expando row persistence.
1317             *
1318             * @return the expando row persistence
1319             */
1320            public ExpandoRowPersistence getExpandoRowPersistence() {
1321                    return expandoRowPersistence;
1322            }
1323    
1324            /**
1325             * Sets the expando row persistence.
1326             *
1327             * @param expandoRowPersistence the expando row persistence
1328             */
1329            public void setExpandoRowPersistence(
1330                    ExpandoRowPersistence expandoRowPersistence) {
1331                    this.expandoRowPersistence = expandoRowPersistence;
1332            }
1333    
1334            /**
1335             * Returns the message boards category local service.
1336             *
1337             * @return the message boards category local service
1338             */
1339            public com.liferay.portlet.messageboards.service.MBCategoryLocalService getMBCategoryLocalService() {
1340                    return mbCategoryLocalService;
1341            }
1342    
1343            /**
1344             * Sets the message boards category local service.
1345             *
1346             * @param mbCategoryLocalService the message boards category local service
1347             */
1348            public void setMBCategoryLocalService(
1349                    com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService) {
1350                    this.mbCategoryLocalService = mbCategoryLocalService;
1351            }
1352    
1353            /**
1354             * Returns the message boards category remote service.
1355             *
1356             * @return the message boards category remote service
1357             */
1358            public com.liferay.portlet.messageboards.service.MBCategoryService getMBCategoryService() {
1359                    return mbCategoryService;
1360            }
1361    
1362            /**
1363             * Sets the message boards category remote service.
1364             *
1365             * @param mbCategoryService the message boards category remote service
1366             */
1367            public void setMBCategoryService(
1368                    com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService) {
1369                    this.mbCategoryService = mbCategoryService;
1370            }
1371    
1372            /**
1373             * Returns the message boards category persistence.
1374             *
1375             * @return the message boards category persistence
1376             */
1377            public MBCategoryPersistence getMBCategoryPersistence() {
1378                    return mbCategoryPersistence;
1379            }
1380    
1381            /**
1382             * Sets the message boards category persistence.
1383             *
1384             * @param mbCategoryPersistence the message boards category persistence
1385             */
1386            public void setMBCategoryPersistence(
1387                    MBCategoryPersistence mbCategoryPersistence) {
1388                    this.mbCategoryPersistence = mbCategoryPersistence;
1389            }
1390    
1391            /**
1392             * Returns the message boards category finder.
1393             *
1394             * @return the message boards category finder
1395             */
1396            public MBCategoryFinder getMBCategoryFinder() {
1397                    return mbCategoryFinder;
1398            }
1399    
1400            /**
1401             * Sets the message boards category finder.
1402             *
1403             * @param mbCategoryFinder the message boards category finder
1404             */
1405            public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
1406                    this.mbCategoryFinder = mbCategoryFinder;
1407            }
1408    
1409            /**
1410             * Returns the message boards discussion local service.
1411             *
1412             * @return the message boards discussion local service
1413             */
1414            public com.liferay.portlet.messageboards.service.MBDiscussionLocalService getMBDiscussionLocalService() {
1415                    return mbDiscussionLocalService;
1416            }
1417    
1418            /**
1419             * Sets the message boards discussion local service.
1420             *
1421             * @param mbDiscussionLocalService the message boards discussion local service
1422             */
1423            public void setMBDiscussionLocalService(
1424                    com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService) {
1425                    this.mbDiscussionLocalService = mbDiscussionLocalService;
1426            }
1427    
1428            /**
1429             * Returns the message boards discussion persistence.
1430             *
1431             * @return the message boards discussion persistence
1432             */
1433            public MBDiscussionPersistence getMBDiscussionPersistence() {
1434                    return mbDiscussionPersistence;
1435            }
1436    
1437            /**
1438             * Sets the message boards discussion persistence.
1439             *
1440             * @param mbDiscussionPersistence the message boards discussion persistence
1441             */
1442            public void setMBDiscussionPersistence(
1443                    MBDiscussionPersistence mbDiscussionPersistence) {
1444                    this.mbDiscussionPersistence = mbDiscussionPersistence;
1445            }
1446    
1447            /**
1448             * Returns the ratings stats local service.
1449             *
1450             * @return the ratings stats local service
1451             */
1452            public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
1453                    return ratingsStatsLocalService;
1454            }
1455    
1456            /**
1457             * Sets the ratings stats local service.
1458             *
1459             * @param ratingsStatsLocalService the ratings stats local service
1460             */
1461            public void setRatingsStatsLocalService(
1462                    com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
1463                    this.ratingsStatsLocalService = ratingsStatsLocalService;
1464            }
1465    
1466            /**
1467             * Returns the ratings stats persistence.
1468             *
1469             * @return the ratings stats persistence
1470             */
1471            public RatingsStatsPersistence getRatingsStatsPersistence() {
1472                    return ratingsStatsPersistence;
1473            }
1474    
1475            /**
1476             * Sets the ratings stats persistence.
1477             *
1478             * @param ratingsStatsPersistence the ratings stats persistence
1479             */
1480            public void setRatingsStatsPersistence(
1481                    RatingsStatsPersistence ratingsStatsPersistence) {
1482                    this.ratingsStatsPersistence = ratingsStatsPersistence;
1483            }
1484    
1485            /**
1486             * Returns the ratings stats finder.
1487             *
1488             * @return the ratings stats finder
1489             */
1490            public RatingsStatsFinder getRatingsStatsFinder() {
1491                    return ratingsStatsFinder;
1492            }
1493    
1494            /**
1495             * Sets the ratings stats finder.
1496             *
1497             * @param ratingsStatsFinder the ratings stats finder
1498             */
1499            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1500                    this.ratingsStatsFinder = ratingsStatsFinder;
1501            }
1502    
1503            /**
1504             * Returns the message boards stats user local service.
1505             *
1506             * @return the message boards stats user local service
1507             */
1508            public com.liferay.portlet.messageboards.service.MBStatsUserLocalService getMBStatsUserLocalService() {
1509                    return mbStatsUserLocalService;
1510            }
1511    
1512            /**
1513             * Sets the message boards stats user local service.
1514             *
1515             * @param mbStatsUserLocalService the message boards stats user local service
1516             */
1517            public void setMBStatsUserLocalService(
1518                    com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService) {
1519                    this.mbStatsUserLocalService = mbStatsUserLocalService;
1520            }
1521    
1522            /**
1523             * Returns the message boards stats user persistence.
1524             *
1525             * @return the message boards stats user persistence
1526             */
1527            public MBStatsUserPersistence getMBStatsUserPersistence() {
1528                    return mbStatsUserPersistence;
1529            }
1530    
1531            /**
1532             * Sets the message boards stats user persistence.
1533             *
1534             * @param mbStatsUserPersistence the message boards stats user persistence
1535             */
1536            public void setMBStatsUserPersistence(
1537                    MBStatsUserPersistence mbStatsUserPersistence) {
1538                    this.mbStatsUserPersistence = mbStatsUserPersistence;
1539            }
1540    
1541            /**
1542             * Returns the message boards thread local service.
1543             *
1544             * @return the message boards thread local service
1545             */
1546            public com.liferay.portlet.messageboards.service.MBThreadLocalService getMBThreadLocalService() {
1547                    return mbThreadLocalService;
1548            }
1549    
1550            /**
1551             * Sets the message boards thread local service.
1552             *
1553             * @param mbThreadLocalService the message boards thread local service
1554             */
1555            public void setMBThreadLocalService(
1556                    com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService) {
1557                    this.mbThreadLocalService = mbThreadLocalService;
1558            }
1559    
1560            /**
1561             * Returns the message boards thread remote service.
1562             *
1563             * @return the message boards thread remote service
1564             */
1565            public com.liferay.portlet.messageboards.service.MBThreadService getMBThreadService() {
1566                    return mbThreadService;
1567            }
1568    
1569            /**
1570             * Sets the message boards thread remote service.
1571             *
1572             * @param mbThreadService the message boards thread remote service
1573             */
1574            public void setMBThreadService(
1575                    com.liferay.portlet.messageboards.service.MBThreadService mbThreadService) {
1576                    this.mbThreadService = mbThreadService;
1577            }
1578    
1579            /**
1580             * Returns the message boards thread persistence.
1581             *
1582             * @return the message boards thread persistence
1583             */
1584            public MBThreadPersistence getMBThreadPersistence() {
1585                    return mbThreadPersistence;
1586            }
1587    
1588            /**
1589             * Sets the message boards thread persistence.
1590             *
1591             * @param mbThreadPersistence the message boards thread persistence
1592             */
1593            public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
1594                    this.mbThreadPersistence = mbThreadPersistence;
1595            }
1596    
1597            /**
1598             * Returns the message boards thread finder.
1599             *
1600             * @return the message boards thread finder
1601             */
1602            public MBThreadFinder getMBThreadFinder() {
1603                    return mbThreadFinder;
1604            }
1605    
1606            /**
1607             * Sets the message boards thread finder.
1608             *
1609             * @param mbThreadFinder the message boards thread finder
1610             */
1611            public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
1612                    this.mbThreadFinder = mbThreadFinder;
1613            }
1614    
1615            public void afterPropertiesSet() {
1616                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBMessage",
1617                            mbMessageLocalService);
1618            }
1619    
1620            public void destroy() {
1621                    persistedModelLocalServiceRegistry.unregister(
1622                            "com.liferay.portlet.messageboards.model.MBMessage");
1623            }
1624    
1625            /**
1626             * Returns the OSGi service identifier.
1627             *
1628             * @return the OSGi service identifier
1629             */
1630            @Override
1631            public String getOSGiServiceIdentifier() {
1632                    return MBMessageLocalService.class.getName();
1633            }
1634    
1635            protected Class<?> getModelClass() {
1636                    return MBMessage.class;
1637            }
1638    
1639            protected String getModelClassName() {
1640                    return MBMessage.class.getName();
1641            }
1642    
1643            /**
1644             * Performs a SQL query.
1645             *
1646             * @param sql the sql query
1647             */
1648            protected void runSQL(String sql) {
1649                    try {
1650                            DataSource dataSource = mbMessagePersistence.getDataSource();
1651    
1652                            DB db = DBFactoryUtil.getDB();
1653    
1654                            sql = db.buildSQL(sql);
1655                            sql = PortalUtil.transformSQL(sql);
1656    
1657                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1658                                            sql, new int[0]);
1659    
1660                            sqlUpdate.update();
1661                    }
1662                    catch (Exception e) {
1663                            throw new SystemException(e);
1664                    }
1665            }
1666    
1667            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1668            protected MBMessageLocalService mbMessageLocalService;
1669            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1670            protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1671            @BeanReference(type = MBMessagePersistence.class)
1672            protected MBMessagePersistence mbMessagePersistence;
1673            @BeanReference(type = MBMessageFinder.class)
1674            protected MBMessageFinder mbMessageFinder;
1675            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1676            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1677            @BeanReference(type = com.liferay.mail.service.MailService.class)
1678            protected com.liferay.mail.service.MailService mailService;
1679            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1680            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1681            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1682            protected com.liferay.portal.service.ClassNameService classNameService;
1683            @BeanReference(type = ClassNamePersistence.class)
1684            protected ClassNamePersistence classNamePersistence;
1685            @BeanReference(type = com.liferay.portal.service.CompanyLocalService.class)
1686            protected com.liferay.portal.service.CompanyLocalService companyLocalService;
1687            @BeanReference(type = com.liferay.portal.service.CompanyService.class)
1688            protected com.liferay.portal.service.CompanyService companyService;
1689            @BeanReference(type = CompanyPersistence.class)
1690            protected CompanyPersistence companyPersistence;
1691            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1692            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1693            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1694            protected com.liferay.portal.service.GroupService groupService;
1695            @BeanReference(type = GroupPersistence.class)
1696            protected GroupPersistence groupPersistence;
1697            @BeanReference(type = GroupFinder.class)
1698            protected GroupFinder groupFinder;
1699            @BeanReference(type = com.liferay.portal.service.PortletPreferencesLocalService.class)
1700            protected com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService;
1701            @BeanReference(type = com.liferay.portal.service.PortletPreferencesService.class)
1702            protected com.liferay.portal.service.PortletPreferencesService portletPreferencesService;
1703            @BeanReference(type = PortletPreferencesPersistence.class)
1704            protected PortletPreferencesPersistence portletPreferencesPersistence;
1705            @BeanReference(type = PortletPreferencesFinder.class)
1706            protected PortletPreferencesFinder portletPreferencesFinder;
1707            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1708            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1709            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1710            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1711            @BeanReference(type = SubscriptionPersistence.class)
1712            protected SubscriptionPersistence subscriptionPersistence;
1713            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1714            protected com.liferay.portal.service.UserLocalService userLocalService;
1715            @BeanReference(type = com.liferay.portal.service.UserService.class)
1716            protected com.liferay.portal.service.UserService userService;
1717            @BeanReference(type = UserPersistence.class)
1718            protected UserPersistence userPersistence;
1719            @BeanReference(type = UserFinder.class)
1720            protected UserFinder userFinder;
1721            @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1722            protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1723            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1724            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1725            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1726            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1727            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1728            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1729            @BeanReference(type = AssetEntryPersistence.class)
1730            protected AssetEntryPersistence assetEntryPersistence;
1731            @BeanReference(type = AssetEntryFinder.class)
1732            protected AssetEntryFinder assetEntryFinder;
1733            @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1734            protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1735            @BeanReference(type = AssetLinkPersistence.class)
1736            protected AssetLinkPersistence assetLinkPersistence;
1737            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1738            protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1739            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1740            protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1741            @BeanReference(type = AssetTagPersistence.class)
1742            protected AssetTagPersistence assetTagPersistence;
1743            @BeanReference(type = AssetTagFinder.class)
1744            protected AssetTagFinder assetTagFinder;
1745            @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryLocalService.class)
1746            protected com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService;
1747            @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryService.class)
1748            protected com.liferay.portlet.blogs.service.BlogsEntryService blogsEntryService;
1749            @BeanReference(type = BlogsEntryPersistence.class)
1750            protected BlogsEntryPersistence blogsEntryPersistence;
1751            @BeanReference(type = BlogsEntryFinder.class)
1752            protected BlogsEntryFinder blogsEntryFinder;
1753            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1754            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1755            @BeanReference(type = ExpandoRowPersistence.class)
1756            protected ExpandoRowPersistence expandoRowPersistence;
1757            @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryLocalService.class)
1758            protected com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService;
1759            @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryService.class)
1760            protected com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService;
1761            @BeanReference(type = MBCategoryPersistence.class)
1762            protected MBCategoryPersistence mbCategoryPersistence;
1763            @BeanReference(type = MBCategoryFinder.class)
1764            protected MBCategoryFinder mbCategoryFinder;
1765            @BeanReference(type = com.liferay.portlet.messageboards.service.MBDiscussionLocalService.class)
1766            protected com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService;
1767            @BeanReference(type = MBDiscussionPersistence.class)
1768            protected MBDiscussionPersistence mbDiscussionPersistence;
1769            @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
1770            protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
1771            @BeanReference(type = RatingsStatsPersistence.class)
1772            protected RatingsStatsPersistence ratingsStatsPersistence;
1773            @BeanReference(type = RatingsStatsFinder.class)
1774            protected RatingsStatsFinder ratingsStatsFinder;
1775            @BeanReference(type = com.liferay.portlet.messageboards.service.MBStatsUserLocalService.class)
1776            protected com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService;
1777            @BeanReference(type = MBStatsUserPersistence.class)
1778            protected MBStatsUserPersistence mbStatsUserPersistence;
1779            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadLocalService.class)
1780            protected com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService;
1781            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadService.class)
1782            protected com.liferay.portlet.messageboards.service.MBThreadService mbThreadService;
1783            @BeanReference(type = MBThreadPersistence.class)
1784            protected MBThreadPersistence mbThreadPersistence;
1785            @BeanReference(type = MBThreadFinder.class)
1786            protected MBThreadFinder mbThreadFinder;
1787            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1788            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1789    }