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