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.GroupFinder;
049    import com.liferay.portal.service.persistence.GroupPersistence;
050    import com.liferay.portal.service.persistence.LockFinder;
051    import com.liferay.portal.service.persistence.LockPersistence;
052    import com.liferay.portal.service.persistence.SubscriptionPersistence;
053    import com.liferay.portal.service.persistence.UserFinder;
054    import com.liferay.portal.service.persistence.UserPersistence;
055    import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
056    import com.liferay.portal.util.PortalUtil;
057    
058    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
059    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
060    import com.liferay.portlet.messageboards.model.MBThread;
061    import com.liferay.portlet.messageboards.service.MBThreadLocalService;
062    import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
063    import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
064    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
065    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
066    import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
067    import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
068    import com.liferay.portlet.messageboards.service.persistence.MBThreadFlagPersistence;
069    import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
070    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
071    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
072    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
073    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
074    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
075    import com.liferay.portlet.trash.service.persistence.TrashVersionPersistence;
076    
077    import java.io.Serializable;
078    
079    import java.util.List;
080    
081    import javax.sql.DataSource;
082    
083    /**
084     * Provides the base implementation for the message boards thread local service.
085     *
086     * <p>
087     * 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.MBThreadLocalServiceImpl}.
088     * </p>
089     *
090     * @author Brian Wing Shun Chan
091     * @see com.liferay.portlet.messageboards.service.impl.MBThreadLocalServiceImpl
092     * @see com.liferay.portlet.messageboards.service.MBThreadLocalServiceUtil
093     * @generated
094     */
095    @ProviderType
096    public abstract class MBThreadLocalServiceBaseImpl extends BaseLocalServiceImpl
097            implements MBThreadLocalService, IdentifiableBean {
098            /*
099             * NOTE FOR DEVELOPERS:
100             *
101             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.messageboards.service.MBThreadLocalServiceUtil} to access the message boards thread local service.
102             */
103    
104            /**
105             * Adds the message boards thread to the database. Also notifies the appropriate model listeners.
106             *
107             * @param mbThread the message boards thread
108             * @return the message boards thread that was added
109             */
110            @Indexable(type = IndexableType.REINDEX)
111            @Override
112            public MBThread addMBThread(MBThread mbThread) {
113                    mbThread.setNew(true);
114    
115                    return mbThreadPersistence.update(mbThread);
116            }
117    
118            /**
119             * Creates a new message boards thread with the primary key. Does not add the message boards thread to the database.
120             *
121             * @param threadId the primary key for the new message boards thread
122             * @return the new message boards thread
123             */
124            @Override
125            public MBThread createMBThread(long threadId) {
126                    return mbThreadPersistence.create(threadId);
127            }
128    
129            /**
130             * Deletes the message boards thread with the primary key from the database. Also notifies the appropriate model listeners.
131             *
132             * @param threadId the primary key of the message boards thread
133             * @return the message boards thread that was removed
134             * @throws PortalException if a message boards thread with the primary key could not be found
135             */
136            @Indexable(type = IndexableType.DELETE)
137            @Override
138            public MBThread deleteMBThread(long threadId) throws PortalException {
139                    return mbThreadPersistence.remove(threadId);
140            }
141    
142            /**
143             * Deletes the message boards thread from the database. Also notifies the appropriate model listeners.
144             *
145             * @param mbThread the message boards thread
146             * @return the message boards thread that was removed
147             */
148            @Indexable(type = IndexableType.DELETE)
149            @Override
150            public MBThread deleteMBThread(MBThread mbThread) {
151                    return mbThreadPersistence.remove(mbThread);
152            }
153    
154            @Override
155            public DynamicQuery dynamicQuery() {
156                    Class<?> clazz = getClass();
157    
158                    return DynamicQueryFactoryUtil.forClass(MBThread.class,
159                            clazz.getClassLoader());
160            }
161    
162            /**
163             * Performs a dynamic query on the database and returns the matching rows.
164             *
165             * @param dynamicQuery the dynamic query
166             * @return the matching rows
167             */
168            @Override
169            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
170                    return mbThreadPersistence.findWithDynamicQuery(dynamicQuery);
171            }
172    
173            /**
174             * Performs a dynamic query on the database and returns a range of the matching rows.
175             *
176             * <p>
177             * 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.MBThreadModelImpl}. 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.
178             * </p>
179             *
180             * @param dynamicQuery the dynamic query
181             * @param start the lower bound of the range of model instances
182             * @param end the upper bound of the range of model instances (not inclusive)
183             * @return the range of matching rows
184             */
185            @Override
186            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
187                    int end) {
188                    return mbThreadPersistence.findWithDynamicQuery(dynamicQuery, start, end);
189            }
190    
191            /**
192             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
193             *
194             * <p>
195             * 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.MBThreadModelImpl}. 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.
196             * </p>
197             *
198             * @param dynamicQuery the dynamic query
199             * @param start the lower bound of the range of model instances
200             * @param end the upper bound of the range of model instances (not inclusive)
201             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
202             * @return the ordered range of matching rows
203             */
204            @Override
205            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
206                    int end, OrderByComparator<T> orderByComparator) {
207                    return mbThreadPersistence.findWithDynamicQuery(dynamicQuery, start,
208                            end, orderByComparator);
209            }
210    
211            /**
212             * Returns the number of rows that match the dynamic query.
213             *
214             * @param dynamicQuery the dynamic query
215             * @return the number of rows that match the dynamic query
216             */
217            @Override
218            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
219                    return mbThreadPersistence.countWithDynamicQuery(dynamicQuery);
220            }
221    
222            /**
223             * Returns the number of rows that match the dynamic query.
224             *
225             * @param dynamicQuery the dynamic query
226             * @param projection the projection to apply to the query
227             * @return the number of rows that match the dynamic query
228             */
229            @Override
230            public long dynamicQueryCount(DynamicQuery dynamicQuery,
231                    Projection projection) {
232                    return mbThreadPersistence.countWithDynamicQuery(dynamicQuery,
233                            projection);
234            }
235    
236            @Override
237            public MBThread fetchMBThread(long threadId) {
238                    return mbThreadPersistence.fetchByPrimaryKey(threadId);
239            }
240    
241            /**
242             * Returns the message boards thread matching the UUID and group.
243             *
244             * @param uuid the message boards thread's UUID
245             * @param groupId the primary key of the group
246             * @return the matching message boards thread, or <code>null</code> if a matching message boards thread could not be found
247             */
248            @Override
249            public MBThread fetchMBThreadByUuidAndGroupId(String uuid, long groupId) {
250                    return mbThreadPersistence.fetchByUUID_G(uuid, groupId);
251            }
252    
253            /**
254             * Returns the message boards thread with the primary key.
255             *
256             * @param threadId the primary key of the message boards thread
257             * @return the message boards thread
258             * @throws PortalException if a message boards thread with the primary key could not be found
259             */
260            @Override
261            public MBThread getMBThread(long threadId) throws PortalException {
262                    return mbThreadPersistence.findByPrimaryKey(threadId);
263            }
264    
265            @Override
266            public ActionableDynamicQuery getActionableDynamicQuery() {
267                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
268    
269                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.messageboards.service.MBThreadLocalServiceUtil.getService());
270                    actionableDynamicQuery.setClass(MBThread.class);
271                    actionableDynamicQuery.setClassLoader(getClassLoader());
272    
273                    actionableDynamicQuery.setPrimaryKeyPropertyName("threadId");
274    
275                    return actionableDynamicQuery;
276            }
277    
278            protected void initActionableDynamicQuery(
279                    ActionableDynamicQuery actionableDynamicQuery) {
280                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.messageboards.service.MBThreadLocalServiceUtil.getService());
281                    actionableDynamicQuery.setClass(MBThread.class);
282                    actionableDynamicQuery.setClassLoader(getClassLoader());
283    
284                    actionableDynamicQuery.setPrimaryKeyPropertyName("threadId");
285            }
286    
287            @Override
288            public ExportActionableDynamicQuery getExportActionableDynamicQuery(
289                    final PortletDataContext portletDataContext) {
290                    final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
291                                    @Override
292                                    public long performCount() throws PortalException {
293                                            ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
294    
295                                            StagedModelType stagedModelType = getStagedModelType();
296    
297                                            long modelAdditionCount = super.performCount();
298    
299                                            manifestSummary.addModelAdditionCount(stagedModelType.toString(),
300                                                    modelAdditionCount);
301    
302                                            long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
303                                                            stagedModelType);
304    
305                                            manifestSummary.addModelDeletionCount(stagedModelType.toString(),
306                                                    modelDeletionCount);
307    
308                                            return modelAdditionCount;
309                                    }
310                            };
311    
312                    initActionableDynamicQuery(exportActionableDynamicQuery);
313    
314                    exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
315                                    @Override
316                                    public void addCriteria(DynamicQuery dynamicQuery) {
317                                            portletDataContext.addDateRangeCriteria(dynamicQuery,
318                                                    "modifiedDate");
319    
320                                            StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(MBThread.class.getName());
321    
322                                            Property workflowStatusProperty = PropertyFactoryUtil.forName(
323                                                            "status");
324    
325                                            dynamicQuery.add(workflowStatusProperty.in(
326                                                            stagedModelDataHandler.getExportableStatuses()));
327                                    }
328                            });
329    
330                    exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
331    
332                    exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
333    
334                    exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
335                                    @Override
336                                    public void performAction(Object object)
337                                            throws PortalException {
338                                            MBThread stagedModel = (MBThread)object;
339    
340                                            StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
341                                                    stagedModel);
342                                    }
343                            });
344                    exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
345                                    PortalUtil.getClassNameId(MBThread.class.getName())));
346    
347                    return exportActionableDynamicQuery;
348            }
349    
350            /**
351             * @throws PortalException
352             */
353            @Override
354            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
355                    throws PortalException {
356                    return mbThreadLocalService.deleteMBThread((MBThread)persistedModel);
357            }
358    
359            @Override
360            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
361                    throws PortalException {
362                    return mbThreadPersistence.findByPrimaryKey(primaryKeyObj);
363            }
364    
365            @Override
366            public List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid,
367                    long companyId) {
368                    return mbThreadPersistence.findByUuid_C(uuid, companyId);
369            }
370    
371            @Override
372            public List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid,
373                    long companyId, int start, int end,
374                    OrderByComparator<MBThread> orderByComparator) {
375                    return mbThreadPersistence.findByUuid_C(uuid, companyId, start, end,
376                            orderByComparator);
377            }
378    
379            /**
380             * Returns the message boards thread matching the UUID and group.
381             *
382             * @param uuid the message boards thread's UUID
383             * @param groupId the primary key of the group
384             * @return the matching message boards thread
385             * @throws PortalException if a matching message boards thread could not be found
386             */
387            @Override
388            public MBThread getMBThreadByUuidAndGroupId(String uuid, long groupId)
389                    throws PortalException {
390                    return mbThreadPersistence.findByUUID_G(uuid, groupId);
391            }
392    
393            /**
394             * Returns a range of all the message boards threads.
395             *
396             * <p>
397             * 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.MBThreadModelImpl}. 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.
398             * </p>
399             *
400             * @param start the lower bound of the range of message boards threads
401             * @param end the upper bound of the range of message boards threads (not inclusive)
402             * @return the range of message boards threads
403             */
404            @Override
405            public List<MBThread> getMBThreads(int start, int end) {
406                    return mbThreadPersistence.findAll(start, end);
407            }
408    
409            /**
410             * Returns the number of message boards threads.
411             *
412             * @return the number of message boards threads
413             */
414            @Override
415            public int getMBThreadsCount() {
416                    return mbThreadPersistence.countAll();
417            }
418    
419            /**
420             * Updates the message boards thread in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
421             *
422             * @param mbThread the message boards thread
423             * @return the message boards thread that was updated
424             */
425            @Indexable(type = IndexableType.REINDEX)
426            @Override
427            public MBThread updateMBThread(MBThread mbThread) {
428                    return mbThreadPersistence.update(mbThread);
429            }
430    
431            /**
432             * Returns the message boards thread local service.
433             *
434             * @return the message boards thread local service
435             */
436            public com.liferay.portlet.messageboards.service.MBThreadLocalService getMBThreadLocalService() {
437                    return mbThreadLocalService;
438            }
439    
440            /**
441             * Sets the message boards thread local service.
442             *
443             * @param mbThreadLocalService the message boards thread local service
444             */
445            public void setMBThreadLocalService(
446                    com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService) {
447                    this.mbThreadLocalService = mbThreadLocalService;
448            }
449    
450            /**
451             * Returns the message boards thread remote service.
452             *
453             * @return the message boards thread remote service
454             */
455            public com.liferay.portlet.messageboards.service.MBThreadService getMBThreadService() {
456                    return mbThreadService;
457            }
458    
459            /**
460             * Sets the message boards thread remote service.
461             *
462             * @param mbThreadService the message boards thread remote service
463             */
464            public void setMBThreadService(
465                    com.liferay.portlet.messageboards.service.MBThreadService mbThreadService) {
466                    this.mbThreadService = mbThreadService;
467            }
468    
469            /**
470             * Returns the message boards thread persistence.
471             *
472             * @return the message boards thread persistence
473             */
474            public MBThreadPersistence getMBThreadPersistence() {
475                    return mbThreadPersistence;
476            }
477    
478            /**
479             * Sets the message boards thread persistence.
480             *
481             * @param mbThreadPersistence the message boards thread persistence
482             */
483            public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
484                    this.mbThreadPersistence = mbThreadPersistence;
485            }
486    
487            /**
488             * Returns the message boards thread finder.
489             *
490             * @return the message boards thread finder
491             */
492            public MBThreadFinder getMBThreadFinder() {
493                    return mbThreadFinder;
494            }
495    
496            /**
497             * Sets the message boards thread finder.
498             *
499             * @param mbThreadFinder the message boards thread finder
500             */
501            public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
502                    this.mbThreadFinder = mbThreadFinder;
503            }
504    
505            /**
506             * Returns the counter local service.
507             *
508             * @return the counter local service
509             */
510            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
511                    return counterLocalService;
512            }
513    
514            /**
515             * Sets the counter local service.
516             *
517             * @param counterLocalService the counter local service
518             */
519            public void setCounterLocalService(
520                    com.liferay.counter.service.CounterLocalService counterLocalService) {
521                    this.counterLocalService = counterLocalService;
522            }
523    
524            /**
525             * Returns the group local service.
526             *
527             * @return the group local service
528             */
529            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
530                    return groupLocalService;
531            }
532    
533            /**
534             * Sets the group local service.
535             *
536             * @param groupLocalService the group local service
537             */
538            public void setGroupLocalService(
539                    com.liferay.portal.service.GroupLocalService groupLocalService) {
540                    this.groupLocalService = groupLocalService;
541            }
542    
543            /**
544             * Returns the group remote service.
545             *
546             * @return the group remote service
547             */
548            public com.liferay.portal.service.GroupService getGroupService() {
549                    return groupService;
550            }
551    
552            /**
553             * Sets the group remote service.
554             *
555             * @param groupService the group remote service
556             */
557            public void setGroupService(
558                    com.liferay.portal.service.GroupService groupService) {
559                    this.groupService = groupService;
560            }
561    
562            /**
563             * Returns the group persistence.
564             *
565             * @return the group persistence
566             */
567            public GroupPersistence getGroupPersistence() {
568                    return groupPersistence;
569            }
570    
571            /**
572             * Sets the group persistence.
573             *
574             * @param groupPersistence the group persistence
575             */
576            public void setGroupPersistence(GroupPersistence groupPersistence) {
577                    this.groupPersistence = groupPersistence;
578            }
579    
580            /**
581             * Returns the group finder.
582             *
583             * @return the group finder
584             */
585            public GroupFinder getGroupFinder() {
586                    return groupFinder;
587            }
588    
589            /**
590             * Sets the group finder.
591             *
592             * @param groupFinder the group finder
593             */
594            public void setGroupFinder(GroupFinder groupFinder) {
595                    this.groupFinder = groupFinder;
596            }
597    
598            /**
599             * Returns the lock local service.
600             *
601             * @return the lock local service
602             */
603            public com.liferay.portal.service.LockLocalService getLockLocalService() {
604                    return lockLocalService;
605            }
606    
607            /**
608             * Sets the lock local service.
609             *
610             * @param lockLocalService the lock local service
611             */
612            public void setLockLocalService(
613                    com.liferay.portal.service.LockLocalService lockLocalService) {
614                    this.lockLocalService = lockLocalService;
615            }
616    
617            /**
618             * Returns the lock persistence.
619             *
620             * @return the lock persistence
621             */
622            public LockPersistence getLockPersistence() {
623                    return lockPersistence;
624            }
625    
626            /**
627             * Sets the lock persistence.
628             *
629             * @param lockPersistence the lock persistence
630             */
631            public void setLockPersistence(LockPersistence lockPersistence) {
632                    this.lockPersistence = lockPersistence;
633            }
634    
635            /**
636             * Returns the lock finder.
637             *
638             * @return the lock finder
639             */
640            public LockFinder getLockFinder() {
641                    return lockFinder;
642            }
643    
644            /**
645             * Sets the lock finder.
646             *
647             * @param lockFinder the lock finder
648             */
649            public void setLockFinder(LockFinder lockFinder) {
650                    this.lockFinder = lockFinder;
651            }
652    
653            /**
654             * Returns the resource local service.
655             *
656             * @return the resource local service
657             */
658            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
659                    return resourceLocalService;
660            }
661    
662            /**
663             * Sets the resource local service.
664             *
665             * @param resourceLocalService the resource local service
666             */
667            public void setResourceLocalService(
668                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
669                    this.resourceLocalService = resourceLocalService;
670            }
671    
672            /**
673             * Returns the subscription local service.
674             *
675             * @return the subscription local service
676             */
677            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
678                    return subscriptionLocalService;
679            }
680    
681            /**
682             * Sets the subscription local service.
683             *
684             * @param subscriptionLocalService the subscription local service
685             */
686            public void setSubscriptionLocalService(
687                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
688                    this.subscriptionLocalService = subscriptionLocalService;
689            }
690    
691            /**
692             * Returns the subscription persistence.
693             *
694             * @return the subscription persistence
695             */
696            public SubscriptionPersistence getSubscriptionPersistence() {
697                    return subscriptionPersistence;
698            }
699    
700            /**
701             * Sets the subscription persistence.
702             *
703             * @param subscriptionPersistence the subscription persistence
704             */
705            public void setSubscriptionPersistence(
706                    SubscriptionPersistence subscriptionPersistence) {
707                    this.subscriptionPersistence = subscriptionPersistence;
708            }
709    
710            /**
711             * Returns the user local service.
712             *
713             * @return the user local service
714             */
715            public com.liferay.portal.service.UserLocalService getUserLocalService() {
716                    return userLocalService;
717            }
718    
719            /**
720             * Sets the user local service.
721             *
722             * @param userLocalService the user local service
723             */
724            public void setUserLocalService(
725                    com.liferay.portal.service.UserLocalService userLocalService) {
726                    this.userLocalService = userLocalService;
727            }
728    
729            /**
730             * Returns the user remote service.
731             *
732             * @return the user remote service
733             */
734            public com.liferay.portal.service.UserService getUserService() {
735                    return userService;
736            }
737    
738            /**
739             * Sets the user remote service.
740             *
741             * @param userService the user remote service
742             */
743            public void setUserService(
744                    com.liferay.portal.service.UserService userService) {
745                    this.userService = userService;
746            }
747    
748            /**
749             * Returns the user persistence.
750             *
751             * @return the user persistence
752             */
753            public UserPersistence getUserPersistence() {
754                    return userPersistence;
755            }
756    
757            /**
758             * Sets the user persistence.
759             *
760             * @param userPersistence the user persistence
761             */
762            public void setUserPersistence(UserPersistence userPersistence) {
763                    this.userPersistence = userPersistence;
764            }
765    
766            /**
767             * Returns the user finder.
768             *
769             * @return the user finder
770             */
771            public UserFinder getUserFinder() {
772                    return userFinder;
773            }
774    
775            /**
776             * Sets the user finder.
777             *
778             * @param userFinder the user finder
779             */
780            public void setUserFinder(UserFinder userFinder) {
781                    this.userFinder = userFinder;
782            }
783    
784            /**
785             * Returns the workflow instance link local service.
786             *
787             * @return the workflow instance link local service
788             */
789            public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
790                    return workflowInstanceLinkLocalService;
791            }
792    
793            /**
794             * Sets the workflow instance link local service.
795             *
796             * @param workflowInstanceLinkLocalService the workflow instance link local service
797             */
798            public void setWorkflowInstanceLinkLocalService(
799                    com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
800                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
801            }
802    
803            /**
804             * Returns the workflow instance link persistence.
805             *
806             * @return the workflow instance link persistence
807             */
808            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
809                    return workflowInstanceLinkPersistence;
810            }
811    
812            /**
813             * Sets the workflow instance link persistence.
814             *
815             * @param workflowInstanceLinkPersistence the workflow instance link persistence
816             */
817            public void setWorkflowInstanceLinkPersistence(
818                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
819                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
820            }
821    
822            /**
823             * Returns the asset entry local service.
824             *
825             * @return the asset entry local service
826             */
827            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
828                    return assetEntryLocalService;
829            }
830    
831            /**
832             * Sets the asset entry local service.
833             *
834             * @param assetEntryLocalService the asset entry local service
835             */
836            public void setAssetEntryLocalService(
837                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
838                    this.assetEntryLocalService = assetEntryLocalService;
839            }
840    
841            /**
842             * Returns the asset entry remote service.
843             *
844             * @return the asset entry remote service
845             */
846            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
847                    return assetEntryService;
848            }
849    
850            /**
851             * Sets the asset entry remote service.
852             *
853             * @param assetEntryService the asset entry remote service
854             */
855            public void setAssetEntryService(
856                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
857                    this.assetEntryService = assetEntryService;
858            }
859    
860            /**
861             * Returns the asset entry persistence.
862             *
863             * @return the asset entry persistence
864             */
865            public AssetEntryPersistence getAssetEntryPersistence() {
866                    return assetEntryPersistence;
867            }
868    
869            /**
870             * Sets the asset entry persistence.
871             *
872             * @param assetEntryPersistence the asset entry persistence
873             */
874            public void setAssetEntryPersistence(
875                    AssetEntryPersistence assetEntryPersistence) {
876                    this.assetEntryPersistence = assetEntryPersistence;
877            }
878    
879            /**
880             * Returns the asset entry finder.
881             *
882             * @return the asset entry finder
883             */
884            public AssetEntryFinder getAssetEntryFinder() {
885                    return assetEntryFinder;
886            }
887    
888            /**
889             * Sets the asset entry finder.
890             *
891             * @param assetEntryFinder the asset entry finder
892             */
893            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
894                    this.assetEntryFinder = assetEntryFinder;
895            }
896    
897            /**
898             * Returns the message boards category local service.
899             *
900             * @return the message boards category local service
901             */
902            public com.liferay.portlet.messageboards.service.MBCategoryLocalService getMBCategoryLocalService() {
903                    return mbCategoryLocalService;
904            }
905    
906            /**
907             * Sets the message boards category local service.
908             *
909             * @param mbCategoryLocalService the message boards category local service
910             */
911            public void setMBCategoryLocalService(
912                    com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService) {
913                    this.mbCategoryLocalService = mbCategoryLocalService;
914            }
915    
916            /**
917             * Returns the message boards category remote service.
918             *
919             * @return the message boards category remote service
920             */
921            public com.liferay.portlet.messageboards.service.MBCategoryService getMBCategoryService() {
922                    return mbCategoryService;
923            }
924    
925            /**
926             * Sets the message boards category remote service.
927             *
928             * @param mbCategoryService the message boards category remote service
929             */
930            public void setMBCategoryService(
931                    com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService) {
932                    this.mbCategoryService = mbCategoryService;
933            }
934    
935            /**
936             * Returns the message boards category persistence.
937             *
938             * @return the message boards category persistence
939             */
940            public MBCategoryPersistence getMBCategoryPersistence() {
941                    return mbCategoryPersistence;
942            }
943    
944            /**
945             * Sets the message boards category persistence.
946             *
947             * @param mbCategoryPersistence the message boards category persistence
948             */
949            public void setMBCategoryPersistence(
950                    MBCategoryPersistence mbCategoryPersistence) {
951                    this.mbCategoryPersistence = mbCategoryPersistence;
952            }
953    
954            /**
955             * Returns the message boards category finder.
956             *
957             * @return the message boards category finder
958             */
959            public MBCategoryFinder getMBCategoryFinder() {
960                    return mbCategoryFinder;
961            }
962    
963            /**
964             * Sets the message boards category finder.
965             *
966             * @param mbCategoryFinder the message boards category finder
967             */
968            public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
969                    this.mbCategoryFinder = mbCategoryFinder;
970            }
971    
972            /**
973             * Returns the message-boards message local service.
974             *
975             * @return the message-boards message local service
976             */
977            public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
978                    return mbMessageLocalService;
979            }
980    
981            /**
982             * Sets the message-boards message local service.
983             *
984             * @param mbMessageLocalService the message-boards message local service
985             */
986            public void setMBMessageLocalService(
987                    com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
988                    this.mbMessageLocalService = mbMessageLocalService;
989            }
990    
991            /**
992             * Returns the message-boards message remote service.
993             *
994             * @return the message-boards message remote service
995             */
996            public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
997                    return mbMessageService;
998            }
999    
1000            /**
1001             * Sets the message-boards message remote service.
1002             *
1003             * @param mbMessageService the message-boards message remote service
1004             */
1005            public void setMBMessageService(
1006                    com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
1007                    this.mbMessageService = mbMessageService;
1008            }
1009    
1010            /**
1011             * Returns the message-boards message persistence.
1012             *
1013             * @return the message-boards message persistence
1014             */
1015            public MBMessagePersistence getMBMessagePersistence() {
1016                    return mbMessagePersistence;
1017            }
1018    
1019            /**
1020             * Sets the message-boards message persistence.
1021             *
1022             * @param mbMessagePersistence the message-boards message persistence
1023             */
1024            public void setMBMessagePersistence(
1025                    MBMessagePersistence mbMessagePersistence) {
1026                    this.mbMessagePersistence = mbMessagePersistence;
1027            }
1028    
1029            /**
1030             * Returns the message-boards message finder.
1031             *
1032             * @return the message-boards message finder
1033             */
1034            public MBMessageFinder getMBMessageFinder() {
1035                    return mbMessageFinder;
1036            }
1037    
1038            /**
1039             * Sets the message-boards message finder.
1040             *
1041             * @param mbMessageFinder the message-boards message finder
1042             */
1043            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
1044                    this.mbMessageFinder = mbMessageFinder;
1045            }
1046    
1047            /**
1048             * Returns the message boards stats user local service.
1049             *
1050             * @return the message boards stats user local service
1051             */
1052            public com.liferay.portlet.messageboards.service.MBStatsUserLocalService getMBStatsUserLocalService() {
1053                    return mbStatsUserLocalService;
1054            }
1055    
1056            /**
1057             * Sets the message boards stats user local service.
1058             *
1059             * @param mbStatsUserLocalService the message boards stats user local service
1060             */
1061            public void setMBStatsUserLocalService(
1062                    com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService) {
1063                    this.mbStatsUserLocalService = mbStatsUserLocalService;
1064            }
1065    
1066            /**
1067             * Returns the message boards stats user persistence.
1068             *
1069             * @return the message boards stats user persistence
1070             */
1071            public MBStatsUserPersistence getMBStatsUserPersistence() {
1072                    return mbStatsUserPersistence;
1073            }
1074    
1075            /**
1076             * Sets the message boards stats user persistence.
1077             *
1078             * @param mbStatsUserPersistence the message boards stats user persistence
1079             */
1080            public void setMBStatsUserPersistence(
1081                    MBStatsUserPersistence mbStatsUserPersistence) {
1082                    this.mbStatsUserPersistence = mbStatsUserPersistence;
1083            }
1084    
1085            /**
1086             * Returns the ratings stats local service.
1087             *
1088             * @return the ratings stats local service
1089             */
1090            public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
1091                    return ratingsStatsLocalService;
1092            }
1093    
1094            /**
1095             * Sets the ratings stats local service.
1096             *
1097             * @param ratingsStatsLocalService the ratings stats local service
1098             */
1099            public void setRatingsStatsLocalService(
1100                    com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
1101                    this.ratingsStatsLocalService = ratingsStatsLocalService;
1102            }
1103    
1104            /**
1105             * Returns the ratings stats persistence.
1106             *
1107             * @return the ratings stats persistence
1108             */
1109            public RatingsStatsPersistence getRatingsStatsPersistence() {
1110                    return ratingsStatsPersistence;
1111            }
1112    
1113            /**
1114             * Sets the ratings stats persistence.
1115             *
1116             * @param ratingsStatsPersistence the ratings stats persistence
1117             */
1118            public void setRatingsStatsPersistence(
1119                    RatingsStatsPersistence ratingsStatsPersistence) {
1120                    this.ratingsStatsPersistence = ratingsStatsPersistence;
1121            }
1122    
1123            /**
1124             * Returns the ratings stats finder.
1125             *
1126             * @return the ratings stats finder
1127             */
1128            public RatingsStatsFinder getRatingsStatsFinder() {
1129                    return ratingsStatsFinder;
1130            }
1131    
1132            /**
1133             * Sets the ratings stats finder.
1134             *
1135             * @param ratingsStatsFinder the ratings stats finder
1136             */
1137            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1138                    this.ratingsStatsFinder = ratingsStatsFinder;
1139            }
1140    
1141            /**
1142             * Returns the social activity local service.
1143             *
1144             * @return the social activity local service
1145             */
1146            public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1147                    return socialActivityLocalService;
1148            }
1149    
1150            /**
1151             * Sets the social activity local service.
1152             *
1153             * @param socialActivityLocalService the social activity local service
1154             */
1155            public void setSocialActivityLocalService(
1156                    com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1157                    this.socialActivityLocalService = socialActivityLocalService;
1158            }
1159    
1160            /**
1161             * Returns the social activity remote service.
1162             *
1163             * @return the social activity remote service
1164             */
1165            public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
1166                    return socialActivityService;
1167            }
1168    
1169            /**
1170             * Sets the social activity remote service.
1171             *
1172             * @param socialActivityService the social activity remote service
1173             */
1174            public void setSocialActivityService(
1175                    com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
1176                    this.socialActivityService = socialActivityService;
1177            }
1178    
1179            /**
1180             * Returns the social activity persistence.
1181             *
1182             * @return the social activity persistence
1183             */
1184            public SocialActivityPersistence getSocialActivityPersistence() {
1185                    return socialActivityPersistence;
1186            }
1187    
1188            /**
1189             * Sets the social activity persistence.
1190             *
1191             * @param socialActivityPersistence the social activity persistence
1192             */
1193            public void setSocialActivityPersistence(
1194                    SocialActivityPersistence socialActivityPersistence) {
1195                    this.socialActivityPersistence = socialActivityPersistence;
1196            }
1197    
1198            /**
1199             * Returns the social activity finder.
1200             *
1201             * @return the social activity finder
1202             */
1203            public SocialActivityFinder getSocialActivityFinder() {
1204                    return socialActivityFinder;
1205            }
1206    
1207            /**
1208             * Sets the social activity finder.
1209             *
1210             * @param socialActivityFinder the social activity finder
1211             */
1212            public void setSocialActivityFinder(
1213                    SocialActivityFinder socialActivityFinder) {
1214                    this.socialActivityFinder = socialActivityFinder;
1215            }
1216    
1217            /**
1218             * Returns the trash entry local service.
1219             *
1220             * @return the trash entry local service
1221             */
1222            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1223                    return trashEntryLocalService;
1224            }
1225    
1226            /**
1227             * Sets the trash entry local service.
1228             *
1229             * @param trashEntryLocalService the trash entry local service
1230             */
1231            public void setTrashEntryLocalService(
1232                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1233                    this.trashEntryLocalService = trashEntryLocalService;
1234            }
1235    
1236            /**
1237             * Returns the trash entry remote service.
1238             *
1239             * @return the trash entry remote service
1240             */
1241            public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1242                    return trashEntryService;
1243            }
1244    
1245            /**
1246             * Sets the trash entry remote service.
1247             *
1248             * @param trashEntryService the trash entry remote service
1249             */
1250            public void setTrashEntryService(
1251                    com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1252                    this.trashEntryService = trashEntryService;
1253            }
1254    
1255            /**
1256             * Returns the trash entry persistence.
1257             *
1258             * @return the trash entry persistence
1259             */
1260            public TrashEntryPersistence getTrashEntryPersistence() {
1261                    return trashEntryPersistence;
1262            }
1263    
1264            /**
1265             * Sets the trash entry persistence.
1266             *
1267             * @param trashEntryPersistence the trash entry persistence
1268             */
1269            public void setTrashEntryPersistence(
1270                    TrashEntryPersistence trashEntryPersistence) {
1271                    this.trashEntryPersistence = trashEntryPersistence;
1272            }
1273    
1274            /**
1275             * Returns the trash version local service.
1276             *
1277             * @return the trash version local service
1278             */
1279            public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
1280                    return trashVersionLocalService;
1281            }
1282    
1283            /**
1284             * Sets the trash version local service.
1285             *
1286             * @param trashVersionLocalService the trash version local service
1287             */
1288            public void setTrashVersionLocalService(
1289                    com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
1290                    this.trashVersionLocalService = trashVersionLocalService;
1291            }
1292    
1293            /**
1294             * Returns the trash version persistence.
1295             *
1296             * @return the trash version persistence
1297             */
1298            public TrashVersionPersistence getTrashVersionPersistence() {
1299                    return trashVersionPersistence;
1300            }
1301    
1302            /**
1303             * Sets the trash version persistence.
1304             *
1305             * @param trashVersionPersistence the trash version persistence
1306             */
1307            public void setTrashVersionPersistence(
1308                    TrashVersionPersistence trashVersionPersistence) {
1309                    this.trashVersionPersistence = trashVersionPersistence;
1310            }
1311    
1312            /**
1313             * Returns the message boards thread flag local service.
1314             *
1315             * @return the message boards thread flag local service
1316             */
1317            public com.liferay.portlet.messageboards.service.MBThreadFlagLocalService getMBThreadFlagLocalService() {
1318                    return mbThreadFlagLocalService;
1319            }
1320    
1321            /**
1322             * Sets the message boards thread flag local service.
1323             *
1324             * @param mbThreadFlagLocalService the message boards thread flag local service
1325             */
1326            public void setMBThreadFlagLocalService(
1327                    com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService) {
1328                    this.mbThreadFlagLocalService = mbThreadFlagLocalService;
1329            }
1330    
1331            /**
1332             * Returns the message boards thread flag persistence.
1333             *
1334             * @return the message boards thread flag persistence
1335             */
1336            public MBThreadFlagPersistence getMBThreadFlagPersistence() {
1337                    return mbThreadFlagPersistence;
1338            }
1339    
1340            /**
1341             * Sets the message boards thread flag persistence.
1342             *
1343             * @param mbThreadFlagPersistence the message boards thread flag persistence
1344             */
1345            public void setMBThreadFlagPersistence(
1346                    MBThreadFlagPersistence mbThreadFlagPersistence) {
1347                    this.mbThreadFlagPersistence = mbThreadFlagPersistence;
1348            }
1349    
1350            public void afterPropertiesSet() {
1351                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBThread",
1352                            mbThreadLocalService);
1353            }
1354    
1355            public void destroy() {
1356                    persistedModelLocalServiceRegistry.unregister(
1357                            "com.liferay.portlet.messageboards.model.MBThread");
1358            }
1359    
1360            /**
1361             * Returns the Spring bean ID for this bean.
1362             *
1363             * @return the Spring bean ID for this bean
1364             */
1365            @Override
1366            public String getBeanIdentifier() {
1367                    return _beanIdentifier;
1368            }
1369    
1370            /**
1371             * Sets the Spring bean ID for this bean.
1372             *
1373             * @param beanIdentifier the Spring bean ID for this bean
1374             */
1375            @Override
1376            public void setBeanIdentifier(String beanIdentifier) {
1377                    _beanIdentifier = beanIdentifier;
1378            }
1379    
1380            protected Class<?> getModelClass() {
1381                    return MBThread.class;
1382            }
1383    
1384            protected String getModelClassName() {
1385                    return MBThread.class.getName();
1386            }
1387    
1388            /**
1389             * Performs a SQL query.
1390             *
1391             * @param sql the sql query
1392             */
1393            protected void runSQL(String sql) {
1394                    try {
1395                            DataSource dataSource = mbThreadPersistence.getDataSource();
1396    
1397                            DB db = DBFactoryUtil.getDB();
1398    
1399                            sql = db.buildSQL(sql);
1400                            sql = PortalUtil.transformSQL(sql);
1401    
1402                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1403                                            sql, new int[0]);
1404    
1405                            sqlUpdate.update();
1406                    }
1407                    catch (Exception e) {
1408                            throw new SystemException(e);
1409                    }
1410            }
1411    
1412            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadLocalService.class)
1413            protected com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService;
1414            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadService.class)
1415            protected com.liferay.portlet.messageboards.service.MBThreadService mbThreadService;
1416            @BeanReference(type = MBThreadPersistence.class)
1417            protected MBThreadPersistence mbThreadPersistence;
1418            @BeanReference(type = MBThreadFinder.class)
1419            protected MBThreadFinder mbThreadFinder;
1420            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1421            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1422            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1423            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1424            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1425            protected com.liferay.portal.service.GroupService groupService;
1426            @BeanReference(type = GroupPersistence.class)
1427            protected GroupPersistence groupPersistence;
1428            @BeanReference(type = GroupFinder.class)
1429            protected GroupFinder groupFinder;
1430            @BeanReference(type = com.liferay.portal.service.LockLocalService.class)
1431            protected com.liferay.portal.service.LockLocalService lockLocalService;
1432            @BeanReference(type = LockPersistence.class)
1433            protected LockPersistence lockPersistence;
1434            @BeanReference(type = LockFinder.class)
1435            protected LockFinder lockFinder;
1436            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1437            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1438            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1439            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1440            @BeanReference(type = SubscriptionPersistence.class)
1441            protected SubscriptionPersistence subscriptionPersistence;
1442            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1443            protected com.liferay.portal.service.UserLocalService userLocalService;
1444            @BeanReference(type = com.liferay.portal.service.UserService.class)
1445            protected com.liferay.portal.service.UserService userService;
1446            @BeanReference(type = UserPersistence.class)
1447            protected UserPersistence userPersistence;
1448            @BeanReference(type = UserFinder.class)
1449            protected UserFinder userFinder;
1450            @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1451            protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1452            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1453            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1454            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1455            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1456            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1457            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1458            @BeanReference(type = AssetEntryPersistence.class)
1459            protected AssetEntryPersistence assetEntryPersistence;
1460            @BeanReference(type = AssetEntryFinder.class)
1461            protected AssetEntryFinder assetEntryFinder;
1462            @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryLocalService.class)
1463            protected com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService;
1464            @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryService.class)
1465            protected com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService;
1466            @BeanReference(type = MBCategoryPersistence.class)
1467            protected MBCategoryPersistence mbCategoryPersistence;
1468            @BeanReference(type = MBCategoryFinder.class)
1469            protected MBCategoryFinder mbCategoryFinder;
1470            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1471            protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
1472            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1473            protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1474            @BeanReference(type = MBMessagePersistence.class)
1475            protected MBMessagePersistence mbMessagePersistence;
1476            @BeanReference(type = MBMessageFinder.class)
1477            protected MBMessageFinder mbMessageFinder;
1478            @BeanReference(type = com.liferay.portlet.messageboards.service.MBStatsUserLocalService.class)
1479            protected com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService;
1480            @BeanReference(type = MBStatsUserPersistence.class)
1481            protected MBStatsUserPersistence mbStatsUserPersistence;
1482            @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
1483            protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
1484            @BeanReference(type = RatingsStatsPersistence.class)
1485            protected RatingsStatsPersistence ratingsStatsPersistence;
1486            @BeanReference(type = RatingsStatsFinder.class)
1487            protected RatingsStatsFinder ratingsStatsFinder;
1488            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1489            protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1490            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
1491            protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
1492            @BeanReference(type = SocialActivityPersistence.class)
1493            protected SocialActivityPersistence socialActivityPersistence;
1494            @BeanReference(type = SocialActivityFinder.class)
1495            protected SocialActivityFinder socialActivityFinder;
1496            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1497            protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1498            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1499            protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1500            @BeanReference(type = TrashEntryPersistence.class)
1501            protected TrashEntryPersistence trashEntryPersistence;
1502            @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
1503            protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
1504            @BeanReference(type = TrashVersionPersistence.class)
1505            protected TrashVersionPersistence trashVersionPersistence;
1506            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadFlagLocalService.class)
1507            protected com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService;
1508            @BeanReference(type = MBThreadFlagPersistence.class)
1509            protected MBThreadFlagPersistence mbThreadFlagPersistence;
1510            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1511            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1512            private String _beanIdentifier;
1513    }