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.exception.SystemException;
023    import com.liferay.portal.service.GroupLocalService;
024    import com.liferay.portal.service.GroupService;
025    import com.liferay.portal.service.ResourceLocalService;
026    import com.liferay.portal.service.ResourceService;
027    import com.liferay.portal.service.SubscriptionLocalService;
028    import com.liferay.portal.service.UserLocalService;
029    import com.liferay.portal.service.UserService;
030    import com.liferay.portal.service.base.PrincipalBean;
031    import com.liferay.portal.service.persistence.GroupFinder;
032    import com.liferay.portal.service.persistence.GroupPersistence;
033    import com.liferay.portal.service.persistence.ResourceFinder;
034    import com.liferay.portal.service.persistence.ResourcePersistence;
035    import com.liferay.portal.service.persistence.SubscriptionPersistence;
036    import com.liferay.portal.service.persistence.UserFinder;
037    import com.liferay.portal.service.persistence.UserPersistence;
038    
039    import com.liferay.portlet.wiki.service.WikiNodeLocalService;
040    import com.liferay.portlet.wiki.service.WikiNodeService;
041    import com.liferay.portlet.wiki.service.WikiPageLocalService;
042    import com.liferay.portlet.wiki.service.WikiPageResourceLocalService;
043    import com.liferay.portlet.wiki.service.WikiPageService;
044    import com.liferay.portlet.wiki.service.persistence.WikiNodePersistence;
045    import com.liferay.portlet.wiki.service.persistence.WikiPageFinder;
046    import com.liferay.portlet.wiki.service.persistence.WikiPagePersistence;
047    import com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistence;
048    
049    import javax.sql.DataSource;
050    
051    /**
052     * The base implementation of the wiki node remote service.
053     *
054     * <p>
055     * 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.WikiNodeServiceImpl}.
056     * </p>
057     *
058     * <p>
059     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.wiki.service.WikiNodeServiceUtil} to access the wiki node remote service.
060     * </p>
061     *
062     * @author Brian Wing Shun Chan
063     * @see com.liferay.portlet.wiki.service.impl.WikiNodeServiceImpl
064     * @see com.liferay.portlet.wiki.service.WikiNodeServiceUtil
065     * @generated
066     */
067    public abstract class WikiNodeServiceBaseImpl extends PrincipalBean
068            implements WikiNodeService {
069            /**
070             * Gets the wiki node local service.
071             *
072             * @return the wiki node local service
073             */
074            public WikiNodeLocalService getWikiNodeLocalService() {
075                    return wikiNodeLocalService;
076            }
077    
078            /**
079             * Sets the wiki node local service.
080             *
081             * @param wikiNodeLocalService the wiki node local service
082             */
083            public void setWikiNodeLocalService(
084                    WikiNodeLocalService wikiNodeLocalService) {
085                    this.wikiNodeLocalService = wikiNodeLocalService;
086            }
087    
088            /**
089             * Gets the wiki node remote service.
090             *
091             * @return the wiki node remote service
092             */
093            public WikiNodeService getWikiNodeService() {
094                    return wikiNodeService;
095            }
096    
097            /**
098             * Sets the wiki node remote service.
099             *
100             * @param wikiNodeService the wiki node remote service
101             */
102            public void setWikiNodeService(WikiNodeService wikiNodeService) {
103                    this.wikiNodeService = wikiNodeService;
104            }
105    
106            /**
107             * Gets the wiki node persistence.
108             *
109             * @return the wiki node persistence
110             */
111            public WikiNodePersistence getWikiNodePersistence() {
112                    return wikiNodePersistence;
113            }
114    
115            /**
116             * Sets the wiki node persistence.
117             *
118             * @param wikiNodePersistence the wiki node persistence
119             */
120            public void setWikiNodePersistence(WikiNodePersistence wikiNodePersistence) {
121                    this.wikiNodePersistence = wikiNodePersistence;
122            }
123    
124            /**
125             * Gets the wiki page local service.
126             *
127             * @return the wiki page local service
128             */
129            public WikiPageLocalService getWikiPageLocalService() {
130                    return wikiPageLocalService;
131            }
132    
133            /**
134             * Sets the wiki page local service.
135             *
136             * @param wikiPageLocalService the wiki page local service
137             */
138            public void setWikiPageLocalService(
139                    WikiPageLocalService wikiPageLocalService) {
140                    this.wikiPageLocalService = wikiPageLocalService;
141            }
142    
143            /**
144             * Gets the wiki page remote service.
145             *
146             * @return the wiki page remote service
147             */
148            public WikiPageService getWikiPageService() {
149                    return wikiPageService;
150            }
151    
152            /**
153             * Sets the wiki page remote service.
154             *
155             * @param wikiPageService the wiki page remote service
156             */
157            public void setWikiPageService(WikiPageService wikiPageService) {
158                    this.wikiPageService = wikiPageService;
159            }
160    
161            /**
162             * Gets the wiki page persistence.
163             *
164             * @return the wiki page persistence
165             */
166            public WikiPagePersistence getWikiPagePersistence() {
167                    return wikiPagePersistence;
168            }
169    
170            /**
171             * Sets the wiki page persistence.
172             *
173             * @param wikiPagePersistence the wiki page persistence
174             */
175            public void setWikiPagePersistence(WikiPagePersistence wikiPagePersistence) {
176                    this.wikiPagePersistence = wikiPagePersistence;
177            }
178    
179            /**
180             * Gets the wiki page finder.
181             *
182             * @return the wiki page finder
183             */
184            public WikiPageFinder getWikiPageFinder() {
185                    return wikiPageFinder;
186            }
187    
188            /**
189             * Sets the wiki page finder.
190             *
191             * @param wikiPageFinder the wiki page finder
192             */
193            public void setWikiPageFinder(WikiPageFinder wikiPageFinder) {
194                    this.wikiPageFinder = wikiPageFinder;
195            }
196    
197            /**
198             * Gets the wiki page resource local service.
199             *
200             * @return the wiki page resource local service
201             */
202            public WikiPageResourceLocalService getWikiPageResourceLocalService() {
203                    return wikiPageResourceLocalService;
204            }
205    
206            /**
207             * Sets the wiki page resource local service.
208             *
209             * @param wikiPageResourceLocalService the wiki page resource local service
210             */
211            public void setWikiPageResourceLocalService(
212                    WikiPageResourceLocalService wikiPageResourceLocalService) {
213                    this.wikiPageResourceLocalService = wikiPageResourceLocalService;
214            }
215    
216            /**
217             * Gets the wiki page resource persistence.
218             *
219             * @return the wiki page resource persistence
220             */
221            public WikiPageResourcePersistence getWikiPageResourcePersistence() {
222                    return wikiPageResourcePersistence;
223            }
224    
225            /**
226             * Sets the wiki page resource persistence.
227             *
228             * @param wikiPageResourcePersistence the wiki page resource persistence
229             */
230            public void setWikiPageResourcePersistence(
231                    WikiPageResourcePersistence wikiPageResourcePersistence) {
232                    this.wikiPageResourcePersistence = wikiPageResourcePersistence;
233            }
234    
235            /**
236             * Gets the counter local service.
237             *
238             * @return the counter local service
239             */
240            public CounterLocalService getCounterLocalService() {
241                    return counterLocalService;
242            }
243    
244            /**
245             * Sets the counter local service.
246             *
247             * @param counterLocalService the counter local service
248             */
249            public void setCounterLocalService(CounterLocalService counterLocalService) {
250                    this.counterLocalService = counterLocalService;
251            }
252    
253            /**
254             * Gets the group local service.
255             *
256             * @return the group local service
257             */
258            public GroupLocalService getGroupLocalService() {
259                    return groupLocalService;
260            }
261    
262            /**
263             * Sets the group local service.
264             *
265             * @param groupLocalService the group local service
266             */
267            public void setGroupLocalService(GroupLocalService groupLocalService) {
268                    this.groupLocalService = groupLocalService;
269            }
270    
271            /**
272             * Gets the group remote service.
273             *
274             * @return the group remote service
275             */
276            public GroupService getGroupService() {
277                    return groupService;
278            }
279    
280            /**
281             * Sets the group remote service.
282             *
283             * @param groupService the group remote service
284             */
285            public void setGroupService(GroupService groupService) {
286                    this.groupService = groupService;
287            }
288    
289            /**
290             * Gets the group persistence.
291             *
292             * @return the group persistence
293             */
294            public GroupPersistence getGroupPersistence() {
295                    return groupPersistence;
296            }
297    
298            /**
299             * Sets the group persistence.
300             *
301             * @param groupPersistence the group persistence
302             */
303            public void setGroupPersistence(GroupPersistence groupPersistence) {
304                    this.groupPersistence = groupPersistence;
305            }
306    
307            /**
308             * Gets the group finder.
309             *
310             * @return the group finder
311             */
312            public GroupFinder getGroupFinder() {
313                    return groupFinder;
314            }
315    
316            /**
317             * Sets the group finder.
318             *
319             * @param groupFinder the group finder
320             */
321            public void setGroupFinder(GroupFinder groupFinder) {
322                    this.groupFinder = groupFinder;
323            }
324    
325            /**
326             * Gets the resource local service.
327             *
328             * @return the resource local service
329             */
330            public ResourceLocalService getResourceLocalService() {
331                    return resourceLocalService;
332            }
333    
334            /**
335             * Sets the resource local service.
336             *
337             * @param resourceLocalService the resource local service
338             */
339            public void setResourceLocalService(
340                    ResourceLocalService resourceLocalService) {
341                    this.resourceLocalService = resourceLocalService;
342            }
343    
344            /**
345             * Gets the resource remote service.
346             *
347             * @return the resource remote service
348             */
349            public ResourceService getResourceService() {
350                    return resourceService;
351            }
352    
353            /**
354             * Sets the resource remote service.
355             *
356             * @param resourceService the resource remote service
357             */
358            public void setResourceService(ResourceService resourceService) {
359                    this.resourceService = resourceService;
360            }
361    
362            /**
363             * Gets the resource persistence.
364             *
365             * @return the resource persistence
366             */
367            public ResourcePersistence getResourcePersistence() {
368                    return resourcePersistence;
369            }
370    
371            /**
372             * Sets the resource persistence.
373             *
374             * @param resourcePersistence the resource persistence
375             */
376            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
377                    this.resourcePersistence = resourcePersistence;
378            }
379    
380            /**
381             * Gets the resource finder.
382             *
383             * @return the resource finder
384             */
385            public ResourceFinder getResourceFinder() {
386                    return resourceFinder;
387            }
388    
389            /**
390             * Sets the resource finder.
391             *
392             * @param resourceFinder the resource finder
393             */
394            public void setResourceFinder(ResourceFinder resourceFinder) {
395                    this.resourceFinder = resourceFinder;
396            }
397    
398            /**
399             * Gets the subscription local service.
400             *
401             * @return the subscription local service
402             */
403            public SubscriptionLocalService getSubscriptionLocalService() {
404                    return subscriptionLocalService;
405            }
406    
407            /**
408             * Sets the subscription local service.
409             *
410             * @param subscriptionLocalService the subscription local service
411             */
412            public void setSubscriptionLocalService(
413                    SubscriptionLocalService subscriptionLocalService) {
414                    this.subscriptionLocalService = subscriptionLocalService;
415            }
416    
417            /**
418             * Gets the subscription persistence.
419             *
420             * @return the subscription persistence
421             */
422            public SubscriptionPersistence getSubscriptionPersistence() {
423                    return subscriptionPersistence;
424            }
425    
426            /**
427             * Sets the subscription persistence.
428             *
429             * @param subscriptionPersistence the subscription persistence
430             */
431            public void setSubscriptionPersistence(
432                    SubscriptionPersistence subscriptionPersistence) {
433                    this.subscriptionPersistence = subscriptionPersistence;
434            }
435    
436            /**
437             * Gets the user local service.
438             *
439             * @return the user local service
440             */
441            public UserLocalService getUserLocalService() {
442                    return userLocalService;
443            }
444    
445            /**
446             * Sets the user local service.
447             *
448             * @param userLocalService the user local service
449             */
450            public void setUserLocalService(UserLocalService userLocalService) {
451                    this.userLocalService = userLocalService;
452            }
453    
454            /**
455             * Gets the user remote service.
456             *
457             * @return the user remote service
458             */
459            public UserService getUserService() {
460                    return userService;
461            }
462    
463            /**
464             * Sets the user remote service.
465             *
466             * @param userService the user remote service
467             */
468            public void setUserService(UserService userService) {
469                    this.userService = userService;
470            }
471    
472            /**
473             * Gets the user persistence.
474             *
475             * @return the user persistence
476             */
477            public UserPersistence getUserPersistence() {
478                    return userPersistence;
479            }
480    
481            /**
482             * Sets the user persistence.
483             *
484             * @param userPersistence the user persistence
485             */
486            public void setUserPersistence(UserPersistence userPersistence) {
487                    this.userPersistence = userPersistence;
488            }
489    
490            /**
491             * Gets the user finder.
492             *
493             * @return the user finder
494             */
495            public UserFinder getUserFinder() {
496                    return userFinder;
497            }
498    
499            /**
500             * Sets the user finder.
501             *
502             * @param userFinder the user finder
503             */
504            public void setUserFinder(UserFinder userFinder) {
505                    this.userFinder = userFinder;
506            }
507    
508            /**
509             * Performs an SQL query.
510             *
511             * @param sql the sql query to perform
512             */
513            protected void runSQL(String sql) throws SystemException {
514                    try {
515                            DataSource dataSource = wikiNodePersistence.getDataSource();
516    
517                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
518                                            sql, new int[0]);
519    
520                            sqlUpdate.update();
521                    }
522                    catch (Exception e) {
523                            throw new SystemException(e);
524                    }
525            }
526    
527            @BeanReference(type = WikiNodeLocalService.class)
528            protected WikiNodeLocalService wikiNodeLocalService;
529            @BeanReference(type = WikiNodeService.class)
530            protected WikiNodeService wikiNodeService;
531            @BeanReference(type = WikiNodePersistence.class)
532            protected WikiNodePersistence wikiNodePersistence;
533            @BeanReference(type = WikiPageLocalService.class)
534            protected WikiPageLocalService wikiPageLocalService;
535            @BeanReference(type = WikiPageService.class)
536            protected WikiPageService wikiPageService;
537            @BeanReference(type = WikiPagePersistence.class)
538            protected WikiPagePersistence wikiPagePersistence;
539            @BeanReference(type = WikiPageFinder.class)
540            protected WikiPageFinder wikiPageFinder;
541            @BeanReference(type = WikiPageResourceLocalService.class)
542            protected WikiPageResourceLocalService wikiPageResourceLocalService;
543            @BeanReference(type = WikiPageResourcePersistence.class)
544            protected WikiPageResourcePersistence wikiPageResourcePersistence;
545            @BeanReference(type = CounterLocalService.class)
546            protected CounterLocalService counterLocalService;
547            @BeanReference(type = GroupLocalService.class)
548            protected GroupLocalService groupLocalService;
549            @BeanReference(type = GroupService.class)
550            protected GroupService groupService;
551            @BeanReference(type = GroupPersistence.class)
552            protected GroupPersistence groupPersistence;
553            @BeanReference(type = GroupFinder.class)
554            protected GroupFinder groupFinder;
555            @BeanReference(type = ResourceLocalService.class)
556            protected ResourceLocalService resourceLocalService;
557            @BeanReference(type = ResourceService.class)
558            protected ResourceService resourceService;
559            @BeanReference(type = ResourcePersistence.class)
560            protected ResourcePersistence resourcePersistence;
561            @BeanReference(type = ResourceFinder.class)
562            protected ResourceFinder resourceFinder;
563            @BeanReference(type = SubscriptionLocalService.class)
564            protected SubscriptionLocalService subscriptionLocalService;
565            @BeanReference(type = SubscriptionPersistence.class)
566            protected SubscriptionPersistence subscriptionPersistence;
567            @BeanReference(type = UserLocalService.class)
568            protected UserLocalService userLocalService;
569            @BeanReference(type = UserService.class)
570            protected UserService userService;
571            @BeanReference(type = UserPersistence.class)
572            protected UserPersistence userPersistence;
573            @BeanReference(type = UserFinder.class)
574            protected UserFinder userFinder;
575    }