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.DefaultActionableDynamicQuery;
027    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
028    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
029    import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
030    import com.liferay.portal.kernel.dao.orm.Projection;
031    import com.liferay.portal.kernel.dao.orm.Property;
032    import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil;
033    import com.liferay.portal.kernel.exception.PortalException;
034    import com.liferay.portal.kernel.exception.SystemException;
035    import com.liferay.portal.kernel.lar.ExportImportHelperUtil;
036    import com.liferay.portal.kernel.lar.ManifestSummary;
037    import com.liferay.portal.kernel.lar.PortletDataContext;
038    import com.liferay.portal.kernel.lar.StagedModelDataHandler;
039    import com.liferay.portal.kernel.lar.StagedModelDataHandlerRegistryUtil;
040    import com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil;
041    import com.liferay.portal.kernel.lar.StagedModelType;
042    import com.liferay.portal.kernel.search.Indexable;
043    import com.liferay.portal.kernel.search.IndexableType;
044    import com.liferay.portal.kernel.util.OrderByComparator;
045    import com.liferay.portal.model.PersistedModel;
046    import com.liferay.portal.service.BaseLocalServiceImpl;
047    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
048    import com.liferay.portal.service.persistence.ClassNamePersistence;
049    import com.liferay.portal.service.persistence.CompanyPersistence;
050    import com.liferay.portal.service.persistence.GroupFinder;
051    import com.liferay.portal.service.persistence.GroupPersistence;
052    import com.liferay.portal.service.persistence.LockFinder;
053    import com.liferay.portal.service.persistence.LockPersistence;
054    import com.liferay.portal.service.persistence.PortletPreferencesFinder;
055    import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
056    import com.liferay.portal.service.persistence.SubscriptionPersistence;
057    import com.liferay.portal.service.persistence.UserFinder;
058    import com.liferay.portal.service.persistence.UserPersistence;
059    import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
060    import com.liferay.portal.util.PortalUtil;
061    
062    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
063    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
064    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
065    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
066    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
067    import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
068    import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
069    import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
070    import com.liferay.portlet.messageboards.model.MBMessage;
071    import com.liferay.portlet.messageboards.service.MBMessageLocalService;
072    import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
073    import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
074    import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
075    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
076    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
077    import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
078    import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
079    import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
080    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
081    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
082    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
083    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
084    import com.liferay.portlet.wiki.service.persistence.WikiPageFinder;
085    import com.liferay.portlet.wiki.service.persistence.WikiPagePersistence;
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 that match the dynamic query.
224             *
225             * @param dynamicQuery the dynamic query
226             * @return the number of rows that match 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 that match 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 that match 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                                            portletDataContext.addDateRangeCriteria(dynamicQuery,
329                                                    "modifiedDate");
330    
331                                            StagedModelType stagedModelType = exportActionableDynamicQuery.getStagedModelType();
332    
333                                            if (stagedModelType.getReferrerClassNameId() >= 0) {
334                                                    Property classNameIdProperty = PropertyFactoryUtil.forName(
335                                                                    "classNameId");
336    
337                                                    dynamicQuery.add(classNameIdProperty.eq(
338                                                                    stagedModelType.getReferrerClassNameId()));
339                                            }
340    
341                                            StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(MBMessage.class.getName());
342    
343                                            Property workflowStatusProperty = PropertyFactoryUtil.forName(
344                                                            "status");
345    
346                                            dynamicQuery.add(workflowStatusProperty.in(
347                                                            stagedModelDataHandler.getExportableStatuses()));
348                                    }
349                            });
350    
351                    exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
352    
353                    exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
354    
355                    exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
356                                    @Override
357                                    public void performAction(Object object)
358                                            throws PortalException {
359                                            MBMessage stagedModel = (MBMessage)object;
360    
361                                            StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
362                                                    stagedModel);
363                                    }
364                            });
365                    exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
366                                    PortalUtil.getClassNameId(MBMessage.class.getName())));
367    
368                    return exportActionableDynamicQuery;
369            }
370    
371            /**
372             * @throws PortalException
373             */
374            @Override
375            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
376                    throws PortalException {
377                    return mbMessageLocalService.deleteMBMessage((MBMessage)persistedModel);
378            }
379    
380            @Override
381            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
382                    throws PortalException {
383                    return mbMessagePersistence.findByPrimaryKey(primaryKeyObj);
384            }
385    
386            @Override
387            public List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid,
388                    long companyId) {
389                    return mbMessagePersistence.findByUuid_C(uuid, companyId);
390            }
391    
392            @Override
393            public List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid,
394                    long companyId, int start, int end,
395                    OrderByComparator<MBMessage> orderByComparator) {
396                    return mbMessagePersistence.findByUuid_C(uuid, companyId, start, end,
397                            orderByComparator);
398            }
399    
400            /**
401             * Returns the message-boards message matching the UUID and group.
402             *
403             * @param uuid the message-boards message's UUID
404             * @param groupId the primary key of the group
405             * @return the matching message-boards message
406             * @throws PortalException if a matching message-boards message could not be found
407             */
408            @Override
409            public MBMessage getMBMessageByUuidAndGroupId(String uuid, long groupId)
410                    throws PortalException {
411                    return mbMessagePersistence.findByUUID_G(uuid, groupId);
412            }
413    
414            /**
415             * Returns a range of all the message-boards messages.
416             *
417             * <p>
418             * 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.
419             * </p>
420             *
421             * @param start the lower bound of the range of message-boards messages
422             * @param end the upper bound of the range of message-boards messages (not inclusive)
423             * @return the range of message-boards messages
424             */
425            @Override
426            public List<MBMessage> getMBMessages(int start, int end) {
427                    return mbMessagePersistence.findAll(start, end);
428            }
429    
430            /**
431             * Returns the number of message-boards messages.
432             *
433             * @return the number of message-boards messages
434             */
435            @Override
436            public int getMBMessagesCount() {
437                    return mbMessagePersistence.countAll();
438            }
439    
440            /**
441             * Updates the message-boards message in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
442             *
443             * @param mbMessage the message-boards message
444             * @return the message-boards message that was updated
445             */
446            @Indexable(type = IndexableType.REINDEX)
447            @Override
448            public MBMessage updateMBMessage(MBMessage mbMessage) {
449                    return mbMessagePersistence.update(mbMessage);
450            }
451    
452            /**
453             * Returns the message-boards message local service.
454             *
455             * @return the message-boards message local service
456             */
457            public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
458                    return mbMessageLocalService;
459            }
460    
461            /**
462             * Sets the message-boards message local service.
463             *
464             * @param mbMessageLocalService the message-boards message local service
465             */
466            public void setMBMessageLocalService(
467                    com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
468                    this.mbMessageLocalService = mbMessageLocalService;
469            }
470    
471            /**
472             * Returns the message-boards message remote service.
473             *
474             * @return the message-boards message remote service
475             */
476            public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
477                    return mbMessageService;
478            }
479    
480            /**
481             * Sets the message-boards message remote service.
482             *
483             * @param mbMessageService the message-boards message remote service
484             */
485            public void setMBMessageService(
486                    com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
487                    this.mbMessageService = mbMessageService;
488            }
489    
490            /**
491             * Returns the message-boards message persistence.
492             *
493             * @return the message-boards message persistence
494             */
495            public MBMessagePersistence getMBMessagePersistence() {
496                    return mbMessagePersistence;
497            }
498    
499            /**
500             * Sets the message-boards message persistence.
501             *
502             * @param mbMessagePersistence the message-boards message persistence
503             */
504            public void setMBMessagePersistence(
505                    MBMessagePersistence mbMessagePersistence) {
506                    this.mbMessagePersistence = mbMessagePersistence;
507            }
508    
509            /**
510             * Returns the message-boards message finder.
511             *
512             * @return the message-boards message finder
513             */
514            public MBMessageFinder getMBMessageFinder() {
515                    return mbMessageFinder;
516            }
517    
518            /**
519             * Sets the message-boards message finder.
520             *
521             * @param mbMessageFinder the message-boards message finder
522             */
523            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
524                    this.mbMessageFinder = mbMessageFinder;
525            }
526    
527            /**
528             * Returns the counter local service.
529             *
530             * @return the counter local service
531             */
532            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
533                    return counterLocalService;
534            }
535    
536            /**
537             * Sets the counter local service.
538             *
539             * @param counterLocalService the counter local service
540             */
541            public void setCounterLocalService(
542                    com.liferay.counter.service.CounterLocalService counterLocalService) {
543                    this.counterLocalService = counterLocalService;
544            }
545    
546            /**
547             * Returns the mail remote service.
548             *
549             * @return the mail remote service
550             */
551            public com.liferay.mail.service.MailService getMailService() {
552                    return mailService;
553            }
554    
555            /**
556             * Sets the mail remote service.
557             *
558             * @param mailService the mail remote service
559             */
560            public void setMailService(com.liferay.mail.service.MailService mailService) {
561                    this.mailService = mailService;
562            }
563    
564            /**
565             * Returns the class name local service.
566             *
567             * @return the class name local service
568             */
569            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
570                    return classNameLocalService;
571            }
572    
573            /**
574             * Sets the class name local service.
575             *
576             * @param classNameLocalService the class name local service
577             */
578            public void setClassNameLocalService(
579                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
580                    this.classNameLocalService = classNameLocalService;
581            }
582    
583            /**
584             * Returns the class name remote service.
585             *
586             * @return the class name remote service
587             */
588            public com.liferay.portal.service.ClassNameService getClassNameService() {
589                    return classNameService;
590            }
591    
592            /**
593             * Sets the class name remote service.
594             *
595             * @param classNameService the class name remote service
596             */
597            public void setClassNameService(
598                    com.liferay.portal.service.ClassNameService classNameService) {
599                    this.classNameService = classNameService;
600            }
601    
602            /**
603             * Returns the class name persistence.
604             *
605             * @return the class name persistence
606             */
607            public ClassNamePersistence getClassNamePersistence() {
608                    return classNamePersistence;
609            }
610    
611            /**
612             * Sets the class name persistence.
613             *
614             * @param classNamePersistence the class name persistence
615             */
616            public void setClassNamePersistence(
617                    ClassNamePersistence classNamePersistence) {
618                    this.classNamePersistence = classNamePersistence;
619            }
620    
621            /**
622             * Returns the company local service.
623             *
624             * @return the company local service
625             */
626            public com.liferay.portal.service.CompanyLocalService getCompanyLocalService() {
627                    return companyLocalService;
628            }
629    
630            /**
631             * Sets the company local service.
632             *
633             * @param companyLocalService the company local service
634             */
635            public void setCompanyLocalService(
636                    com.liferay.portal.service.CompanyLocalService companyLocalService) {
637                    this.companyLocalService = companyLocalService;
638            }
639    
640            /**
641             * Returns the company remote service.
642             *
643             * @return the company remote service
644             */
645            public com.liferay.portal.service.CompanyService getCompanyService() {
646                    return companyService;
647            }
648    
649            /**
650             * Sets the company remote service.
651             *
652             * @param companyService the company remote service
653             */
654            public void setCompanyService(
655                    com.liferay.portal.service.CompanyService companyService) {
656                    this.companyService = companyService;
657            }
658    
659            /**
660             * Returns the company persistence.
661             *
662             * @return the company persistence
663             */
664            public CompanyPersistence getCompanyPersistence() {
665                    return companyPersistence;
666            }
667    
668            /**
669             * Sets the company persistence.
670             *
671             * @param companyPersistence the company persistence
672             */
673            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
674                    this.companyPersistence = companyPersistence;
675            }
676    
677            /**
678             * Returns the group local service.
679             *
680             * @return the group local service
681             */
682            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
683                    return groupLocalService;
684            }
685    
686            /**
687             * Sets the group local service.
688             *
689             * @param groupLocalService the group local service
690             */
691            public void setGroupLocalService(
692                    com.liferay.portal.service.GroupLocalService groupLocalService) {
693                    this.groupLocalService = groupLocalService;
694            }
695    
696            /**
697             * Returns the group remote service.
698             *
699             * @return the group remote service
700             */
701            public com.liferay.portal.service.GroupService getGroupService() {
702                    return groupService;
703            }
704    
705            /**
706             * Sets the group remote service.
707             *
708             * @param groupService the group remote service
709             */
710            public void setGroupService(
711                    com.liferay.portal.service.GroupService groupService) {
712                    this.groupService = groupService;
713            }
714    
715            /**
716             * Returns the group persistence.
717             *
718             * @return the group persistence
719             */
720            public GroupPersistence getGroupPersistence() {
721                    return groupPersistence;
722            }
723    
724            /**
725             * Sets the group persistence.
726             *
727             * @param groupPersistence the group persistence
728             */
729            public void setGroupPersistence(GroupPersistence groupPersistence) {
730                    this.groupPersistence = groupPersistence;
731            }
732    
733            /**
734             * Returns the group finder.
735             *
736             * @return the group finder
737             */
738            public GroupFinder getGroupFinder() {
739                    return groupFinder;
740            }
741    
742            /**
743             * Sets the group finder.
744             *
745             * @param groupFinder the group finder
746             */
747            public void setGroupFinder(GroupFinder groupFinder) {
748                    this.groupFinder = groupFinder;
749            }
750    
751            /**
752             * Returns the lock local service.
753             *
754             * @return the lock local service
755             */
756            public com.liferay.portal.service.LockLocalService getLockLocalService() {
757                    return lockLocalService;
758            }
759    
760            /**
761             * Sets the lock local service.
762             *
763             * @param lockLocalService the lock local service
764             */
765            public void setLockLocalService(
766                    com.liferay.portal.service.LockLocalService lockLocalService) {
767                    this.lockLocalService = lockLocalService;
768            }
769    
770            /**
771             * Returns the lock persistence.
772             *
773             * @return the lock persistence
774             */
775            public LockPersistence getLockPersistence() {
776                    return lockPersistence;
777            }
778    
779            /**
780             * Sets the lock persistence.
781             *
782             * @param lockPersistence the lock persistence
783             */
784            public void setLockPersistence(LockPersistence lockPersistence) {
785                    this.lockPersistence = lockPersistence;
786            }
787    
788            /**
789             * Returns the lock finder.
790             *
791             * @return the lock finder
792             */
793            public LockFinder getLockFinder() {
794                    return lockFinder;
795            }
796    
797            /**
798             * Sets the lock finder.
799             *
800             * @param lockFinder the lock finder
801             */
802            public void setLockFinder(LockFinder lockFinder) {
803                    this.lockFinder = lockFinder;
804            }
805    
806            /**
807             * Returns the portlet preferences local service.
808             *
809             * @return the portlet preferences local service
810             */
811            public com.liferay.portal.service.PortletPreferencesLocalService getPortletPreferencesLocalService() {
812                    return portletPreferencesLocalService;
813            }
814    
815            /**
816             * Sets the portlet preferences local service.
817             *
818             * @param portletPreferencesLocalService the portlet preferences local service
819             */
820            public void setPortletPreferencesLocalService(
821                    com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService) {
822                    this.portletPreferencesLocalService = portletPreferencesLocalService;
823            }
824    
825            /**
826             * Returns the portlet preferences remote service.
827             *
828             * @return the portlet preferences remote service
829             */
830            public com.liferay.portal.service.PortletPreferencesService getPortletPreferencesService() {
831                    return portletPreferencesService;
832            }
833    
834            /**
835             * Sets the portlet preferences remote service.
836             *
837             * @param portletPreferencesService the portlet preferences remote service
838             */
839            public void setPortletPreferencesService(
840                    com.liferay.portal.service.PortletPreferencesService portletPreferencesService) {
841                    this.portletPreferencesService = portletPreferencesService;
842            }
843    
844            /**
845             * Returns the portlet preferences persistence.
846             *
847             * @return the portlet preferences persistence
848             */
849            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
850                    return portletPreferencesPersistence;
851            }
852    
853            /**
854             * Sets the portlet preferences persistence.
855             *
856             * @param portletPreferencesPersistence the portlet preferences persistence
857             */
858            public void setPortletPreferencesPersistence(
859                    PortletPreferencesPersistence portletPreferencesPersistence) {
860                    this.portletPreferencesPersistence = portletPreferencesPersistence;
861            }
862    
863            /**
864             * Returns the portlet preferences finder.
865             *
866             * @return the portlet preferences finder
867             */
868            public PortletPreferencesFinder getPortletPreferencesFinder() {
869                    return portletPreferencesFinder;
870            }
871    
872            /**
873             * Sets the portlet preferences finder.
874             *
875             * @param portletPreferencesFinder the portlet preferences finder
876             */
877            public void setPortletPreferencesFinder(
878                    PortletPreferencesFinder portletPreferencesFinder) {
879                    this.portletPreferencesFinder = portletPreferencesFinder;
880            }
881    
882            /**
883             * Returns the resource local service.
884             *
885             * @return the resource local service
886             */
887            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
888                    return resourceLocalService;
889            }
890    
891            /**
892             * Sets the resource local service.
893             *
894             * @param resourceLocalService the resource local service
895             */
896            public void setResourceLocalService(
897                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
898                    this.resourceLocalService = resourceLocalService;
899            }
900    
901            /**
902             * Returns the subscription local service.
903             *
904             * @return the subscription local service
905             */
906            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
907                    return subscriptionLocalService;
908            }
909    
910            /**
911             * Sets the subscription local service.
912             *
913             * @param subscriptionLocalService the subscription local service
914             */
915            public void setSubscriptionLocalService(
916                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
917                    this.subscriptionLocalService = subscriptionLocalService;
918            }
919    
920            /**
921             * Returns the subscription persistence.
922             *
923             * @return the subscription persistence
924             */
925            public SubscriptionPersistence getSubscriptionPersistence() {
926                    return subscriptionPersistence;
927            }
928    
929            /**
930             * Sets the subscription persistence.
931             *
932             * @param subscriptionPersistence the subscription persistence
933             */
934            public void setSubscriptionPersistence(
935                    SubscriptionPersistence subscriptionPersistence) {
936                    this.subscriptionPersistence = subscriptionPersistence;
937            }
938    
939            /**
940             * Returns the user local service.
941             *
942             * @return the user local service
943             */
944            public com.liferay.portal.service.UserLocalService getUserLocalService() {
945                    return userLocalService;
946            }
947    
948            /**
949             * Sets the user local service.
950             *
951             * @param userLocalService the user local service
952             */
953            public void setUserLocalService(
954                    com.liferay.portal.service.UserLocalService userLocalService) {
955                    this.userLocalService = userLocalService;
956            }
957    
958            /**
959             * Returns the user remote service.
960             *
961             * @return the user remote service
962             */
963            public com.liferay.portal.service.UserService getUserService() {
964                    return userService;
965            }
966    
967            /**
968             * Sets the user remote service.
969             *
970             * @param userService the user remote service
971             */
972            public void setUserService(
973                    com.liferay.portal.service.UserService userService) {
974                    this.userService = userService;
975            }
976    
977            /**
978             * Returns the user persistence.
979             *
980             * @return the user persistence
981             */
982            public UserPersistence getUserPersistence() {
983                    return userPersistence;
984            }
985    
986            /**
987             * Sets the user persistence.
988             *
989             * @param userPersistence the user persistence
990             */
991            public void setUserPersistence(UserPersistence userPersistence) {
992                    this.userPersistence = userPersistence;
993            }
994    
995            /**
996             * Returns the user finder.
997             *
998             * @return the user finder
999             */
1000            public UserFinder getUserFinder() {
1001                    return userFinder;
1002            }
1003    
1004            /**
1005             * Sets the user finder.
1006             *
1007             * @param userFinder the user finder
1008             */
1009            public void setUserFinder(UserFinder userFinder) {
1010                    this.userFinder = userFinder;
1011            }
1012    
1013            /**
1014             * Returns the workflow instance link local service.
1015             *
1016             * @return the workflow instance link local service
1017             */
1018            public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1019                    return workflowInstanceLinkLocalService;
1020            }
1021    
1022            /**
1023             * Sets the workflow instance link local service.
1024             *
1025             * @param workflowInstanceLinkLocalService the workflow instance link local service
1026             */
1027            public void setWorkflowInstanceLinkLocalService(
1028                    com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1029                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1030            }
1031    
1032            /**
1033             * Returns the workflow instance link persistence.
1034             *
1035             * @return the workflow instance link persistence
1036             */
1037            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1038                    return workflowInstanceLinkPersistence;
1039            }
1040    
1041            /**
1042             * Sets the workflow instance link persistence.
1043             *
1044             * @param workflowInstanceLinkPersistence the workflow instance link persistence
1045             */
1046            public void setWorkflowInstanceLinkPersistence(
1047                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1048                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1049            }
1050    
1051            /**
1052             * Returns the asset entry local service.
1053             *
1054             * @return the asset entry local service
1055             */
1056            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
1057                    return assetEntryLocalService;
1058            }
1059    
1060            /**
1061             * Sets the asset entry local service.
1062             *
1063             * @param assetEntryLocalService the asset entry local service
1064             */
1065            public void setAssetEntryLocalService(
1066                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
1067                    this.assetEntryLocalService = assetEntryLocalService;
1068            }
1069    
1070            /**
1071             * Returns the asset entry remote service.
1072             *
1073             * @return the asset entry remote service
1074             */
1075            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
1076                    return assetEntryService;
1077            }
1078    
1079            /**
1080             * Sets the asset entry remote service.
1081             *
1082             * @param assetEntryService the asset entry remote service
1083             */
1084            public void setAssetEntryService(
1085                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
1086                    this.assetEntryService = assetEntryService;
1087            }
1088    
1089            /**
1090             * Returns the asset entry persistence.
1091             *
1092             * @return the asset entry persistence
1093             */
1094            public AssetEntryPersistence getAssetEntryPersistence() {
1095                    return assetEntryPersistence;
1096            }
1097    
1098            /**
1099             * Sets the asset entry persistence.
1100             *
1101             * @param assetEntryPersistence the asset entry persistence
1102             */
1103            public void setAssetEntryPersistence(
1104                    AssetEntryPersistence assetEntryPersistence) {
1105                    this.assetEntryPersistence = assetEntryPersistence;
1106            }
1107    
1108            /**
1109             * Returns the asset entry finder.
1110             *
1111             * @return the asset entry finder
1112             */
1113            public AssetEntryFinder getAssetEntryFinder() {
1114                    return assetEntryFinder;
1115            }
1116    
1117            /**
1118             * Sets the asset entry finder.
1119             *
1120             * @param assetEntryFinder the asset entry finder
1121             */
1122            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1123                    this.assetEntryFinder = assetEntryFinder;
1124            }
1125    
1126            /**
1127             * Returns the asset link local service.
1128             *
1129             * @return the asset link local service
1130             */
1131            public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
1132                    return assetLinkLocalService;
1133            }
1134    
1135            /**
1136             * Sets the asset link local service.
1137             *
1138             * @param assetLinkLocalService the asset link local service
1139             */
1140            public void setAssetLinkLocalService(
1141                    com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
1142                    this.assetLinkLocalService = assetLinkLocalService;
1143            }
1144    
1145            /**
1146             * Returns the asset link persistence.
1147             *
1148             * @return the asset link persistence
1149             */
1150            public AssetLinkPersistence getAssetLinkPersistence() {
1151                    return assetLinkPersistence;
1152            }
1153    
1154            /**
1155             * Sets the asset link persistence.
1156             *
1157             * @param assetLinkPersistence the asset link persistence
1158             */
1159            public void setAssetLinkPersistence(
1160                    AssetLinkPersistence assetLinkPersistence) {
1161                    this.assetLinkPersistence = assetLinkPersistence;
1162            }
1163    
1164            /**
1165             * Returns the asset tag local service.
1166             *
1167             * @return the asset tag local service
1168             */
1169            public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
1170                    return assetTagLocalService;
1171            }
1172    
1173            /**
1174             * Sets the asset tag local service.
1175             *
1176             * @param assetTagLocalService the asset tag local service
1177             */
1178            public void setAssetTagLocalService(
1179                    com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
1180                    this.assetTagLocalService = assetTagLocalService;
1181            }
1182    
1183            /**
1184             * Returns the asset tag remote service.
1185             *
1186             * @return the asset tag remote service
1187             */
1188            public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
1189                    return assetTagService;
1190            }
1191    
1192            /**
1193             * Sets the asset tag remote service.
1194             *
1195             * @param assetTagService the asset tag remote service
1196             */
1197            public void setAssetTagService(
1198                    com.liferay.portlet.asset.service.AssetTagService assetTagService) {
1199                    this.assetTagService = assetTagService;
1200            }
1201    
1202            /**
1203             * Returns the asset tag persistence.
1204             *
1205             * @return the asset tag persistence
1206             */
1207            public AssetTagPersistence getAssetTagPersistence() {
1208                    return assetTagPersistence;
1209            }
1210    
1211            /**
1212             * Sets the asset tag persistence.
1213             *
1214             * @param assetTagPersistence the asset tag persistence
1215             */
1216            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1217                    this.assetTagPersistence = assetTagPersistence;
1218            }
1219    
1220            /**
1221             * Returns the asset tag finder.
1222             *
1223             * @return the asset tag finder
1224             */
1225            public AssetTagFinder getAssetTagFinder() {
1226                    return assetTagFinder;
1227            }
1228    
1229            /**
1230             * Sets the asset tag finder.
1231             *
1232             * @param assetTagFinder the asset tag finder
1233             */
1234            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1235                    this.assetTagFinder = assetTagFinder;
1236            }
1237    
1238            /**
1239             * Returns the blogs entry local service.
1240             *
1241             * @return the blogs entry local service
1242             */
1243            public com.liferay.portlet.blogs.service.BlogsEntryLocalService getBlogsEntryLocalService() {
1244                    return blogsEntryLocalService;
1245            }
1246    
1247            /**
1248             * Sets the blogs entry local service.
1249             *
1250             * @param blogsEntryLocalService the blogs entry local service
1251             */
1252            public void setBlogsEntryLocalService(
1253                    com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService) {
1254                    this.blogsEntryLocalService = blogsEntryLocalService;
1255            }
1256    
1257            /**
1258             * Returns the blogs entry remote service.
1259             *
1260             * @return the blogs entry remote service
1261             */
1262            public com.liferay.portlet.blogs.service.BlogsEntryService getBlogsEntryService() {
1263                    return blogsEntryService;
1264            }
1265    
1266            /**
1267             * Sets the blogs entry remote service.
1268             *
1269             * @param blogsEntryService the blogs entry remote service
1270             */
1271            public void setBlogsEntryService(
1272                    com.liferay.portlet.blogs.service.BlogsEntryService blogsEntryService) {
1273                    this.blogsEntryService = blogsEntryService;
1274            }
1275    
1276            /**
1277             * Returns the blogs entry persistence.
1278             *
1279             * @return the blogs entry persistence
1280             */
1281            public BlogsEntryPersistence getBlogsEntryPersistence() {
1282                    return blogsEntryPersistence;
1283            }
1284    
1285            /**
1286             * Sets the blogs entry persistence.
1287             *
1288             * @param blogsEntryPersistence the blogs entry persistence
1289             */
1290            public void setBlogsEntryPersistence(
1291                    BlogsEntryPersistence blogsEntryPersistence) {
1292                    this.blogsEntryPersistence = blogsEntryPersistence;
1293            }
1294    
1295            /**
1296             * Returns the blogs entry finder.
1297             *
1298             * @return the blogs entry finder
1299             */
1300            public BlogsEntryFinder getBlogsEntryFinder() {
1301                    return blogsEntryFinder;
1302            }
1303    
1304            /**
1305             * Sets the blogs entry finder.
1306             *
1307             * @param blogsEntryFinder the blogs entry finder
1308             */
1309            public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
1310                    this.blogsEntryFinder = blogsEntryFinder;
1311            }
1312    
1313            /**
1314             * Returns the expando row local service.
1315             *
1316             * @return the expando row local service
1317             */
1318            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
1319                    return expandoRowLocalService;
1320            }
1321    
1322            /**
1323             * Sets the expando row local service.
1324             *
1325             * @param expandoRowLocalService the expando row local service
1326             */
1327            public void setExpandoRowLocalService(
1328                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
1329                    this.expandoRowLocalService = expandoRowLocalService;
1330            }
1331    
1332            /**
1333             * Returns the expando row persistence.
1334             *
1335             * @return the expando row persistence
1336             */
1337            public ExpandoRowPersistence getExpandoRowPersistence() {
1338                    return expandoRowPersistence;
1339            }
1340    
1341            /**
1342             * Sets the expando row persistence.
1343             *
1344             * @param expandoRowPersistence the expando row persistence
1345             */
1346            public void setExpandoRowPersistence(
1347                    ExpandoRowPersistence expandoRowPersistence) {
1348                    this.expandoRowPersistence = expandoRowPersistence;
1349            }
1350    
1351            /**
1352             * Returns the message boards category local service.
1353             *
1354             * @return the message boards category local service
1355             */
1356            public com.liferay.portlet.messageboards.service.MBCategoryLocalService getMBCategoryLocalService() {
1357                    return mbCategoryLocalService;
1358            }
1359    
1360            /**
1361             * Sets the message boards category local service.
1362             *
1363             * @param mbCategoryLocalService the message boards category local service
1364             */
1365            public void setMBCategoryLocalService(
1366                    com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService) {
1367                    this.mbCategoryLocalService = mbCategoryLocalService;
1368            }
1369    
1370            /**
1371             * Returns the message boards category remote service.
1372             *
1373             * @return the message boards category remote service
1374             */
1375            public com.liferay.portlet.messageboards.service.MBCategoryService getMBCategoryService() {
1376                    return mbCategoryService;
1377            }
1378    
1379            /**
1380             * Sets the message boards category remote service.
1381             *
1382             * @param mbCategoryService the message boards category remote service
1383             */
1384            public void setMBCategoryService(
1385                    com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService) {
1386                    this.mbCategoryService = mbCategoryService;
1387            }
1388    
1389            /**
1390             * Returns the message boards category persistence.
1391             *
1392             * @return the message boards category persistence
1393             */
1394            public MBCategoryPersistence getMBCategoryPersistence() {
1395                    return mbCategoryPersistence;
1396            }
1397    
1398            /**
1399             * Sets the message boards category persistence.
1400             *
1401             * @param mbCategoryPersistence the message boards category persistence
1402             */
1403            public void setMBCategoryPersistence(
1404                    MBCategoryPersistence mbCategoryPersistence) {
1405                    this.mbCategoryPersistence = mbCategoryPersistence;
1406            }
1407    
1408            /**
1409             * Returns the message boards category finder.
1410             *
1411             * @return the message boards category finder
1412             */
1413            public MBCategoryFinder getMBCategoryFinder() {
1414                    return mbCategoryFinder;
1415            }
1416    
1417            /**
1418             * Sets the message boards category finder.
1419             *
1420             * @param mbCategoryFinder the message boards category finder
1421             */
1422            public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
1423                    this.mbCategoryFinder = mbCategoryFinder;
1424            }
1425    
1426            /**
1427             * Returns the message boards discussion local service.
1428             *
1429             * @return the message boards discussion local service
1430             */
1431            public com.liferay.portlet.messageboards.service.MBDiscussionLocalService getMBDiscussionLocalService() {
1432                    return mbDiscussionLocalService;
1433            }
1434    
1435            /**
1436             * Sets the message boards discussion local service.
1437             *
1438             * @param mbDiscussionLocalService the message boards discussion local service
1439             */
1440            public void setMBDiscussionLocalService(
1441                    com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService) {
1442                    this.mbDiscussionLocalService = mbDiscussionLocalService;
1443            }
1444    
1445            /**
1446             * Returns the message boards discussion persistence.
1447             *
1448             * @return the message boards discussion persistence
1449             */
1450            public MBDiscussionPersistence getMBDiscussionPersistence() {
1451                    return mbDiscussionPersistence;
1452            }
1453    
1454            /**
1455             * Sets the message boards discussion persistence.
1456             *
1457             * @param mbDiscussionPersistence the message boards discussion persistence
1458             */
1459            public void setMBDiscussionPersistence(
1460                    MBDiscussionPersistence mbDiscussionPersistence) {
1461                    this.mbDiscussionPersistence = mbDiscussionPersistence;
1462            }
1463    
1464            /**
1465             * Returns the ratings stats local service.
1466             *
1467             * @return the ratings stats local service
1468             */
1469            public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
1470                    return ratingsStatsLocalService;
1471            }
1472    
1473            /**
1474             * Sets the ratings stats local service.
1475             *
1476             * @param ratingsStatsLocalService the ratings stats local service
1477             */
1478            public void setRatingsStatsLocalService(
1479                    com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
1480                    this.ratingsStatsLocalService = ratingsStatsLocalService;
1481            }
1482    
1483            /**
1484             * Returns the ratings stats persistence.
1485             *
1486             * @return the ratings stats persistence
1487             */
1488            public RatingsStatsPersistence getRatingsStatsPersistence() {
1489                    return ratingsStatsPersistence;
1490            }
1491    
1492            /**
1493             * Sets the ratings stats persistence.
1494             *
1495             * @param ratingsStatsPersistence the ratings stats persistence
1496             */
1497            public void setRatingsStatsPersistence(
1498                    RatingsStatsPersistence ratingsStatsPersistence) {
1499                    this.ratingsStatsPersistence = ratingsStatsPersistence;
1500            }
1501    
1502            /**
1503             * Returns the ratings stats finder.
1504             *
1505             * @return the ratings stats finder
1506             */
1507            public RatingsStatsFinder getRatingsStatsFinder() {
1508                    return ratingsStatsFinder;
1509            }
1510    
1511            /**
1512             * Sets the ratings stats finder.
1513             *
1514             * @param ratingsStatsFinder the ratings stats finder
1515             */
1516            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1517                    this.ratingsStatsFinder = ratingsStatsFinder;
1518            }
1519    
1520            /**
1521             * Returns the social activity local service.
1522             *
1523             * @return the social activity local service
1524             */
1525            public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1526                    return socialActivityLocalService;
1527            }
1528    
1529            /**
1530             * Sets the social activity local service.
1531             *
1532             * @param socialActivityLocalService the social activity local service
1533             */
1534            public void setSocialActivityLocalService(
1535                    com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1536                    this.socialActivityLocalService = socialActivityLocalService;
1537            }
1538    
1539            /**
1540             * Returns the social activity remote service.
1541             *
1542             * @return the social activity remote service
1543             */
1544            public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
1545                    return socialActivityService;
1546            }
1547    
1548            /**
1549             * Sets the social activity remote service.
1550             *
1551             * @param socialActivityService the social activity remote service
1552             */
1553            public void setSocialActivityService(
1554                    com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
1555                    this.socialActivityService = socialActivityService;
1556            }
1557    
1558            /**
1559             * Returns the social activity persistence.
1560             *
1561             * @return the social activity persistence
1562             */
1563            public SocialActivityPersistence getSocialActivityPersistence() {
1564                    return socialActivityPersistence;
1565            }
1566    
1567            /**
1568             * Sets the social activity persistence.
1569             *
1570             * @param socialActivityPersistence the social activity persistence
1571             */
1572            public void setSocialActivityPersistence(
1573                    SocialActivityPersistence socialActivityPersistence) {
1574                    this.socialActivityPersistence = socialActivityPersistence;
1575            }
1576    
1577            /**
1578             * Returns the social activity finder.
1579             *
1580             * @return the social activity finder
1581             */
1582            public SocialActivityFinder getSocialActivityFinder() {
1583                    return socialActivityFinder;
1584            }
1585    
1586            /**
1587             * Sets the social activity finder.
1588             *
1589             * @param socialActivityFinder the social activity finder
1590             */
1591            public void setSocialActivityFinder(
1592                    SocialActivityFinder socialActivityFinder) {
1593                    this.socialActivityFinder = socialActivityFinder;
1594            }
1595    
1596            /**
1597             * Returns the wiki page local service.
1598             *
1599             * @return the wiki page local service
1600             */
1601            public com.liferay.portlet.wiki.service.WikiPageLocalService getWikiPageLocalService() {
1602                    return wikiPageLocalService;
1603            }
1604    
1605            /**
1606             * Sets the wiki page local service.
1607             *
1608             * @param wikiPageLocalService the wiki page local service
1609             */
1610            public void setWikiPageLocalService(
1611                    com.liferay.portlet.wiki.service.WikiPageLocalService wikiPageLocalService) {
1612                    this.wikiPageLocalService = wikiPageLocalService;
1613            }
1614    
1615            /**
1616             * Returns the wiki page remote service.
1617             *
1618             * @return the wiki page remote service
1619             */
1620            public com.liferay.portlet.wiki.service.WikiPageService getWikiPageService() {
1621                    return wikiPageService;
1622            }
1623    
1624            /**
1625             * Sets the wiki page remote service.
1626             *
1627             * @param wikiPageService the wiki page remote service
1628             */
1629            public void setWikiPageService(
1630                    com.liferay.portlet.wiki.service.WikiPageService wikiPageService) {
1631                    this.wikiPageService = wikiPageService;
1632            }
1633    
1634            /**
1635             * Returns the wiki page persistence.
1636             *
1637             * @return the wiki page persistence
1638             */
1639            public WikiPagePersistence getWikiPagePersistence() {
1640                    return wikiPagePersistence;
1641            }
1642    
1643            /**
1644             * Sets the wiki page persistence.
1645             *
1646             * @param wikiPagePersistence the wiki page persistence
1647             */
1648            public void setWikiPagePersistence(WikiPagePersistence wikiPagePersistence) {
1649                    this.wikiPagePersistence = wikiPagePersistence;
1650            }
1651    
1652            /**
1653             * Returns the wiki page finder.
1654             *
1655             * @return the wiki page finder
1656             */
1657            public WikiPageFinder getWikiPageFinder() {
1658                    return wikiPageFinder;
1659            }
1660    
1661            /**
1662             * Sets the wiki page finder.
1663             *
1664             * @param wikiPageFinder the wiki page finder
1665             */
1666            public void setWikiPageFinder(WikiPageFinder wikiPageFinder) {
1667                    this.wikiPageFinder = wikiPageFinder;
1668            }
1669    
1670            /**
1671             * Returns the message boards stats user local service.
1672             *
1673             * @return the message boards stats user local service
1674             */
1675            public com.liferay.portlet.messageboards.service.MBStatsUserLocalService getMBStatsUserLocalService() {
1676                    return mbStatsUserLocalService;
1677            }
1678    
1679            /**
1680             * Sets the message boards stats user local service.
1681             *
1682             * @param mbStatsUserLocalService the message boards stats user local service
1683             */
1684            public void setMBStatsUserLocalService(
1685                    com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService) {
1686                    this.mbStatsUserLocalService = mbStatsUserLocalService;
1687            }
1688    
1689            /**
1690             * Returns the message boards stats user persistence.
1691             *
1692             * @return the message boards stats user persistence
1693             */
1694            public MBStatsUserPersistence getMBStatsUserPersistence() {
1695                    return mbStatsUserPersistence;
1696            }
1697    
1698            /**
1699             * Sets the message boards stats user persistence.
1700             *
1701             * @param mbStatsUserPersistence the message boards stats user persistence
1702             */
1703            public void setMBStatsUserPersistence(
1704                    MBStatsUserPersistence mbStatsUserPersistence) {
1705                    this.mbStatsUserPersistence = mbStatsUserPersistence;
1706            }
1707    
1708            /**
1709             * Returns the message boards thread local service.
1710             *
1711             * @return the message boards thread local service
1712             */
1713            public com.liferay.portlet.messageboards.service.MBThreadLocalService getMBThreadLocalService() {
1714                    return mbThreadLocalService;
1715            }
1716    
1717            /**
1718             * Sets the message boards thread local service.
1719             *
1720             * @param mbThreadLocalService the message boards thread local service
1721             */
1722            public void setMBThreadLocalService(
1723                    com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService) {
1724                    this.mbThreadLocalService = mbThreadLocalService;
1725            }
1726    
1727            /**
1728             * Returns the message boards thread remote service.
1729             *
1730             * @return the message boards thread remote service
1731             */
1732            public com.liferay.portlet.messageboards.service.MBThreadService getMBThreadService() {
1733                    return mbThreadService;
1734            }
1735    
1736            /**
1737             * Sets the message boards thread remote service.
1738             *
1739             * @param mbThreadService the message boards thread remote service
1740             */
1741            public void setMBThreadService(
1742                    com.liferay.portlet.messageboards.service.MBThreadService mbThreadService) {
1743                    this.mbThreadService = mbThreadService;
1744            }
1745    
1746            /**
1747             * Returns the message boards thread persistence.
1748             *
1749             * @return the message boards thread persistence
1750             */
1751            public MBThreadPersistence getMBThreadPersistence() {
1752                    return mbThreadPersistence;
1753            }
1754    
1755            /**
1756             * Sets the message boards thread persistence.
1757             *
1758             * @param mbThreadPersistence the message boards thread persistence
1759             */
1760            public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
1761                    this.mbThreadPersistence = mbThreadPersistence;
1762            }
1763    
1764            /**
1765             * Returns the message boards thread finder.
1766             *
1767             * @return the message boards thread finder
1768             */
1769            public MBThreadFinder getMBThreadFinder() {
1770                    return mbThreadFinder;
1771            }
1772    
1773            /**
1774             * Sets the message boards thread finder.
1775             *
1776             * @param mbThreadFinder the message boards thread finder
1777             */
1778            public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
1779                    this.mbThreadFinder = mbThreadFinder;
1780            }
1781    
1782            public void afterPropertiesSet() {
1783                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBMessage",
1784                            mbMessageLocalService);
1785            }
1786    
1787            public void destroy() {
1788                    persistedModelLocalServiceRegistry.unregister(
1789                            "com.liferay.portlet.messageboards.model.MBMessage");
1790            }
1791    
1792            /**
1793             * Returns the Spring bean ID for this bean.
1794             *
1795             * @return the Spring bean ID for this bean
1796             */
1797            @Override
1798            public String getBeanIdentifier() {
1799                    return _beanIdentifier;
1800            }
1801    
1802            /**
1803             * Sets the Spring bean ID for this bean.
1804             *
1805             * @param beanIdentifier the Spring bean ID for this bean
1806             */
1807            @Override
1808            public void setBeanIdentifier(String beanIdentifier) {
1809                    _beanIdentifier = beanIdentifier;
1810            }
1811    
1812            protected Class<?> getModelClass() {
1813                    return MBMessage.class;
1814            }
1815    
1816            protected String getModelClassName() {
1817                    return MBMessage.class.getName();
1818            }
1819    
1820            /**
1821             * Performs a SQL query.
1822             *
1823             * @param sql the sql query
1824             */
1825            protected void runSQL(String sql) {
1826                    try {
1827                            DataSource dataSource = mbMessagePersistence.getDataSource();
1828    
1829                            DB db = DBFactoryUtil.getDB();
1830    
1831                            sql = db.buildSQL(sql);
1832                            sql = PortalUtil.transformSQL(sql);
1833    
1834                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1835                                            sql, new int[0]);
1836    
1837                            sqlUpdate.update();
1838                    }
1839                    catch (Exception e) {
1840                            throw new SystemException(e);
1841                    }
1842            }
1843    
1844            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1845            protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
1846            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1847            protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1848            @BeanReference(type = MBMessagePersistence.class)
1849            protected MBMessagePersistence mbMessagePersistence;
1850            @BeanReference(type = MBMessageFinder.class)
1851            protected MBMessageFinder mbMessageFinder;
1852            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1853            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1854            @BeanReference(type = com.liferay.mail.service.MailService.class)
1855            protected com.liferay.mail.service.MailService mailService;
1856            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1857            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1858            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1859            protected com.liferay.portal.service.ClassNameService classNameService;
1860            @BeanReference(type = ClassNamePersistence.class)
1861            protected ClassNamePersistence classNamePersistence;
1862            @BeanReference(type = com.liferay.portal.service.CompanyLocalService.class)
1863            protected com.liferay.portal.service.CompanyLocalService companyLocalService;
1864            @BeanReference(type = com.liferay.portal.service.CompanyService.class)
1865            protected com.liferay.portal.service.CompanyService companyService;
1866            @BeanReference(type = CompanyPersistence.class)
1867            protected CompanyPersistence companyPersistence;
1868            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1869            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1870            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1871            protected com.liferay.portal.service.GroupService groupService;
1872            @BeanReference(type = GroupPersistence.class)
1873            protected GroupPersistence groupPersistence;
1874            @BeanReference(type = GroupFinder.class)
1875            protected GroupFinder groupFinder;
1876            @BeanReference(type = com.liferay.portal.service.LockLocalService.class)
1877            protected com.liferay.portal.service.LockLocalService lockLocalService;
1878            @BeanReference(type = LockPersistence.class)
1879            protected LockPersistence lockPersistence;
1880            @BeanReference(type = LockFinder.class)
1881            protected LockFinder lockFinder;
1882            @BeanReference(type = com.liferay.portal.service.PortletPreferencesLocalService.class)
1883            protected com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService;
1884            @BeanReference(type = com.liferay.portal.service.PortletPreferencesService.class)
1885            protected com.liferay.portal.service.PortletPreferencesService portletPreferencesService;
1886            @BeanReference(type = PortletPreferencesPersistence.class)
1887            protected PortletPreferencesPersistence portletPreferencesPersistence;
1888            @BeanReference(type = PortletPreferencesFinder.class)
1889            protected PortletPreferencesFinder portletPreferencesFinder;
1890            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1891            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1892            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1893            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1894            @BeanReference(type = SubscriptionPersistence.class)
1895            protected SubscriptionPersistence subscriptionPersistence;
1896            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1897            protected com.liferay.portal.service.UserLocalService userLocalService;
1898            @BeanReference(type = com.liferay.portal.service.UserService.class)
1899            protected com.liferay.portal.service.UserService userService;
1900            @BeanReference(type = UserPersistence.class)
1901            protected UserPersistence userPersistence;
1902            @BeanReference(type = UserFinder.class)
1903            protected UserFinder userFinder;
1904            @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1905            protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1906            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1907            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1908            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1909            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1910            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1911            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1912            @BeanReference(type = AssetEntryPersistence.class)
1913            protected AssetEntryPersistence assetEntryPersistence;
1914            @BeanReference(type = AssetEntryFinder.class)
1915            protected AssetEntryFinder assetEntryFinder;
1916            @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1917            protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1918            @BeanReference(type = AssetLinkPersistence.class)
1919            protected AssetLinkPersistence assetLinkPersistence;
1920            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1921            protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1922            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1923            protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1924            @BeanReference(type = AssetTagPersistence.class)
1925            protected AssetTagPersistence assetTagPersistence;
1926            @BeanReference(type = AssetTagFinder.class)
1927            protected AssetTagFinder assetTagFinder;
1928            @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryLocalService.class)
1929            protected com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService;
1930            @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryService.class)
1931            protected com.liferay.portlet.blogs.service.BlogsEntryService blogsEntryService;
1932            @BeanReference(type = BlogsEntryPersistence.class)
1933            protected BlogsEntryPersistence blogsEntryPersistence;
1934            @BeanReference(type = BlogsEntryFinder.class)
1935            protected BlogsEntryFinder blogsEntryFinder;
1936            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1937            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1938            @BeanReference(type = ExpandoRowPersistence.class)
1939            protected ExpandoRowPersistence expandoRowPersistence;
1940            @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryLocalService.class)
1941            protected com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService;
1942            @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryService.class)
1943            protected com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService;
1944            @BeanReference(type = MBCategoryPersistence.class)
1945            protected MBCategoryPersistence mbCategoryPersistence;
1946            @BeanReference(type = MBCategoryFinder.class)
1947            protected MBCategoryFinder mbCategoryFinder;
1948            @BeanReference(type = com.liferay.portlet.messageboards.service.MBDiscussionLocalService.class)
1949            protected com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService;
1950            @BeanReference(type = MBDiscussionPersistence.class)
1951            protected MBDiscussionPersistence mbDiscussionPersistence;
1952            @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
1953            protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
1954            @BeanReference(type = RatingsStatsPersistence.class)
1955            protected RatingsStatsPersistence ratingsStatsPersistence;
1956            @BeanReference(type = RatingsStatsFinder.class)
1957            protected RatingsStatsFinder ratingsStatsFinder;
1958            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1959            protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1960            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
1961            protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
1962            @BeanReference(type = SocialActivityPersistence.class)
1963            protected SocialActivityPersistence socialActivityPersistence;
1964            @BeanReference(type = SocialActivityFinder.class)
1965            protected SocialActivityFinder socialActivityFinder;
1966            @BeanReference(type = com.liferay.portlet.wiki.service.WikiPageLocalService.class)
1967            protected com.liferay.portlet.wiki.service.WikiPageLocalService wikiPageLocalService;
1968            @BeanReference(type = com.liferay.portlet.wiki.service.WikiPageService.class)
1969            protected com.liferay.portlet.wiki.service.WikiPageService wikiPageService;
1970            @BeanReference(type = WikiPagePersistence.class)
1971            protected WikiPagePersistence wikiPagePersistence;
1972            @BeanReference(type = WikiPageFinder.class)
1973            protected WikiPageFinder wikiPageFinder;
1974            @BeanReference(type = com.liferay.portlet.messageboards.service.MBStatsUserLocalService.class)
1975            protected com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService;
1976            @BeanReference(type = MBStatsUserPersistence.class)
1977            protected MBStatsUserPersistence mbStatsUserPersistence;
1978            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadLocalService.class)
1979            protected com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService;
1980            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadService.class)
1981            protected com.liferay.portlet.messageboards.service.MBThreadService mbThreadService;
1982            @BeanReference(type = MBThreadPersistence.class)
1983            protected MBThreadPersistence mbThreadPersistence;
1984            @BeanReference(type = MBThreadFinder.class)
1985            protected MBThreadFinder mbThreadFinder;
1986            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1987            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1988            private String _beanIdentifier;
1989    }