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