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