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