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