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.exception.PortalException;
032    import com.liferay.portal.kernel.exception.SystemException;
033    import com.liferay.portal.kernel.search.Indexable;
034    import com.liferay.portal.kernel.search.IndexableType;
035    import com.liferay.portal.kernel.util.OrderByComparator;
036    import com.liferay.portal.model.PersistedModel;
037    import com.liferay.portal.service.BaseLocalServiceImpl;
038    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
039    import com.liferay.portal.service.persistence.UserFinder;
040    import com.liferay.portal.service.persistence.UserPersistence;
041    import com.liferay.portal.util.PortalUtil;
042    
043    import com.liferay.portlet.exportimport.lar.ExportImportHelperUtil;
044    import com.liferay.portlet.exportimport.lar.ManifestSummary;
045    import com.liferay.portlet.exportimport.lar.PortletDataContext;
046    import com.liferay.portlet.exportimport.lar.StagedModelDataHandlerUtil;
047    import com.liferay.portlet.exportimport.lar.StagedModelType;
048    import com.liferay.portlet.messageboards.model.MBThreadFlag;
049    import com.liferay.portlet.messageboards.service.MBThreadFlagLocalService;
050    import com.liferay.portlet.messageboards.service.persistence.MBThreadFlagPersistence;
051    
052    import java.io.Serializable;
053    
054    import java.util.List;
055    
056    import javax.sql.DataSource;
057    
058    /**
059     * Provides the base implementation for the message boards thread flag local service.
060     *
061     * <p>
062     * 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.MBThreadFlagLocalServiceImpl}.
063     * </p>
064     *
065     * @author Brian Wing Shun Chan
066     * @see com.liferay.portlet.messageboards.service.impl.MBThreadFlagLocalServiceImpl
067     * @see com.liferay.portlet.messageboards.service.MBThreadFlagLocalServiceUtil
068     * @generated
069     */
070    @ProviderType
071    public abstract class MBThreadFlagLocalServiceBaseImpl
072            extends BaseLocalServiceImpl implements MBThreadFlagLocalService,
073                    IdentifiableBean {
074            /*
075             * NOTE FOR DEVELOPERS:
076             *
077             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.messageboards.service.MBThreadFlagLocalServiceUtil} to access the message boards thread flag local service.
078             */
079    
080            /**
081             * Adds the message boards thread flag to the database. Also notifies the appropriate model listeners.
082             *
083             * @param mbThreadFlag the message boards thread flag
084             * @return the message boards thread flag that was added
085             */
086            @Indexable(type = IndexableType.REINDEX)
087            @Override
088            public MBThreadFlag addMBThreadFlag(MBThreadFlag mbThreadFlag) {
089                    mbThreadFlag.setNew(true);
090    
091                    return mbThreadFlagPersistence.update(mbThreadFlag);
092            }
093    
094            /**
095             * Creates a new message boards thread flag with the primary key. Does not add the message boards thread flag to the database.
096             *
097             * @param threadFlagId the primary key for the new message boards thread flag
098             * @return the new message boards thread flag
099             */
100            @Override
101            public MBThreadFlag createMBThreadFlag(long threadFlagId) {
102                    return mbThreadFlagPersistence.create(threadFlagId);
103            }
104    
105            /**
106             * Deletes the message boards thread flag with the primary key from the database. Also notifies the appropriate model listeners.
107             *
108             * @param threadFlagId the primary key of the message boards thread flag
109             * @return the message boards thread flag that was removed
110             * @throws PortalException if a message boards thread flag with the primary key could not be found
111             */
112            @Indexable(type = IndexableType.DELETE)
113            @Override
114            public MBThreadFlag deleteMBThreadFlag(long threadFlagId)
115                    throws PortalException {
116                    return mbThreadFlagPersistence.remove(threadFlagId);
117            }
118    
119            /**
120             * Deletes the message boards thread flag from the database. Also notifies the appropriate model listeners.
121             *
122             * @param mbThreadFlag the message boards thread flag
123             * @return the message boards thread flag that was removed
124             */
125            @Indexable(type = IndexableType.DELETE)
126            @Override
127            public MBThreadFlag deleteMBThreadFlag(MBThreadFlag mbThreadFlag) {
128                    return mbThreadFlagPersistence.remove(mbThreadFlag);
129            }
130    
131            @Override
132            public DynamicQuery dynamicQuery() {
133                    Class<?> clazz = getClass();
134    
135                    return DynamicQueryFactoryUtil.forClass(MBThreadFlag.class,
136                            clazz.getClassLoader());
137            }
138    
139            /**
140             * Performs a dynamic query on the database and returns the matching rows.
141             *
142             * @param dynamicQuery the dynamic query
143             * @return the matching rows
144             */
145            @Override
146            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
147                    return mbThreadFlagPersistence.findWithDynamicQuery(dynamicQuery);
148            }
149    
150            /**
151             * Performs a dynamic query on the database and returns a range of the matching rows.
152             *
153             * <p>
154             * 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.MBThreadFlagModelImpl}. 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.
155             * </p>
156             *
157             * @param dynamicQuery the dynamic query
158             * @param start the lower bound of the range of model instances
159             * @param end the upper bound of the range of model instances (not inclusive)
160             * @return the range of matching rows
161             */
162            @Override
163            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
164                    int end) {
165                    return mbThreadFlagPersistence.findWithDynamicQuery(dynamicQuery,
166                            start, end);
167            }
168    
169            /**
170             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
171             *
172             * <p>
173             * 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.MBThreadFlagModelImpl}. 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.
174             * </p>
175             *
176             * @param dynamicQuery the dynamic query
177             * @param start the lower bound of the range of model instances
178             * @param end the upper bound of the range of model instances (not inclusive)
179             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
180             * @return the ordered range of matching rows
181             */
182            @Override
183            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
184                    int end, OrderByComparator<T> orderByComparator) {
185                    return mbThreadFlagPersistence.findWithDynamicQuery(dynamicQuery,
186                            start, end, orderByComparator);
187            }
188    
189            /**
190             * Returns the number of rows matching the dynamic query.
191             *
192             * @param dynamicQuery the dynamic query
193             * @return the number of rows matching the dynamic query
194             */
195            @Override
196            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
197                    return mbThreadFlagPersistence.countWithDynamicQuery(dynamicQuery);
198            }
199    
200            /**
201             * Returns the number of rows matching the dynamic query.
202             *
203             * @param dynamicQuery the dynamic query
204             * @param projection the projection to apply to the query
205             * @return the number of rows matching the dynamic query
206             */
207            @Override
208            public long dynamicQueryCount(DynamicQuery dynamicQuery,
209                    Projection projection) {
210                    return mbThreadFlagPersistence.countWithDynamicQuery(dynamicQuery,
211                            projection);
212            }
213    
214            @Override
215            public MBThreadFlag fetchMBThreadFlag(long threadFlagId) {
216                    return mbThreadFlagPersistence.fetchByPrimaryKey(threadFlagId);
217            }
218    
219            /**
220             * Returns the message boards thread flag matching the UUID and group.
221             *
222             * @param uuid the message boards thread flag's UUID
223             * @param groupId the primary key of the group
224             * @return the matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found
225             */
226            @Override
227            public MBThreadFlag fetchMBThreadFlagByUuidAndGroupId(String uuid,
228                    long groupId) {
229                    return mbThreadFlagPersistence.fetchByUUID_G(uuid, groupId);
230            }
231    
232            /**
233             * Returns the message boards thread flag with the primary key.
234             *
235             * @param threadFlagId the primary key of the message boards thread flag
236             * @return the message boards thread flag
237             * @throws PortalException if a message boards thread flag with the primary key could not be found
238             */
239            @Override
240            public MBThreadFlag getMBThreadFlag(long threadFlagId)
241                    throws PortalException {
242                    return mbThreadFlagPersistence.findByPrimaryKey(threadFlagId);
243            }
244    
245            @Override
246            public ActionableDynamicQuery getActionableDynamicQuery() {
247                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
248    
249                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.messageboards.service.MBThreadFlagLocalServiceUtil.getService());
250                    actionableDynamicQuery.setClass(MBThreadFlag.class);
251                    actionableDynamicQuery.setClassLoader(getClassLoader());
252    
253                    actionableDynamicQuery.setPrimaryKeyPropertyName("threadFlagId");
254    
255                    return actionableDynamicQuery;
256            }
257    
258            protected void initActionableDynamicQuery(
259                    ActionableDynamicQuery actionableDynamicQuery) {
260                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.messageboards.service.MBThreadFlagLocalServiceUtil.getService());
261                    actionableDynamicQuery.setClass(MBThreadFlag.class);
262                    actionableDynamicQuery.setClassLoader(getClassLoader());
263    
264                    actionableDynamicQuery.setPrimaryKeyPropertyName("threadFlagId");
265            }
266    
267            @Override
268            public ExportActionableDynamicQuery getExportActionableDynamicQuery(
269                    final PortletDataContext portletDataContext) {
270                    final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
271                                    @Override
272                                    public long performCount() throws PortalException {
273                                            ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
274    
275                                            StagedModelType stagedModelType = getStagedModelType();
276    
277                                            long modelAdditionCount = super.performCount();
278    
279                                            manifestSummary.addModelAdditionCount(stagedModelType,
280                                                    modelAdditionCount);
281    
282                                            long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
283                                                            stagedModelType);
284    
285                                            manifestSummary.addModelDeletionCount(stagedModelType,
286                                                    modelDeletionCount);
287    
288                                            return modelAdditionCount;
289                                    }
290                            };
291    
292                    initActionableDynamicQuery(exportActionableDynamicQuery);
293    
294                    exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
295                                    @Override
296                                    public void addCriteria(DynamicQuery dynamicQuery) {
297                                            portletDataContext.addDateRangeCriteria(dynamicQuery,
298                                                    "modifiedDate");
299                                    }
300                            });
301    
302                    exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
303    
304                    exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
305    
306                    exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod<MBThreadFlag>() {
307                                    @Override
308                                    public void performAction(MBThreadFlag mbThreadFlag)
309                                            throws PortalException {
310                                            StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
311                                                    mbThreadFlag);
312                                    }
313                            });
314                    exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
315                                    PortalUtil.getClassNameId(MBThreadFlag.class.getName())));
316    
317                    return exportActionableDynamicQuery;
318            }
319    
320            /**
321             * @throws PortalException
322             */
323            @Override
324            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
325                    throws PortalException {
326                    return mbThreadFlagLocalService.deleteMBThreadFlag((MBThreadFlag)persistedModel);
327            }
328    
329            @Override
330            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
331                    throws PortalException {
332                    return mbThreadFlagPersistence.findByPrimaryKey(primaryKeyObj);
333            }
334    
335            /**
336             * Returns all the message boards thread flags matching the UUID and company.
337             *
338             * @param uuid the UUID of the message boards thread flags
339             * @param companyId the primary key of the company
340             * @return the matching message boards thread flags, or an empty list if no matches were found
341             */
342            @Override
343            public List<MBThreadFlag> getMBThreadFlagsByUuidAndCompanyId(String uuid,
344                    long companyId) {
345                    return mbThreadFlagPersistence.findByUuid_C(uuid, companyId);
346            }
347    
348            /**
349             * Returns a range of message boards thread flags matching the UUID and company.
350             *
351             * @param uuid the UUID of the message boards thread flags
352             * @param companyId the primary key of the company
353             * @param start the lower bound of the range of message boards thread flags
354             * @param end the upper bound of the range of message boards thread flags (not inclusive)
355             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
356             * @return the range of matching message boards thread flags, or an empty list if no matches were found
357             */
358            @Override
359            public List<MBThreadFlag> getMBThreadFlagsByUuidAndCompanyId(String uuid,
360                    long companyId, int start, int end,
361                    OrderByComparator<MBThreadFlag> orderByComparator) {
362                    return mbThreadFlagPersistence.findByUuid_C(uuid, companyId, start,
363                            end, orderByComparator);
364            }
365    
366            /**
367             * Returns the message boards thread flag matching the UUID and group.
368             *
369             * @param uuid the message boards thread flag's UUID
370             * @param groupId the primary key of the group
371             * @return the matching message boards thread flag
372             * @throws PortalException if a matching message boards thread flag could not be found
373             */
374            @Override
375            public MBThreadFlag getMBThreadFlagByUuidAndGroupId(String uuid,
376                    long groupId) throws PortalException {
377                    return mbThreadFlagPersistence.findByUUID_G(uuid, groupId);
378            }
379    
380            /**
381             * Returns a range of all the message boards thread flags.
382             *
383             * <p>
384             * 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.MBThreadFlagModelImpl}. 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.
385             * </p>
386             *
387             * @param start the lower bound of the range of message boards thread flags
388             * @param end the upper bound of the range of message boards thread flags (not inclusive)
389             * @return the range of message boards thread flags
390             */
391            @Override
392            public List<MBThreadFlag> getMBThreadFlags(int start, int end) {
393                    return mbThreadFlagPersistence.findAll(start, end);
394            }
395    
396            /**
397             * Returns the number of message boards thread flags.
398             *
399             * @return the number of message boards thread flags
400             */
401            @Override
402            public int getMBThreadFlagsCount() {
403                    return mbThreadFlagPersistence.countAll();
404            }
405    
406            /**
407             * Updates the message boards thread flag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
408             *
409             * @param mbThreadFlag the message boards thread flag
410             * @return the message boards thread flag that was updated
411             */
412            @Indexable(type = IndexableType.REINDEX)
413            @Override
414            public MBThreadFlag updateMBThreadFlag(MBThreadFlag mbThreadFlag) {
415                    return mbThreadFlagPersistence.update(mbThreadFlag);
416            }
417    
418            /**
419             * Returns the message boards thread flag local service.
420             *
421             * @return the message boards thread flag local service
422             */
423            public MBThreadFlagLocalService getMBThreadFlagLocalService() {
424                    return mbThreadFlagLocalService;
425            }
426    
427            /**
428             * Sets the message boards thread flag local service.
429             *
430             * @param mbThreadFlagLocalService the message boards thread flag local service
431             */
432            public void setMBThreadFlagLocalService(
433                    MBThreadFlagLocalService mbThreadFlagLocalService) {
434                    this.mbThreadFlagLocalService = mbThreadFlagLocalService;
435            }
436    
437            /**
438             * Returns the message boards thread flag persistence.
439             *
440             * @return the message boards thread flag persistence
441             */
442            public MBThreadFlagPersistence getMBThreadFlagPersistence() {
443                    return mbThreadFlagPersistence;
444            }
445    
446            /**
447             * Sets the message boards thread flag persistence.
448             *
449             * @param mbThreadFlagPersistence the message boards thread flag persistence
450             */
451            public void setMBThreadFlagPersistence(
452                    MBThreadFlagPersistence mbThreadFlagPersistence) {
453                    this.mbThreadFlagPersistence = mbThreadFlagPersistence;
454            }
455    
456            /**
457             * Returns the counter local service.
458             *
459             * @return the counter local service
460             */
461            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
462                    return counterLocalService;
463            }
464    
465            /**
466             * Sets the counter local service.
467             *
468             * @param counterLocalService the counter local service
469             */
470            public void setCounterLocalService(
471                    com.liferay.counter.service.CounterLocalService counterLocalService) {
472                    this.counterLocalService = counterLocalService;
473            }
474    
475            /**
476             * Returns the user local service.
477             *
478             * @return the user local service
479             */
480            public com.liferay.portal.service.UserLocalService getUserLocalService() {
481                    return userLocalService;
482            }
483    
484            /**
485             * Sets the user local service.
486             *
487             * @param userLocalService the user local service
488             */
489            public void setUserLocalService(
490                    com.liferay.portal.service.UserLocalService userLocalService) {
491                    this.userLocalService = userLocalService;
492            }
493    
494            /**
495             * Returns the user remote service.
496             *
497             * @return the user remote service
498             */
499            public com.liferay.portal.service.UserService getUserService() {
500                    return userService;
501            }
502    
503            /**
504             * Sets the user remote service.
505             *
506             * @param userService the user remote service
507             */
508            public void setUserService(
509                    com.liferay.portal.service.UserService userService) {
510                    this.userService = userService;
511            }
512    
513            /**
514             * Returns the user persistence.
515             *
516             * @return the user persistence
517             */
518            public UserPersistence getUserPersistence() {
519                    return userPersistence;
520            }
521    
522            /**
523             * Sets the user persistence.
524             *
525             * @param userPersistence the user persistence
526             */
527            public void setUserPersistence(UserPersistence userPersistence) {
528                    this.userPersistence = userPersistence;
529            }
530    
531            /**
532             * Returns the user finder.
533             *
534             * @return the user finder
535             */
536            public UserFinder getUserFinder() {
537                    return userFinder;
538            }
539    
540            /**
541             * Sets the user finder.
542             *
543             * @param userFinder the user finder
544             */
545            public void setUserFinder(UserFinder userFinder) {
546                    this.userFinder = userFinder;
547            }
548    
549            public void afterPropertiesSet() {
550                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBThreadFlag",
551                            mbThreadFlagLocalService);
552            }
553    
554            public void destroy() {
555                    persistedModelLocalServiceRegistry.unregister(
556                            "com.liferay.portlet.messageboards.model.MBThreadFlag");
557            }
558    
559            /**
560             * Returns the Spring bean ID for this bean.
561             *
562             * @return the Spring bean ID for this bean
563             */
564            @Override
565            public String getBeanIdentifier() {
566                    return _beanIdentifier;
567            }
568    
569            /**
570             * Sets the Spring bean ID for this bean.
571             *
572             * @param beanIdentifier the Spring bean ID for this bean
573             */
574            @Override
575            public void setBeanIdentifier(String beanIdentifier) {
576                    _beanIdentifier = beanIdentifier;
577            }
578    
579            protected Class<?> getModelClass() {
580                    return MBThreadFlag.class;
581            }
582    
583            protected String getModelClassName() {
584                    return MBThreadFlag.class.getName();
585            }
586    
587            /**
588             * Performs a SQL query.
589             *
590             * @param sql the sql query
591             */
592            protected void runSQL(String sql) {
593                    try {
594                            DataSource dataSource = mbThreadFlagPersistence.getDataSource();
595    
596                            DB db = DBFactoryUtil.getDB();
597    
598                            sql = db.buildSQL(sql);
599                            sql = PortalUtil.transformSQL(sql);
600    
601                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
602                                            sql, new int[0]);
603    
604                            sqlUpdate.update();
605                    }
606                    catch (Exception e) {
607                            throw new SystemException(e);
608                    }
609            }
610    
611            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadFlagLocalService.class)
612            protected MBThreadFlagLocalService mbThreadFlagLocalService;
613            @BeanReference(type = MBThreadFlagPersistence.class)
614            protected MBThreadFlagPersistence mbThreadFlagPersistence;
615            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
616            protected com.liferay.counter.service.CounterLocalService counterLocalService;
617            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
618            protected com.liferay.portal.service.UserLocalService userLocalService;
619            @BeanReference(type = com.liferay.portal.service.UserService.class)
620            protected com.liferay.portal.service.UserService userService;
621            @BeanReference(type = UserPersistence.class)
622            protected UserPersistence userPersistence;
623            @BeanReference(type = UserFinder.class)
624            protected UserFinder userFinder;
625            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
626            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
627            private String _beanIdentifier;
628    }