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