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.trash.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.IndexableActionableDynamicQuery;
029    import com.liferay.portal.kernel.dao.orm.Projection;
030    import com.liferay.portal.kernel.exception.PortalException;
031    import com.liferay.portal.kernel.exception.SystemException;
032    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
033    import com.liferay.portal.kernel.search.Indexable;
034    import com.liferay.portal.kernel.search.IndexableType;
035    import com.liferay.portal.kernel.util.OrderByComparator;
036    import com.liferay.portal.model.PersistedModel;
037    import com.liferay.portal.service.BaseLocalServiceImpl;
038    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
039    import com.liferay.portal.service.persistence.ClassNamePersistence;
040    import com.liferay.portal.service.persistence.GroupFinder;
041    import com.liferay.portal.service.persistence.GroupPersistence;
042    import com.liferay.portal.service.persistence.SystemEventPersistence;
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.trash.model.TrashEntry;
048    import com.liferay.portlet.trash.service.TrashEntryLocalService;
049    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
050    import com.liferay.portlet.trash.service.persistence.TrashVersionPersistence;
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 trash entry local service.
060     *
061     * <p>
062     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.trash.service.impl.TrashEntryLocalServiceImpl}.
063     * </p>
064     *
065     * @author Brian Wing Shun Chan
066     * @see com.liferay.portlet.trash.service.impl.TrashEntryLocalServiceImpl
067     * @see com.liferay.portlet.trash.service.TrashEntryLocalServiceUtil
068     * @generated
069     */
070    @ProviderType
071    public abstract class TrashEntryLocalServiceBaseImpl
072            extends BaseLocalServiceImpl implements TrashEntryLocalService,
073                    IdentifiableOSGiService {
074            /*
075             * NOTE FOR DEVELOPERS:
076             *
077             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.trash.service.TrashEntryLocalServiceUtil} to access the trash entry local service.
078             */
079    
080            /**
081             * Adds the trash entry to the database. Also notifies the appropriate model listeners.
082             *
083             * @param trashEntry the trash entry
084             * @return the trash entry that was added
085             */
086            @Indexable(type = IndexableType.REINDEX)
087            @Override
088            public TrashEntry addTrashEntry(TrashEntry trashEntry) {
089                    trashEntry.setNew(true);
090    
091                    return trashEntryPersistence.update(trashEntry);
092            }
093    
094            /**
095             * Creates a new trash entry with the primary key. Does not add the trash entry to the database.
096             *
097             * @param entryId the primary key for the new trash entry
098             * @return the new trash entry
099             */
100            @Override
101            public TrashEntry createTrashEntry(long entryId) {
102                    return trashEntryPersistence.create(entryId);
103            }
104    
105            /**
106             * Deletes the trash entry with the primary key from the database. Also notifies the appropriate model listeners.
107             *
108             * @param entryId the primary key of the trash entry
109             * @return the trash entry that was removed
110             * @throws PortalException if a trash entry with the primary key could not be found
111             */
112            @Indexable(type = IndexableType.DELETE)
113            @Override
114            public TrashEntry deleteTrashEntry(long entryId) throws PortalException {
115                    return trashEntryPersistence.remove(entryId);
116            }
117    
118            /**
119             * Deletes the trash entry from the database. Also notifies the appropriate model listeners.
120             *
121             * @param trashEntry the trash entry
122             * @return the trash entry that was removed
123             */
124            @Indexable(type = IndexableType.DELETE)
125            @Override
126            public TrashEntry deleteTrashEntry(TrashEntry trashEntry) {
127                    return trashEntryPersistence.remove(trashEntry);
128            }
129    
130            @Override
131            public DynamicQuery dynamicQuery() {
132                    Class<?> clazz = getClass();
133    
134                    return DynamicQueryFactoryUtil.forClass(TrashEntry.class,
135                            clazz.getClassLoader());
136            }
137    
138            /**
139             * Performs a dynamic query on the database and returns the matching rows.
140             *
141             * @param dynamicQuery the dynamic query
142             * @return the matching rows
143             */
144            @Override
145            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
146                    return trashEntryPersistence.findWithDynamicQuery(dynamicQuery);
147            }
148    
149            /**
150             * Performs a dynamic query on the database and returns a range of the matching rows.
151             *
152             * <p>
153             * 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.trash.model.impl.TrashEntryModelImpl}. 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.
154             * </p>
155             *
156             * @param dynamicQuery the dynamic query
157             * @param start the lower bound of the range of model instances
158             * @param end the upper bound of the range of model instances (not inclusive)
159             * @return the range of matching rows
160             */
161            @Override
162            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
163                    int end) {
164                    return trashEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
165                            end);
166            }
167    
168            /**
169             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
170             *
171             * <p>
172             * 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.trash.model.impl.TrashEntryModelImpl}. 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.
173             * </p>
174             *
175             * @param dynamicQuery the dynamic query
176             * @param start the lower bound of the range of model instances
177             * @param end the upper bound of the range of model instances (not inclusive)
178             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
179             * @return the ordered range of matching rows
180             */
181            @Override
182            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
183                    int end, OrderByComparator<T> orderByComparator) {
184                    return trashEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
185                            end, orderByComparator);
186            }
187    
188            /**
189             * Returns the number of rows matching the dynamic query.
190             *
191             * @param dynamicQuery the dynamic query
192             * @return the number of rows matching the dynamic query
193             */
194            @Override
195            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
196                    return trashEntryPersistence.countWithDynamicQuery(dynamicQuery);
197            }
198    
199            /**
200             * Returns the number of rows matching the dynamic query.
201             *
202             * @param dynamicQuery the dynamic query
203             * @param projection the projection to apply to the query
204             * @return the number of rows matching the dynamic query
205             */
206            @Override
207            public long dynamicQueryCount(DynamicQuery dynamicQuery,
208                    Projection projection) {
209                    return trashEntryPersistence.countWithDynamicQuery(dynamicQuery,
210                            projection);
211            }
212    
213            @Override
214            public TrashEntry fetchTrashEntry(long entryId) {
215                    return trashEntryPersistence.fetchByPrimaryKey(entryId);
216            }
217    
218            /**
219             * Returns the trash entry with the primary key.
220             *
221             * @param entryId the primary key of the trash entry
222             * @return the trash entry
223             * @throws PortalException if a trash entry with the primary key could not be found
224             */
225            @Override
226            public TrashEntry getTrashEntry(long entryId) throws PortalException {
227                    return trashEntryPersistence.findByPrimaryKey(entryId);
228            }
229    
230            @Override
231            public ActionableDynamicQuery getActionableDynamicQuery() {
232                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
233    
234                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.trash.service.TrashEntryLocalServiceUtil.getService());
235                    actionableDynamicQuery.setClassLoader(getClassLoader());
236                    actionableDynamicQuery.setModelClass(TrashEntry.class);
237    
238                    actionableDynamicQuery.setPrimaryKeyPropertyName("entryId");
239    
240                    return actionableDynamicQuery;
241            }
242    
243            @Override
244            public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
245                    IndexableActionableDynamicQuery indexableActionableDynamicQuery = new IndexableActionableDynamicQuery();
246    
247                    indexableActionableDynamicQuery.setBaseLocalService(com.liferay.portlet.trash.service.TrashEntryLocalServiceUtil.getService());
248                    indexableActionableDynamicQuery.setClassLoader(getClassLoader());
249                    indexableActionableDynamicQuery.setModelClass(TrashEntry.class);
250    
251                    indexableActionableDynamicQuery.setPrimaryKeyPropertyName("entryId");
252    
253                    return indexableActionableDynamicQuery;
254            }
255    
256            protected void initActionableDynamicQuery(
257                    ActionableDynamicQuery actionableDynamicQuery) {
258                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.trash.service.TrashEntryLocalServiceUtil.getService());
259                    actionableDynamicQuery.setClassLoader(getClassLoader());
260                    actionableDynamicQuery.setModelClass(TrashEntry.class);
261    
262                    actionableDynamicQuery.setPrimaryKeyPropertyName("entryId");
263            }
264    
265            /**
266             * @throws PortalException
267             */
268            @Override
269            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
270                    throws PortalException {
271                    return trashEntryLocalService.deleteTrashEntry((TrashEntry)persistedModel);
272            }
273    
274            @Override
275            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
276                    throws PortalException {
277                    return trashEntryPersistence.findByPrimaryKey(primaryKeyObj);
278            }
279    
280            /**
281             * Returns a range of all the trash entries.
282             *
283             * <p>
284             * 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.trash.model.impl.TrashEntryModelImpl}. 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.
285             * </p>
286             *
287             * @param start the lower bound of the range of trash entries
288             * @param end the upper bound of the range of trash entries (not inclusive)
289             * @return the range of trash entries
290             */
291            @Override
292            public List<TrashEntry> getTrashEntries(int start, int end) {
293                    return trashEntryPersistence.findAll(start, end);
294            }
295    
296            /**
297             * Returns the number of trash entries.
298             *
299             * @return the number of trash entries
300             */
301            @Override
302            public int getTrashEntriesCount() {
303                    return trashEntryPersistence.countAll();
304            }
305    
306            /**
307             * Updates the trash entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
308             *
309             * @param trashEntry the trash entry
310             * @return the trash entry that was updated
311             */
312            @Indexable(type = IndexableType.REINDEX)
313            @Override
314            public TrashEntry updateTrashEntry(TrashEntry trashEntry) {
315                    return trashEntryPersistence.update(trashEntry);
316            }
317    
318            /**
319             * Returns the trash entry local service.
320             *
321             * @return the trash entry local service
322             */
323            public TrashEntryLocalService getTrashEntryLocalService() {
324                    return trashEntryLocalService;
325            }
326    
327            /**
328             * Sets the trash entry local service.
329             *
330             * @param trashEntryLocalService the trash entry local service
331             */
332            public void setTrashEntryLocalService(
333                    TrashEntryLocalService trashEntryLocalService) {
334                    this.trashEntryLocalService = trashEntryLocalService;
335            }
336    
337            /**
338             * Returns the trash entry persistence.
339             *
340             * @return the trash entry persistence
341             */
342            public TrashEntryPersistence getTrashEntryPersistence() {
343                    return trashEntryPersistence;
344            }
345    
346            /**
347             * Sets the trash entry persistence.
348             *
349             * @param trashEntryPersistence the trash entry persistence
350             */
351            public void setTrashEntryPersistence(
352                    TrashEntryPersistence trashEntryPersistence) {
353                    this.trashEntryPersistence = trashEntryPersistence;
354            }
355    
356            /**
357             * Returns the trash version local service.
358             *
359             * @return the trash version local service
360             */
361            public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
362                    return trashVersionLocalService;
363            }
364    
365            /**
366             * Sets the trash version local service.
367             *
368             * @param trashVersionLocalService the trash version local service
369             */
370            public void setTrashVersionLocalService(
371                    com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
372                    this.trashVersionLocalService = trashVersionLocalService;
373            }
374    
375            /**
376             * Returns the trash version persistence.
377             *
378             * @return the trash version persistence
379             */
380            public TrashVersionPersistence getTrashVersionPersistence() {
381                    return trashVersionPersistence;
382            }
383    
384            /**
385             * Sets the trash version persistence.
386             *
387             * @param trashVersionPersistence the trash version persistence
388             */
389            public void setTrashVersionPersistence(
390                    TrashVersionPersistence trashVersionPersistence) {
391                    this.trashVersionPersistence = trashVersionPersistence;
392            }
393    
394            /**
395             * Returns the counter local service.
396             *
397             * @return the counter local service
398             */
399            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
400                    return counterLocalService;
401            }
402    
403            /**
404             * Sets the counter local service.
405             *
406             * @param counterLocalService the counter local service
407             */
408            public void setCounterLocalService(
409                    com.liferay.counter.service.CounterLocalService counterLocalService) {
410                    this.counterLocalService = counterLocalService;
411            }
412    
413            /**
414             * Returns the class name local service.
415             *
416             * @return the class name local service
417             */
418            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
419                    return classNameLocalService;
420            }
421    
422            /**
423             * Sets the class name local service.
424             *
425             * @param classNameLocalService the class name local service
426             */
427            public void setClassNameLocalService(
428                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
429                    this.classNameLocalService = classNameLocalService;
430            }
431    
432            /**
433             * Returns the class name persistence.
434             *
435             * @return the class name persistence
436             */
437            public ClassNamePersistence getClassNamePersistence() {
438                    return classNamePersistence;
439            }
440    
441            /**
442             * Sets the class name persistence.
443             *
444             * @param classNamePersistence the class name persistence
445             */
446            public void setClassNamePersistence(
447                    ClassNamePersistence classNamePersistence) {
448                    this.classNamePersistence = classNamePersistence;
449            }
450    
451            /**
452             * Returns the group local service.
453             *
454             * @return the group local service
455             */
456            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
457                    return groupLocalService;
458            }
459    
460            /**
461             * Sets the group local service.
462             *
463             * @param groupLocalService the group local service
464             */
465            public void setGroupLocalService(
466                    com.liferay.portal.service.GroupLocalService groupLocalService) {
467                    this.groupLocalService = groupLocalService;
468            }
469    
470            /**
471             * Returns the group persistence.
472             *
473             * @return the group persistence
474             */
475            public GroupPersistence getGroupPersistence() {
476                    return groupPersistence;
477            }
478    
479            /**
480             * Sets the group persistence.
481             *
482             * @param groupPersistence the group persistence
483             */
484            public void setGroupPersistence(GroupPersistence groupPersistence) {
485                    this.groupPersistence = groupPersistence;
486            }
487    
488            /**
489             * Returns the group finder.
490             *
491             * @return the group finder
492             */
493            public GroupFinder getGroupFinder() {
494                    return groupFinder;
495            }
496    
497            /**
498             * Sets the group finder.
499             *
500             * @param groupFinder the group finder
501             */
502            public void setGroupFinder(GroupFinder groupFinder) {
503                    this.groupFinder = groupFinder;
504            }
505    
506            /**
507             * Returns the resource local service.
508             *
509             * @return the resource local service
510             */
511            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
512                    return resourceLocalService;
513            }
514    
515            /**
516             * Sets the resource local service.
517             *
518             * @param resourceLocalService the resource local service
519             */
520            public void setResourceLocalService(
521                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
522                    this.resourceLocalService = resourceLocalService;
523            }
524    
525            /**
526             * Returns the system event local service.
527             *
528             * @return the system event local service
529             */
530            public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
531                    return systemEventLocalService;
532            }
533    
534            /**
535             * Sets the system event local service.
536             *
537             * @param systemEventLocalService the system event local service
538             */
539            public void setSystemEventLocalService(
540                    com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
541                    this.systemEventLocalService = systemEventLocalService;
542            }
543    
544            /**
545             * Returns the system event persistence.
546             *
547             * @return the system event persistence
548             */
549            public SystemEventPersistence getSystemEventPersistence() {
550                    return systemEventPersistence;
551            }
552    
553            /**
554             * Sets the system event persistence.
555             *
556             * @param systemEventPersistence the system event persistence
557             */
558            public void setSystemEventPersistence(
559                    SystemEventPersistence systemEventPersistence) {
560                    this.systemEventPersistence = systemEventPersistence;
561            }
562    
563            /**
564             * Returns the user local service.
565             *
566             * @return the user local service
567             */
568            public com.liferay.portal.service.UserLocalService getUserLocalService() {
569                    return userLocalService;
570            }
571    
572            /**
573             * Sets the user local service.
574             *
575             * @param userLocalService the user local service
576             */
577            public void setUserLocalService(
578                    com.liferay.portal.service.UserLocalService userLocalService) {
579                    this.userLocalService = userLocalService;
580            }
581    
582            /**
583             * Returns the user persistence.
584             *
585             * @return the user persistence
586             */
587            public UserPersistence getUserPersistence() {
588                    return userPersistence;
589            }
590    
591            /**
592             * Sets the user persistence.
593             *
594             * @param userPersistence the user persistence
595             */
596            public void setUserPersistence(UserPersistence userPersistence) {
597                    this.userPersistence = userPersistence;
598            }
599    
600            /**
601             * Returns the user finder.
602             *
603             * @return the user finder
604             */
605            public UserFinder getUserFinder() {
606                    return userFinder;
607            }
608    
609            /**
610             * Sets the user finder.
611             *
612             * @param userFinder the user finder
613             */
614            public void setUserFinder(UserFinder userFinder) {
615                    this.userFinder = userFinder;
616            }
617    
618            public void afterPropertiesSet() {
619                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.trash.model.TrashEntry",
620                            trashEntryLocalService);
621            }
622    
623            public void destroy() {
624                    persistedModelLocalServiceRegistry.unregister(
625                            "com.liferay.portlet.trash.model.TrashEntry");
626            }
627    
628            /**
629             * Returns the OSGi service identifier.
630             *
631             * @return the OSGi service identifier
632             */
633            @Override
634            public String getOSGiServiceIdentifier() {
635                    return TrashEntryLocalService.class.getName();
636            }
637    
638            protected Class<?> getModelClass() {
639                    return TrashEntry.class;
640            }
641    
642            protected String getModelClassName() {
643                    return TrashEntry.class.getName();
644            }
645    
646            /**
647             * Performs a SQL query.
648             *
649             * @param sql the sql query
650             */
651            protected void runSQL(String sql) {
652                    try {
653                            DataSource dataSource = trashEntryPersistence.getDataSource();
654    
655                            DB db = DBManagerUtil.getDB();
656    
657                            sql = db.buildSQL(sql);
658                            sql = PortalUtil.transformSQL(sql);
659    
660                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
661                                            sql, new int[0]);
662    
663                            sqlUpdate.update();
664                    }
665                    catch (Exception e) {
666                            throw new SystemException(e);
667                    }
668            }
669    
670            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
671            protected TrashEntryLocalService trashEntryLocalService;
672            @BeanReference(type = TrashEntryPersistence.class)
673            protected TrashEntryPersistence trashEntryPersistence;
674            @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
675            protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
676            @BeanReference(type = TrashVersionPersistence.class)
677            protected TrashVersionPersistence trashVersionPersistence;
678            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
679            protected com.liferay.counter.service.CounterLocalService counterLocalService;
680            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
681            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
682            @BeanReference(type = ClassNamePersistence.class)
683            protected ClassNamePersistence classNamePersistence;
684            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
685            protected com.liferay.portal.service.GroupLocalService groupLocalService;
686            @BeanReference(type = GroupPersistence.class)
687            protected GroupPersistence groupPersistence;
688            @BeanReference(type = GroupFinder.class)
689            protected GroupFinder groupFinder;
690            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
691            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
692            @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
693            protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
694            @BeanReference(type = SystemEventPersistence.class)
695            protected SystemEventPersistence systemEventPersistence;
696            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
697            protected com.liferay.portal.service.UserLocalService userLocalService;
698            @BeanReference(type = UserPersistence.class)
699            protected UserPersistence userPersistence;
700            @BeanReference(type = UserFinder.class)
701            protected UserFinder userFinder;
702            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
703            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
704    }