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