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