001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service.base;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.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.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.service.BaseLocalServiceImpl;
038    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
039    import com.liferay.portal.service.persistence.UserFinder;
040    import com.liferay.portal.service.persistence.UserPersistence;
041    import com.liferay.portal.util.PortalUtil;
042    
043    import com.liferay.portlet.exportimport.lar.ExportImportHelperUtil;
044    import com.liferay.portlet.exportimport.lar.ManifestSummary;
045    import com.liferay.portlet.exportimport.lar.PortletDataContext;
046    import com.liferay.portlet.exportimport.lar.StagedModelDataHandlerUtil;
047    import com.liferay.portlet.exportimport.lar.StagedModelType;
048    import com.liferay.portlet.messageboards.model.MBMailingList;
049    import com.liferay.portlet.messageboards.service.MBMailingListLocalService;
050    import com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence;
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 message boards mailing list 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.portlet.messageboards.service.impl.MBMailingListLocalServiceImpl}.
063     * </p>
064     *
065     * @author Brian Wing Shun Chan
066     * @see com.liferay.portlet.messageboards.service.impl.MBMailingListLocalServiceImpl
067     * @see com.liferay.portlet.messageboards.service.MBMailingListLocalServiceUtil
068     * @generated
069     */
070    @ProviderType
071    public abstract class MBMailingListLocalServiceBaseImpl
072            extends BaseLocalServiceImpl implements MBMailingListLocalService,
073                    IdentifiableBean {
074            /*
075             * NOTE FOR DEVELOPERS:
076             *
077             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.messageboards.service.MBMailingListLocalServiceUtil} to access the message boards mailing list local service.
078             */
079    
080            /**
081             * Adds the message boards mailing list to the database. Also notifies the appropriate model listeners.
082             *
083             * @param mbMailingList the message boards mailing list
084             * @return the message boards mailing list that was added
085             */
086            @Indexable(type = IndexableType.REINDEX)
087            @Override
088            public MBMailingList addMBMailingList(MBMailingList mbMailingList) {
089                    mbMailingList.setNew(true);
090    
091                    return mbMailingListPersistence.update(mbMailingList);
092            }
093    
094            /**
095             * Creates a new message boards mailing list with the primary key. Does not add the message boards mailing list to the database.
096             *
097             * @param mailingListId the primary key for the new message boards mailing list
098             * @return the new message boards mailing list
099             */
100            @Override
101            public MBMailingList createMBMailingList(long mailingListId) {
102                    return mbMailingListPersistence.create(mailingListId);
103            }
104    
105            /**
106             * Deletes the message boards mailing list with the primary key from the database. Also notifies the appropriate model listeners.
107             *
108             * @param mailingListId the primary key of the message boards mailing list
109             * @return the message boards mailing list that was removed
110             * @throws PortalException if a message boards mailing list with the primary key could not be found
111             */
112            @Indexable(type = IndexableType.DELETE)
113            @Override
114            public MBMailingList deleteMBMailingList(long mailingListId)
115                    throws PortalException {
116                    return mbMailingListPersistence.remove(mailingListId);
117            }
118    
119            /**
120             * Deletes the message boards mailing list from the database. Also notifies the appropriate model listeners.
121             *
122             * @param mbMailingList the message boards mailing list
123             * @return the message boards mailing list that was removed
124             */
125            @Indexable(type = IndexableType.DELETE)
126            @Override
127            public MBMailingList deleteMBMailingList(MBMailingList mbMailingList) {
128                    return mbMailingListPersistence.remove(mbMailingList);
129            }
130    
131            @Override
132            public DynamicQuery dynamicQuery() {
133                    Class<?> clazz = getClass();
134    
135                    return DynamicQueryFactoryUtil.forClass(MBMailingList.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 mbMailingListPersistence.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.portlet.messageboards.model.impl.MBMailingListModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 mbMailingListPersistence.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.portlet.messageboards.model.impl.MBMailingListModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 mbMailingListPersistence.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 mbMailingListPersistence.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 mbMailingListPersistence.countWithDynamicQuery(dynamicQuery,
211                            projection);
212            }
213    
214            @Override
215            public MBMailingList fetchMBMailingList(long mailingListId) {
216                    return mbMailingListPersistence.fetchByPrimaryKey(mailingListId);
217            }
218    
219            /**
220             * Returns the message boards mailing list matching the UUID and group.
221             *
222             * @param uuid the message boards mailing list's UUID
223             * @param groupId the primary key of the group
224             * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
225             */
226            @Override
227            public MBMailingList fetchMBMailingListByUuidAndGroupId(String uuid,
228                    long groupId) {
229                    return mbMailingListPersistence.fetchByUUID_G(uuid, groupId);
230            }
231    
232            /**
233             * Returns the message boards mailing list with the primary key.
234             *
235             * @param mailingListId the primary key of the message boards mailing list
236             * @return the message boards mailing list
237             * @throws PortalException if a message boards mailing list with the primary key could not be found
238             */
239            @Override
240            public MBMailingList getMBMailingList(long mailingListId)
241                    throws PortalException {
242                    return mbMailingListPersistence.findByPrimaryKey(mailingListId);
243            }
244    
245            @Override
246            public ActionableDynamicQuery getActionableDynamicQuery() {
247                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
248    
249                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.messageboards.service.MBMailingListLocalServiceUtil.getService());
250                    actionableDynamicQuery.setClass(MBMailingList.class);
251                    actionableDynamicQuery.setClassLoader(getClassLoader());
252    
253                    actionableDynamicQuery.setPrimaryKeyPropertyName("mailingListId");
254    
255                    return actionableDynamicQuery;
256            }
257    
258            protected void initActionableDynamicQuery(
259                    ActionableDynamicQuery actionableDynamicQuery) {
260                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.messageboards.service.MBMailingListLocalServiceUtil.getService());
261                    actionableDynamicQuery.setClass(MBMailingList.class);
262                    actionableDynamicQuery.setClassLoader(getClassLoader());
263    
264                    actionableDynamicQuery.setPrimaryKeyPropertyName("mailingListId");
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                                            MBMailingList stagedModel = (MBMailingList)object;
311    
312                                            StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
313                                                    stagedModel);
314                                    }
315                            });
316                    exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
317                                    PortalUtil.getClassNameId(MBMailingList.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 mbMailingListLocalService.deleteMBMailingList((MBMailingList)persistedModel);
329            }
330    
331            @Override
332            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
333                    throws PortalException {
334                    return mbMailingListPersistence.findByPrimaryKey(primaryKeyObj);
335            }
336    
337            /**
338             * Returns all the message boards mailing lists matching the UUID and company.
339             *
340             * @param uuid the UUID of the message boards mailing lists
341             * @param companyId the primary key of the company
342             * @return the matching message boards mailing lists, or an empty list if no matches were found
343             */
344            @Override
345            public List<MBMailingList> getMBMailingListsByUuidAndCompanyId(
346                    String uuid, long companyId) {
347                    return mbMailingListPersistence.findByUuid_C(uuid, companyId);
348            }
349    
350            /**
351             * Returns a range of message boards mailing lists matching the UUID and company.
352             *
353             * @param uuid the UUID of the message boards mailing lists
354             * @param companyId the primary key of the company
355             * @param start the lower bound of the range of message boards mailing lists
356             * @param end the upper bound of the range of message boards mailing lists (not inclusive)
357             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
358             * @return the range of matching message boards mailing lists, or an empty list if no matches were found
359             */
360            @Override
361            public List<MBMailingList> getMBMailingListsByUuidAndCompanyId(
362                    String uuid, long companyId, int start, int end,
363                    OrderByComparator<MBMailingList> orderByComparator) {
364                    return mbMailingListPersistence.findByUuid_C(uuid, companyId, start,
365                            end, orderByComparator);
366            }
367    
368            /**
369             * Returns the message boards mailing list matching the UUID and group.
370             *
371             * @param uuid the message boards mailing list's UUID
372             * @param groupId the primary key of the group
373             * @return the matching message boards mailing list
374             * @throws PortalException if a matching message boards mailing list could not be found
375             */
376            @Override
377            public MBMailingList getMBMailingListByUuidAndGroupId(String uuid,
378                    long groupId) throws PortalException {
379                    return mbMailingListPersistence.findByUUID_G(uuid, groupId);
380            }
381    
382            /**
383             * Returns a range of all the message boards mailing lists.
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.portlet.messageboards.model.impl.MBMailingListModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
387             * </p>
388             *
389             * @param start the lower bound of the range of message boards mailing lists
390             * @param end the upper bound of the range of message boards mailing lists (not inclusive)
391             * @return the range of message boards mailing lists
392             */
393            @Override
394            public List<MBMailingList> getMBMailingLists(int start, int end) {
395                    return mbMailingListPersistence.findAll(start, end);
396            }
397    
398            /**
399             * Returns the number of message boards mailing lists.
400             *
401             * @return the number of message boards mailing lists
402             */
403            @Override
404            public int getMBMailingListsCount() {
405                    return mbMailingListPersistence.countAll();
406            }
407    
408            /**
409             * Updates the message boards mailing list in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
410             *
411             * @param mbMailingList the message boards mailing list
412             * @return the message boards mailing list that was updated
413             */
414            @Indexable(type = IndexableType.REINDEX)
415            @Override
416            public MBMailingList updateMBMailingList(MBMailingList mbMailingList) {
417                    return mbMailingListPersistence.update(mbMailingList);
418            }
419    
420            /**
421             * Returns the message boards mailing list local service.
422             *
423             * @return the message boards mailing list local service
424             */
425            public MBMailingListLocalService getMBMailingListLocalService() {
426                    return mbMailingListLocalService;
427            }
428    
429            /**
430             * Sets the message boards mailing list local service.
431             *
432             * @param mbMailingListLocalService the message boards mailing list local service
433             */
434            public void setMBMailingListLocalService(
435                    MBMailingListLocalService mbMailingListLocalService) {
436                    this.mbMailingListLocalService = mbMailingListLocalService;
437            }
438    
439            /**
440             * Returns the message boards mailing list persistence.
441             *
442             * @return the message boards mailing list persistence
443             */
444            public MBMailingListPersistence getMBMailingListPersistence() {
445                    return mbMailingListPersistence;
446            }
447    
448            /**
449             * Sets the message boards mailing list persistence.
450             *
451             * @param mbMailingListPersistence the message boards mailing list persistence
452             */
453            public void setMBMailingListPersistence(
454                    MBMailingListPersistence mbMailingListPersistence) {
455                    this.mbMailingListPersistence = mbMailingListPersistence;
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.portlet.messageboards.model.MBMailingList",
553                            mbMailingListLocalService);
554            }
555    
556            public void destroy() {
557                    persistedModelLocalServiceRegistry.unregister(
558                            "com.liferay.portlet.messageboards.model.MBMailingList");
559            }
560    
561            /**
562             * Returns the Spring bean ID for this bean.
563             *
564             * @return the Spring bean ID for this bean
565             */
566            @Override
567            public String getBeanIdentifier() {
568                    return _beanIdentifier;
569            }
570    
571            /**
572             * Sets the Spring bean ID for this bean.
573             *
574             * @param beanIdentifier the Spring bean ID for this bean
575             */
576            @Override
577            public void setBeanIdentifier(String beanIdentifier) {
578                    _beanIdentifier = beanIdentifier;
579            }
580    
581            protected Class<?> getModelClass() {
582                    return MBMailingList.class;
583            }
584    
585            protected String getModelClassName() {
586                    return MBMailingList.class.getName();
587            }
588    
589            /**
590             * Performs a SQL query.
591             *
592             * @param sql the sql query
593             */
594            protected void runSQL(String sql) {
595                    try {
596                            DataSource dataSource = mbMailingListPersistence.getDataSource();
597    
598                            DB db = DBFactoryUtil.getDB();
599    
600                            sql = db.buildSQL(sql);
601                            sql = PortalUtil.transformSQL(sql);
602    
603                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
604                                            sql, new int[0]);
605    
606                            sqlUpdate.update();
607                    }
608                    catch (Exception e) {
609                            throw new SystemException(e);
610                    }
611            }
612    
613            @BeanReference(type = MBMailingListLocalService.class)
614            protected MBMailingListLocalService mbMailingListLocalService;
615            @BeanReference(type = MBMailingListPersistence.class)
616            protected MBMailingListPersistence mbMailingListPersistence;
617            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
618            protected com.liferay.counter.service.CounterLocalService counterLocalService;
619            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
620            protected com.liferay.portal.service.UserLocalService userLocalService;
621            @BeanReference(type = com.liferay.portal.service.UserService.class)
622            protected com.liferay.portal.service.UserService userService;
623            @BeanReference(type = UserPersistence.class)
624            protected UserPersistence userPersistence;
625            @BeanReference(type = UserFinder.class)
626            protected UserFinder userFinder;
627            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
628            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
629            private String _beanIdentifier;
630    }