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