001    /**
002     * Copyright (c) 2000-2013 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.polls.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
024    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
025    import com.liferay.portal.kernel.exception.PortalException;
026    import com.liferay.portal.kernel.exception.SystemException;
027    import com.liferay.portal.kernel.search.Indexable;
028    import com.liferay.portal.kernel.search.IndexableType;
029    import com.liferay.portal.kernel.util.OrderByComparator;
030    import com.liferay.portal.model.PersistedModel;
031    import com.liferay.portal.service.BaseLocalServiceImpl;
032    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
033    import com.liferay.portal.service.ResourceLocalService;
034    import com.liferay.portal.service.ResourceService;
035    import com.liferay.portal.service.UserLocalService;
036    import com.liferay.portal.service.UserService;
037    import com.liferay.portal.service.persistence.ResourceFinder;
038    import com.liferay.portal.service.persistence.ResourcePersistence;
039    import com.liferay.portal.service.persistence.UserFinder;
040    import com.liferay.portal.service.persistence.UserPersistence;
041    
042    import com.liferay.portlet.polls.model.PollsQuestion;
043    import com.liferay.portlet.polls.service.PollsChoiceLocalService;
044    import com.liferay.portlet.polls.service.PollsChoiceService;
045    import com.liferay.portlet.polls.service.PollsQuestionLocalService;
046    import com.liferay.portlet.polls.service.PollsQuestionService;
047    import com.liferay.portlet.polls.service.PollsVoteLocalService;
048    import com.liferay.portlet.polls.service.PollsVoteService;
049    import com.liferay.portlet.polls.service.persistence.PollsChoiceFinder;
050    import com.liferay.portlet.polls.service.persistence.PollsChoicePersistence;
051    import com.liferay.portlet.polls.service.persistence.PollsQuestionPersistence;
052    import com.liferay.portlet.polls.service.persistence.PollsVotePersistence;
053    
054    import java.io.Serializable;
055    
056    import java.util.List;
057    
058    import javax.sql.DataSource;
059    
060    /**
061     * The base implementation of the polls question local service.
062     *
063     * <p>
064     * 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.polls.service.impl.PollsQuestionLocalServiceImpl}.
065     * </p>
066     *
067     * @author Brian Wing Shun Chan
068     * @see com.liferay.portlet.polls.service.impl.PollsQuestionLocalServiceImpl
069     * @see com.liferay.portlet.polls.service.PollsQuestionLocalServiceUtil
070     * @generated
071     */
072    public abstract class PollsQuestionLocalServiceBaseImpl
073            extends BaseLocalServiceImpl implements PollsQuestionLocalService,
074                    IdentifiableBean {
075            /*
076             * NOTE FOR DEVELOPERS:
077             *
078             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.polls.service.PollsQuestionLocalServiceUtil} to access the polls question local service.
079             */
080    
081            /**
082             * Adds the polls question to the database. Also notifies the appropriate model listeners.
083             *
084             * @param pollsQuestion the polls question
085             * @return the polls question that was added
086             * @throws SystemException if a system exception occurred
087             */
088            @Indexable(type = IndexableType.REINDEX)
089            public PollsQuestion addPollsQuestion(PollsQuestion pollsQuestion)
090                    throws SystemException {
091                    pollsQuestion.setNew(true);
092    
093                    return pollsQuestionPersistence.update(pollsQuestion, false);
094            }
095    
096            /**
097             * Creates a new polls question with the primary key. Does not add the polls question to the database.
098             *
099             * @param questionId the primary key for the new polls question
100             * @return the new polls question
101             */
102            public PollsQuestion createPollsQuestion(long questionId) {
103                    return pollsQuestionPersistence.create(questionId);
104            }
105    
106            /**
107             * Deletes the polls question with the primary key from the database. Also notifies the appropriate model listeners.
108             *
109             * @param questionId the primary key of the polls question
110             * @return the polls question that was removed
111             * @throws PortalException if a polls question with the primary key could not be found
112             * @throws SystemException if a system exception occurred
113             */
114            @Indexable(type = IndexableType.DELETE)
115            public PollsQuestion deletePollsQuestion(long questionId)
116                    throws PortalException, SystemException {
117                    return pollsQuestionPersistence.remove(questionId);
118            }
119    
120            /**
121             * Deletes the polls question from the database. Also notifies the appropriate model listeners.
122             *
123             * @param pollsQuestion the polls question
124             * @return the polls question that was removed
125             * @throws SystemException if a system exception occurred
126             */
127            @Indexable(type = IndexableType.DELETE)
128            public PollsQuestion deletePollsQuestion(PollsQuestion pollsQuestion)
129                    throws SystemException {
130                    return pollsQuestionPersistence.remove(pollsQuestion);
131            }
132    
133            public DynamicQuery dynamicQuery() {
134                    Class<?> clazz = getClass();
135    
136                    return DynamicQueryFactoryUtil.forClass(PollsQuestion.class,
137                            clazz.getClassLoader());
138            }
139    
140            /**
141             * Performs a dynamic query on the database and returns the matching rows.
142             *
143             * @param dynamicQuery the dynamic query
144             * @return the matching rows
145             * @throws SystemException if a system exception occurred
146             */
147            @SuppressWarnings("rawtypes")
148            public List dynamicQuery(DynamicQuery dynamicQuery)
149                    throws SystemException {
150                    return pollsQuestionPersistence.findWithDynamicQuery(dynamicQuery);
151            }
152    
153            /**
154             * Performs a dynamic query on the database and returns a range of the matching rows.
155             *
156             * <p>
157             * 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.
158             * </p>
159             *
160             * @param dynamicQuery the dynamic query
161             * @param start the lower bound of the range of model instances
162             * @param end the upper bound of the range of model instances (not inclusive)
163             * @return the range of matching rows
164             * @throws SystemException if a system exception occurred
165             */
166            @SuppressWarnings("rawtypes")
167            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
168                    throws SystemException {
169                    return pollsQuestionPersistence.findWithDynamicQuery(dynamicQuery,
170                            start, end);
171            }
172    
173            /**
174             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
175             *
176             * <p>
177             * 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.
178             * </p>
179             *
180             * @param dynamicQuery the dynamic query
181             * @param start the lower bound of the range of model instances
182             * @param end the upper bound of the range of model instances (not inclusive)
183             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
184             * @return the ordered range of matching rows
185             * @throws SystemException if a system exception occurred
186             */
187            @SuppressWarnings("rawtypes")
188            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
189                    OrderByComparator orderByComparator) throws SystemException {
190                    return pollsQuestionPersistence.findWithDynamicQuery(dynamicQuery,
191                            start, end, orderByComparator);
192            }
193    
194            /**
195             * Returns the number of rows that match the dynamic query.
196             *
197             * @param dynamicQuery the dynamic query
198             * @return the number of rows that match the dynamic query
199             * @throws SystemException if a system exception occurred
200             */
201            public long dynamicQueryCount(DynamicQuery dynamicQuery)
202                    throws SystemException {
203                    return pollsQuestionPersistence.countWithDynamicQuery(dynamicQuery);
204            }
205    
206            public PollsQuestion fetchPollsQuestion(long questionId)
207                    throws SystemException {
208                    return pollsQuestionPersistence.fetchByPrimaryKey(questionId);
209            }
210    
211            /**
212             * Returns the polls question with the primary key.
213             *
214             * @param questionId the primary key of the polls question
215             * @return the polls question
216             * @throws PortalException if a polls question with the primary key could not be found
217             * @throws SystemException if a system exception occurred
218             */
219            public PollsQuestion getPollsQuestion(long questionId)
220                    throws PortalException, SystemException {
221                    return pollsQuestionPersistence.findByPrimaryKey(questionId);
222            }
223    
224            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
225                    throws PortalException, SystemException {
226                    return pollsQuestionPersistence.findByPrimaryKey(primaryKeyObj);
227            }
228    
229            /**
230             * Returns the polls question with the UUID in the group.
231             *
232             * @param uuid the UUID of polls question
233             * @param groupId the group id of the polls question
234             * @return the polls question
235             * @throws PortalException if a polls question with the UUID in the group could not be found
236             * @throws SystemException if a system exception occurred
237             */
238            public PollsQuestion getPollsQuestionByUuidAndGroupId(String uuid,
239                    long groupId) throws PortalException, SystemException {
240                    return pollsQuestionPersistence.findByUUID_G(uuid, groupId);
241            }
242    
243            /**
244             * Returns a range of all the polls questions.
245             *
246             * <p>
247             * 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.
248             * </p>
249             *
250             * @param start the lower bound of the range of polls questions
251             * @param end the upper bound of the range of polls questions (not inclusive)
252             * @return the range of polls questions
253             * @throws SystemException if a system exception occurred
254             */
255            public List<PollsQuestion> getPollsQuestions(int start, int end)
256                    throws SystemException {
257                    return pollsQuestionPersistence.findAll(start, end);
258            }
259    
260            /**
261             * Returns the number of polls questions.
262             *
263             * @return the number of polls questions
264             * @throws SystemException if a system exception occurred
265             */
266            public int getPollsQuestionsCount() throws SystemException {
267                    return pollsQuestionPersistence.countAll();
268            }
269    
270            /**
271             * Updates the polls question in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
272             *
273             * @param pollsQuestion the polls question
274             * @return the polls question that was updated
275             * @throws SystemException if a system exception occurred
276             */
277            @Indexable(type = IndexableType.REINDEX)
278            public PollsQuestion updatePollsQuestion(PollsQuestion pollsQuestion)
279                    throws SystemException {
280                    return updatePollsQuestion(pollsQuestion, true);
281            }
282    
283            /**
284             * Updates the polls question in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
285             *
286             * @param pollsQuestion the polls question
287             * @param merge whether to merge the polls question with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
288             * @return the polls question that was updated
289             * @throws SystemException if a system exception occurred
290             */
291            @Indexable(type = IndexableType.REINDEX)
292            public PollsQuestion updatePollsQuestion(PollsQuestion pollsQuestion,
293                    boolean merge) throws SystemException {
294                    pollsQuestion.setNew(false);
295    
296                    return pollsQuestionPersistence.update(pollsQuestion, merge);
297            }
298    
299            /**
300             * Returns the polls choice local service.
301             *
302             * @return the polls choice local service
303             */
304            public PollsChoiceLocalService getPollsChoiceLocalService() {
305                    return pollsChoiceLocalService;
306            }
307    
308            /**
309             * Sets the polls choice local service.
310             *
311             * @param pollsChoiceLocalService the polls choice local service
312             */
313            public void setPollsChoiceLocalService(
314                    PollsChoiceLocalService pollsChoiceLocalService) {
315                    this.pollsChoiceLocalService = pollsChoiceLocalService;
316            }
317    
318            /**
319             * Returns the polls choice remote service.
320             *
321             * @return the polls choice remote service
322             */
323            public PollsChoiceService getPollsChoiceService() {
324                    return pollsChoiceService;
325            }
326    
327            /**
328             * Sets the polls choice remote service.
329             *
330             * @param pollsChoiceService the polls choice remote service
331             */
332            public void setPollsChoiceService(PollsChoiceService pollsChoiceService) {
333                    this.pollsChoiceService = pollsChoiceService;
334            }
335    
336            /**
337             * Returns the polls choice persistence.
338             *
339             * @return the polls choice persistence
340             */
341            public PollsChoicePersistence getPollsChoicePersistence() {
342                    return pollsChoicePersistence;
343            }
344    
345            /**
346             * Sets the polls choice persistence.
347             *
348             * @param pollsChoicePersistence the polls choice persistence
349             */
350            public void setPollsChoicePersistence(
351                    PollsChoicePersistence pollsChoicePersistence) {
352                    this.pollsChoicePersistence = pollsChoicePersistence;
353            }
354    
355            /**
356             * Returns the polls choice finder.
357             *
358             * @return the polls choice finder
359             */
360            public PollsChoiceFinder getPollsChoiceFinder() {
361                    return pollsChoiceFinder;
362            }
363    
364            /**
365             * Sets the polls choice finder.
366             *
367             * @param pollsChoiceFinder the polls choice finder
368             */
369            public void setPollsChoiceFinder(PollsChoiceFinder pollsChoiceFinder) {
370                    this.pollsChoiceFinder = pollsChoiceFinder;
371            }
372    
373            /**
374             * Returns the polls question local service.
375             *
376             * @return the polls question local service
377             */
378            public PollsQuestionLocalService getPollsQuestionLocalService() {
379                    return pollsQuestionLocalService;
380            }
381    
382            /**
383             * Sets the polls question local service.
384             *
385             * @param pollsQuestionLocalService the polls question local service
386             */
387            public void setPollsQuestionLocalService(
388                    PollsQuestionLocalService pollsQuestionLocalService) {
389                    this.pollsQuestionLocalService = pollsQuestionLocalService;
390            }
391    
392            /**
393             * Returns the polls question remote service.
394             *
395             * @return the polls question remote service
396             */
397            public PollsQuestionService getPollsQuestionService() {
398                    return pollsQuestionService;
399            }
400    
401            /**
402             * Sets the polls question remote service.
403             *
404             * @param pollsQuestionService the polls question remote service
405             */
406            public void setPollsQuestionService(
407                    PollsQuestionService pollsQuestionService) {
408                    this.pollsQuestionService = pollsQuestionService;
409            }
410    
411            /**
412             * Returns the polls question persistence.
413             *
414             * @return the polls question persistence
415             */
416            public PollsQuestionPersistence getPollsQuestionPersistence() {
417                    return pollsQuestionPersistence;
418            }
419    
420            /**
421             * Sets the polls question persistence.
422             *
423             * @param pollsQuestionPersistence the polls question persistence
424             */
425            public void setPollsQuestionPersistence(
426                    PollsQuestionPersistence pollsQuestionPersistence) {
427                    this.pollsQuestionPersistence = pollsQuestionPersistence;
428            }
429    
430            /**
431             * Returns the polls vote local service.
432             *
433             * @return the polls vote local service
434             */
435            public PollsVoteLocalService getPollsVoteLocalService() {
436                    return pollsVoteLocalService;
437            }
438    
439            /**
440             * Sets the polls vote local service.
441             *
442             * @param pollsVoteLocalService the polls vote local service
443             */
444            public void setPollsVoteLocalService(
445                    PollsVoteLocalService pollsVoteLocalService) {
446                    this.pollsVoteLocalService = pollsVoteLocalService;
447            }
448    
449            /**
450             * Returns the polls vote remote service.
451             *
452             * @return the polls vote remote service
453             */
454            public PollsVoteService getPollsVoteService() {
455                    return pollsVoteService;
456            }
457    
458            /**
459             * Sets the polls vote remote service.
460             *
461             * @param pollsVoteService the polls vote remote service
462             */
463            public void setPollsVoteService(PollsVoteService pollsVoteService) {
464                    this.pollsVoteService = pollsVoteService;
465            }
466    
467            /**
468             * Returns the polls vote persistence.
469             *
470             * @return the polls vote persistence
471             */
472            public PollsVotePersistence getPollsVotePersistence() {
473                    return pollsVotePersistence;
474            }
475    
476            /**
477             * Sets the polls vote persistence.
478             *
479             * @param pollsVotePersistence the polls vote persistence
480             */
481            public void setPollsVotePersistence(
482                    PollsVotePersistence pollsVotePersistence) {
483                    this.pollsVotePersistence = pollsVotePersistence;
484            }
485    
486            /**
487             * Returns the counter local service.
488             *
489             * @return the counter local service
490             */
491            public CounterLocalService getCounterLocalService() {
492                    return counterLocalService;
493            }
494    
495            /**
496             * Sets the counter local service.
497             *
498             * @param counterLocalService the counter local service
499             */
500            public void setCounterLocalService(CounterLocalService counterLocalService) {
501                    this.counterLocalService = counterLocalService;
502            }
503    
504            /**
505             * Returns the resource local service.
506             *
507             * @return the resource local service
508             */
509            public ResourceLocalService getResourceLocalService() {
510                    return resourceLocalService;
511            }
512    
513            /**
514             * Sets the resource local service.
515             *
516             * @param resourceLocalService the resource local service
517             */
518            public void setResourceLocalService(
519                    ResourceLocalService resourceLocalService) {
520                    this.resourceLocalService = resourceLocalService;
521            }
522    
523            /**
524             * Returns the resource remote service.
525             *
526             * @return the resource remote service
527             */
528            public ResourceService getResourceService() {
529                    return resourceService;
530            }
531    
532            /**
533             * Sets the resource remote service.
534             *
535             * @param resourceService the resource remote service
536             */
537            public void setResourceService(ResourceService resourceService) {
538                    this.resourceService = resourceService;
539            }
540    
541            /**
542             * Returns the resource persistence.
543             *
544             * @return the resource persistence
545             */
546            public ResourcePersistence getResourcePersistence() {
547                    return resourcePersistence;
548            }
549    
550            /**
551             * Sets the resource persistence.
552             *
553             * @param resourcePersistence the resource persistence
554             */
555            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
556                    this.resourcePersistence = resourcePersistence;
557            }
558    
559            /**
560             * Returns the resource finder.
561             *
562             * @return the resource finder
563             */
564            public ResourceFinder getResourceFinder() {
565                    return resourceFinder;
566            }
567    
568            /**
569             * Sets the resource finder.
570             *
571             * @param resourceFinder the resource finder
572             */
573            public void setResourceFinder(ResourceFinder resourceFinder) {
574                    this.resourceFinder = resourceFinder;
575            }
576    
577            /**
578             * Returns the user local service.
579             *
580             * @return the user local service
581             */
582            public UserLocalService getUserLocalService() {
583                    return userLocalService;
584            }
585    
586            /**
587             * Sets the user local service.
588             *
589             * @param userLocalService the user local service
590             */
591            public void setUserLocalService(UserLocalService userLocalService) {
592                    this.userLocalService = userLocalService;
593            }
594    
595            /**
596             * Returns the user remote service.
597             *
598             * @return the user remote service
599             */
600            public UserService getUserService() {
601                    return userService;
602            }
603    
604            /**
605             * Sets the user remote service.
606             *
607             * @param userService the user remote service
608             */
609            public void setUserService(UserService userService) {
610                    this.userService = userService;
611            }
612    
613            /**
614             * Returns the user persistence.
615             *
616             * @return the user persistence
617             */
618            public UserPersistence getUserPersistence() {
619                    return userPersistence;
620            }
621    
622            /**
623             * Sets the user persistence.
624             *
625             * @param userPersistence the user persistence
626             */
627            public void setUserPersistence(UserPersistence userPersistence) {
628                    this.userPersistence = userPersistence;
629            }
630    
631            /**
632             * Returns the user finder.
633             *
634             * @return the user finder
635             */
636            public UserFinder getUserFinder() {
637                    return userFinder;
638            }
639    
640            /**
641             * Sets the user finder.
642             *
643             * @param userFinder the user finder
644             */
645            public void setUserFinder(UserFinder userFinder) {
646                    this.userFinder = userFinder;
647            }
648    
649            public void afterPropertiesSet() {
650                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.polls.model.PollsQuestion",
651                            pollsQuestionLocalService);
652            }
653    
654            public void destroy() {
655                    persistedModelLocalServiceRegistry.unregister(
656                            "com.liferay.portlet.polls.model.PollsQuestion");
657            }
658    
659            /**
660             * Returns the Spring bean ID for this bean.
661             *
662             * @return the Spring bean ID for this bean
663             */
664            public String getBeanIdentifier() {
665                    return _beanIdentifier;
666            }
667    
668            /**
669             * Sets the Spring bean ID for this bean.
670             *
671             * @param beanIdentifier the Spring bean ID for this bean
672             */
673            public void setBeanIdentifier(String beanIdentifier) {
674                    _beanIdentifier = beanIdentifier;
675            }
676    
677            protected Class<?> getModelClass() {
678                    return PollsQuestion.class;
679            }
680    
681            protected String getModelClassName() {
682                    return PollsQuestion.class.getName();
683            }
684    
685            /**
686             * Performs an SQL query.
687             *
688             * @param sql the sql query
689             */
690            protected void runSQL(String sql) throws SystemException {
691                    try {
692                            DataSource dataSource = pollsQuestionPersistence.getDataSource();
693    
694                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
695                                            sql, new int[0]);
696    
697                            sqlUpdate.update();
698                    }
699                    catch (Exception e) {
700                            throw new SystemException(e);
701                    }
702            }
703    
704            @BeanReference(type = PollsChoiceLocalService.class)
705            protected PollsChoiceLocalService pollsChoiceLocalService;
706            @BeanReference(type = PollsChoiceService.class)
707            protected PollsChoiceService pollsChoiceService;
708            @BeanReference(type = PollsChoicePersistence.class)
709            protected PollsChoicePersistence pollsChoicePersistence;
710            @BeanReference(type = PollsChoiceFinder.class)
711            protected PollsChoiceFinder pollsChoiceFinder;
712            @BeanReference(type = PollsQuestionLocalService.class)
713            protected PollsQuestionLocalService pollsQuestionLocalService;
714            @BeanReference(type = PollsQuestionService.class)
715            protected PollsQuestionService pollsQuestionService;
716            @BeanReference(type = PollsQuestionPersistence.class)
717            protected PollsQuestionPersistence pollsQuestionPersistence;
718            @BeanReference(type = PollsVoteLocalService.class)
719            protected PollsVoteLocalService pollsVoteLocalService;
720            @BeanReference(type = PollsVoteService.class)
721            protected PollsVoteService pollsVoteService;
722            @BeanReference(type = PollsVotePersistence.class)
723            protected PollsVotePersistence pollsVotePersistence;
724            @BeanReference(type = CounterLocalService.class)
725            protected CounterLocalService counterLocalService;
726            @BeanReference(type = ResourceLocalService.class)
727            protected ResourceLocalService resourceLocalService;
728            @BeanReference(type = ResourceService.class)
729            protected ResourceService resourceService;
730            @BeanReference(type = ResourcePersistence.class)
731            protected ResourcePersistence resourcePersistence;
732            @BeanReference(type = ResourceFinder.class)
733            protected ResourceFinder resourceFinder;
734            @BeanReference(type = UserLocalService.class)
735            protected UserLocalService userLocalService;
736            @BeanReference(type = UserService.class)
737            protected UserService userService;
738            @BeanReference(type = UserPersistence.class)
739            protected UserPersistence userPersistence;
740            @BeanReference(type = UserFinder.class)
741            protected UserFinder userFinder;
742            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
743            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
744            private String _beanIdentifier;
745    }