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.lar.ExportImportHelperUtil;
034    import com.liferay.portal.kernel.lar.ManifestSummary;
035    import com.liferay.portal.kernel.lar.PortletDataContext;
036    import com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil;
037    import com.liferay.portal.kernel.lar.StagedModelType;
038    import com.liferay.portal.kernel.search.Indexable;
039    import com.liferay.portal.kernel.search.IndexableType;
040    import com.liferay.portal.kernel.util.OrderByComparator;
041    import com.liferay.portal.model.PersistedModel;
042    import com.liferay.portal.service.BaseLocalServiceImpl;
043    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
044    import com.liferay.portal.service.persistence.SystemEventPersistence;
045    import com.liferay.portal.service.persistence.UserFinder;
046    import com.liferay.portal.service.persistence.UserPersistence;
047    import com.liferay.portal.util.PortalUtil;
048    
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, IdentifiableBean {
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 that match the dynamic query.
189             *
190             * @param dynamicQuery the dynamic query
191             * @return the number of rows that match 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 that match 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 that match 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.toString(),
275                                                    modelAdditionCount);
276    
277                                            long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
278                                                            stagedModelType);
279    
280                                            manifestSummary.addModelDeletionCount(stagedModelType.toString(),
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() {
302                                    @Override
303                                    public void performAction(Object object)
304                                            throws PortalException {
305                                            MBBan stagedModel = (MBBan)object;
306    
307                                            StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
308                                                    stagedModel);
309                                    }
310                            });
311                    exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
312                                    PortalUtil.getClassNameId(MBBan.class.getName())));
313    
314                    return exportActionableDynamicQuery;
315            }
316    
317            /**
318             * @throws PortalException
319             */
320            @Override
321            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
322                    throws PortalException {
323                    return mbBanLocalService.deleteMBBan((MBBan)persistedModel);
324            }
325    
326            @Override
327            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
328                    throws PortalException {
329                    return mbBanPersistence.findByPrimaryKey(primaryKeyObj);
330            }
331    
332            @Override
333            public List<MBBan> getMBBansByUuidAndCompanyId(String uuid, long companyId) {
334                    return mbBanPersistence.findByUuid_C(uuid, companyId);
335            }
336    
337            @Override
338            public List<MBBan> getMBBansByUuidAndCompanyId(String uuid, long companyId,
339                    int start, int end, OrderByComparator<MBBan> orderByComparator) {
340                    return mbBanPersistence.findByUuid_C(uuid, companyId, start, end,
341                            orderByComparator);
342            }
343    
344            /**
345             * Returns the message boards ban matching the UUID and group.
346             *
347             * @param uuid the message boards ban's UUID
348             * @param groupId the primary key of the group
349             * @return the matching message boards ban
350             * @throws PortalException if a matching message boards ban could not be found
351             */
352            @Override
353            public MBBan getMBBanByUuidAndGroupId(String uuid, long groupId)
354                    throws PortalException {
355                    return mbBanPersistence.findByUUID_G(uuid, groupId);
356            }
357    
358            /**
359             * Returns a range of all the message boards bans.
360             *
361             * <p>
362             * 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.
363             * </p>
364             *
365             * @param start the lower bound of the range of message boards bans
366             * @param end the upper bound of the range of message boards bans (not inclusive)
367             * @return the range of message boards bans
368             */
369            @Override
370            public List<MBBan> getMBBans(int start, int end) {
371                    return mbBanPersistence.findAll(start, end);
372            }
373    
374            /**
375             * Returns the number of message boards bans.
376             *
377             * @return the number of message boards bans
378             */
379            @Override
380            public int getMBBansCount() {
381                    return mbBanPersistence.countAll();
382            }
383    
384            /**
385             * Updates the message boards ban in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
386             *
387             * @param mbBan the message boards ban
388             * @return the message boards ban that was updated
389             */
390            @Indexable(type = IndexableType.REINDEX)
391            @Override
392            public MBBan updateMBBan(MBBan mbBan) {
393                    return mbBanPersistence.update(mbBan);
394            }
395    
396            /**
397             * Returns the message boards ban local service.
398             *
399             * @return the message boards ban local service
400             */
401            public com.liferay.portlet.messageboards.service.MBBanLocalService getMBBanLocalService() {
402                    return mbBanLocalService;
403            }
404    
405            /**
406             * Sets the message boards ban local service.
407             *
408             * @param mbBanLocalService the message boards ban local service
409             */
410            public void setMBBanLocalService(
411                    com.liferay.portlet.messageboards.service.MBBanLocalService mbBanLocalService) {
412                    this.mbBanLocalService = mbBanLocalService;
413            }
414    
415            /**
416             * Returns the message boards ban remote service.
417             *
418             * @return the message boards ban remote service
419             */
420            public com.liferay.portlet.messageboards.service.MBBanService getMBBanService() {
421                    return mbBanService;
422            }
423    
424            /**
425             * Sets the message boards ban remote service.
426             *
427             * @param mbBanService the message boards ban remote service
428             */
429            public void setMBBanService(
430                    com.liferay.portlet.messageboards.service.MBBanService mbBanService) {
431                    this.mbBanService = mbBanService;
432            }
433    
434            /**
435             * Returns the message boards ban persistence.
436             *
437             * @return the message boards ban persistence
438             */
439            public MBBanPersistence getMBBanPersistence() {
440                    return mbBanPersistence;
441            }
442    
443            /**
444             * Sets the message boards ban persistence.
445             *
446             * @param mbBanPersistence the message boards ban persistence
447             */
448            public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
449                    this.mbBanPersistence = mbBanPersistence;
450            }
451    
452            /**
453             * Returns the counter local service.
454             *
455             * @return the counter local service
456             */
457            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
458                    return counterLocalService;
459            }
460    
461            /**
462             * Sets the counter local service.
463             *
464             * @param counterLocalService the counter local service
465             */
466            public void setCounterLocalService(
467                    com.liferay.counter.service.CounterLocalService counterLocalService) {
468                    this.counterLocalService = counterLocalService;
469            }
470    
471            /**
472             * Returns the system event local service.
473             *
474             * @return the system event local service
475             */
476            public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
477                    return systemEventLocalService;
478            }
479    
480            /**
481             * Sets the system event local service.
482             *
483             * @param systemEventLocalService the system event local service
484             */
485            public void setSystemEventLocalService(
486                    com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
487                    this.systemEventLocalService = systemEventLocalService;
488            }
489    
490            /**
491             * Returns the system event persistence.
492             *
493             * @return the system event persistence
494             */
495            public SystemEventPersistence getSystemEventPersistence() {
496                    return systemEventPersistence;
497            }
498    
499            /**
500             * Sets the system event persistence.
501             *
502             * @param systemEventPersistence the system event persistence
503             */
504            public void setSystemEventPersistence(
505                    SystemEventPersistence systemEventPersistence) {
506                    this.systemEventPersistence = systemEventPersistence;
507            }
508    
509            /**
510             * Returns the user local service.
511             *
512             * @return the user local service
513             */
514            public com.liferay.portal.service.UserLocalService getUserLocalService() {
515                    return userLocalService;
516            }
517    
518            /**
519             * Sets the user local service.
520             *
521             * @param userLocalService the user local service
522             */
523            public void setUserLocalService(
524                    com.liferay.portal.service.UserLocalService userLocalService) {
525                    this.userLocalService = userLocalService;
526            }
527    
528            /**
529             * Returns the user remote service.
530             *
531             * @return the user remote service
532             */
533            public com.liferay.portal.service.UserService getUserService() {
534                    return userService;
535            }
536    
537            /**
538             * Sets the user remote service.
539             *
540             * @param userService the user remote service
541             */
542            public void setUserService(
543                    com.liferay.portal.service.UserService userService) {
544                    this.userService = userService;
545            }
546    
547            /**
548             * Returns the user persistence.
549             *
550             * @return the user persistence
551             */
552            public UserPersistence getUserPersistence() {
553                    return userPersistence;
554            }
555    
556            /**
557             * Sets the user persistence.
558             *
559             * @param userPersistence the user persistence
560             */
561            public void setUserPersistence(UserPersistence userPersistence) {
562                    this.userPersistence = userPersistence;
563            }
564    
565            /**
566             * Returns the user finder.
567             *
568             * @return the user finder
569             */
570            public UserFinder getUserFinder() {
571                    return userFinder;
572            }
573    
574            /**
575             * Sets the user finder.
576             *
577             * @param userFinder the user finder
578             */
579            public void setUserFinder(UserFinder userFinder) {
580                    this.userFinder = userFinder;
581            }
582    
583            public void afterPropertiesSet() {
584                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBBan",
585                            mbBanLocalService);
586            }
587    
588            public void destroy() {
589                    persistedModelLocalServiceRegistry.unregister(
590                            "com.liferay.portlet.messageboards.model.MBBan");
591            }
592    
593            /**
594             * Returns the Spring bean ID for this bean.
595             *
596             * @return the Spring bean ID for this bean
597             */
598            @Override
599            public String getBeanIdentifier() {
600                    return _beanIdentifier;
601            }
602    
603            /**
604             * Sets the Spring bean ID for this bean.
605             *
606             * @param beanIdentifier the Spring bean ID for this bean
607             */
608            @Override
609            public void setBeanIdentifier(String beanIdentifier) {
610                    _beanIdentifier = beanIdentifier;
611            }
612    
613            protected Class<?> getModelClass() {
614                    return MBBan.class;
615            }
616    
617            protected String getModelClassName() {
618                    return MBBan.class.getName();
619            }
620    
621            /**
622             * Performs a SQL query.
623             *
624             * @param sql the sql query
625             */
626            protected void runSQL(String sql) {
627                    try {
628                            DataSource dataSource = mbBanPersistence.getDataSource();
629    
630                            DB db = DBFactoryUtil.getDB();
631    
632                            sql = db.buildSQL(sql);
633                            sql = PortalUtil.transformSQL(sql);
634    
635                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
636                                            sql, new int[0]);
637    
638                            sqlUpdate.update();
639                    }
640                    catch (Exception e) {
641                            throw new SystemException(e);
642                    }
643            }
644    
645            @BeanReference(type = com.liferay.portlet.messageboards.service.MBBanLocalService.class)
646            protected com.liferay.portlet.messageboards.service.MBBanLocalService mbBanLocalService;
647            @BeanReference(type = com.liferay.portlet.messageboards.service.MBBanService.class)
648            protected com.liferay.portlet.messageboards.service.MBBanService mbBanService;
649            @BeanReference(type = MBBanPersistence.class)
650            protected MBBanPersistence mbBanPersistence;
651            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
652            protected com.liferay.counter.service.CounterLocalService counterLocalService;
653            @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
654            protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
655            @BeanReference(type = SystemEventPersistence.class)
656            protected SystemEventPersistence systemEventPersistence;
657            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
658            protected com.liferay.portal.service.UserLocalService userLocalService;
659            @BeanReference(type = com.liferay.portal.service.UserService.class)
660            protected com.liferay.portal.service.UserService userService;
661            @BeanReference(type = UserPersistence.class)
662            protected UserPersistence userPersistence;
663            @BeanReference(type = UserFinder.class)
664            protected UserFinder userFinder;
665            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
666            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
667            private String _beanIdentifier;
668    }