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