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