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