001    /**
002     * Copyright (c) 2000-2012 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.SubscriptionLocalService;
029    import com.liferay.portal.service.UserLocalService;
030    import com.liferay.portal.service.UserService;
031    import com.liferay.portal.service.persistence.GroupFinder;
032    import com.liferay.portal.service.persistence.GroupPersistence;
033    import com.liferay.portal.service.persistence.SubscriptionPersistence;
034    import com.liferay.portal.service.persistence.UserFinder;
035    import com.liferay.portal.service.persistence.UserPersistence;
036    
037    import com.liferay.portlet.trash.service.TrashEntryLocalService;
038    import com.liferay.portlet.trash.service.TrashEntryService;
039    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
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 subscription local service.
350             *
351             * @return the subscription local service
352             */
353            public SubscriptionLocalService getSubscriptionLocalService() {
354                    return subscriptionLocalService;
355            }
356    
357            /**
358             * Sets the subscription local service.
359             *
360             * @param subscriptionLocalService the subscription local service
361             */
362            public void setSubscriptionLocalService(
363                    SubscriptionLocalService subscriptionLocalService) {
364                    this.subscriptionLocalService = subscriptionLocalService;
365            }
366    
367            /**
368             * Returns the subscription persistence.
369             *
370             * @return the subscription persistence
371             */
372            public SubscriptionPersistence getSubscriptionPersistence() {
373                    return subscriptionPersistence;
374            }
375    
376            /**
377             * Sets the subscription persistence.
378             *
379             * @param subscriptionPersistence the subscription persistence
380             */
381            public void setSubscriptionPersistence(
382                    SubscriptionPersistence subscriptionPersistence) {
383                    this.subscriptionPersistence = subscriptionPersistence;
384            }
385    
386            /**
387             * Returns the user local service.
388             *
389             * @return the user local service
390             */
391            public UserLocalService getUserLocalService() {
392                    return userLocalService;
393            }
394    
395            /**
396             * Sets the user local service.
397             *
398             * @param userLocalService the user local service
399             */
400            public void setUserLocalService(UserLocalService userLocalService) {
401                    this.userLocalService = userLocalService;
402            }
403    
404            /**
405             * Returns the user remote service.
406             *
407             * @return the user remote service
408             */
409            public UserService getUserService() {
410                    return userService;
411            }
412    
413            /**
414             * Sets the user remote service.
415             *
416             * @param userService the user remote service
417             */
418            public void setUserService(UserService userService) {
419                    this.userService = userService;
420            }
421    
422            /**
423             * Returns the user persistence.
424             *
425             * @return the user persistence
426             */
427            public UserPersistence getUserPersistence() {
428                    return userPersistence;
429            }
430    
431            /**
432             * Sets the user persistence.
433             *
434             * @param userPersistence the user persistence
435             */
436            public void setUserPersistence(UserPersistence userPersistence) {
437                    this.userPersistence = userPersistence;
438            }
439    
440            /**
441             * Returns the user finder.
442             *
443             * @return the user finder
444             */
445            public UserFinder getUserFinder() {
446                    return userFinder;
447            }
448    
449            /**
450             * Sets the user finder.
451             *
452             * @param userFinder the user finder
453             */
454            public void setUserFinder(UserFinder userFinder) {
455                    this.userFinder = userFinder;
456            }
457    
458            /**
459             * Returns the trash entry local service.
460             *
461             * @return the trash entry local service
462             */
463            public TrashEntryLocalService getTrashEntryLocalService() {
464                    return trashEntryLocalService;
465            }
466    
467            /**
468             * Sets the trash entry local service.
469             *
470             * @param trashEntryLocalService the trash entry local service
471             */
472            public void setTrashEntryLocalService(
473                    TrashEntryLocalService trashEntryLocalService) {
474                    this.trashEntryLocalService = trashEntryLocalService;
475            }
476    
477            /**
478             * Returns the trash entry remote service.
479             *
480             * @return the trash entry remote service
481             */
482            public TrashEntryService getTrashEntryService() {
483                    return trashEntryService;
484            }
485    
486            /**
487             * Sets the trash entry remote service.
488             *
489             * @param trashEntryService the trash entry remote service
490             */
491            public void setTrashEntryService(TrashEntryService trashEntryService) {
492                    this.trashEntryService = trashEntryService;
493            }
494    
495            /**
496             * Returns the trash entry persistence.
497             *
498             * @return the trash entry persistence
499             */
500            public TrashEntryPersistence getTrashEntryPersistence() {
501                    return trashEntryPersistence;
502            }
503    
504            /**
505             * Sets the trash entry persistence.
506             *
507             * @param trashEntryPersistence the trash entry persistence
508             */
509            public void setTrashEntryPersistence(
510                    TrashEntryPersistence trashEntryPersistence) {
511                    this.trashEntryPersistence = trashEntryPersistence;
512            }
513    
514            public void afterPropertiesSet() {
515            }
516    
517            public void destroy() {
518            }
519    
520            /**
521             * Returns the Spring bean ID for this bean.
522             *
523             * @return the Spring bean ID for this bean
524             */
525            public String getBeanIdentifier() {
526                    return _beanIdentifier;
527            }
528    
529            /**
530             * Sets the Spring bean ID for this bean.
531             *
532             * @param beanIdentifier the Spring bean ID for this bean
533             */
534            public void setBeanIdentifier(String beanIdentifier) {
535                    _beanIdentifier = beanIdentifier;
536            }
537    
538            protected Class<?> getModelClass() {
539                    return WikiNode.class;
540            }
541    
542            protected String getModelClassName() {
543                    return WikiNode.class.getName();
544            }
545    
546            /**
547             * Performs an SQL query.
548             *
549             * @param sql the sql query
550             */
551            protected void runSQL(String sql) throws SystemException {
552                    try {
553                            DataSource dataSource = wikiNodePersistence.getDataSource();
554    
555                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
556                                            sql, new int[0]);
557    
558                            sqlUpdate.update();
559                    }
560                    catch (Exception e) {
561                            throw new SystemException(e);
562                    }
563            }
564    
565            @BeanReference(type = WikiNodeLocalService.class)
566            protected WikiNodeLocalService wikiNodeLocalService;
567            @BeanReference(type = WikiNodeService.class)
568            protected WikiNodeService wikiNodeService;
569            @BeanReference(type = WikiNodePersistence.class)
570            protected WikiNodePersistence wikiNodePersistence;
571            @BeanReference(type = WikiPageLocalService.class)
572            protected WikiPageLocalService wikiPageLocalService;
573            @BeanReference(type = WikiPageService.class)
574            protected WikiPageService wikiPageService;
575            @BeanReference(type = WikiPagePersistence.class)
576            protected WikiPagePersistence wikiPagePersistence;
577            @BeanReference(type = WikiPageFinder.class)
578            protected WikiPageFinder wikiPageFinder;
579            @BeanReference(type = WikiPageResourceLocalService.class)
580            protected WikiPageResourceLocalService wikiPageResourceLocalService;
581            @BeanReference(type = WikiPageResourcePersistence.class)
582            protected WikiPageResourcePersistence wikiPageResourcePersistence;
583            @BeanReference(type = CounterLocalService.class)
584            protected CounterLocalService counterLocalService;
585            @BeanReference(type = GroupLocalService.class)
586            protected GroupLocalService groupLocalService;
587            @BeanReference(type = GroupService.class)
588            protected GroupService groupService;
589            @BeanReference(type = GroupPersistence.class)
590            protected GroupPersistence groupPersistence;
591            @BeanReference(type = GroupFinder.class)
592            protected GroupFinder groupFinder;
593            @BeanReference(type = ResourceLocalService.class)
594            protected ResourceLocalService resourceLocalService;
595            @BeanReference(type = SubscriptionLocalService.class)
596            protected SubscriptionLocalService subscriptionLocalService;
597            @BeanReference(type = SubscriptionPersistence.class)
598            protected SubscriptionPersistence subscriptionPersistence;
599            @BeanReference(type = UserLocalService.class)
600            protected UserLocalService userLocalService;
601            @BeanReference(type = UserService.class)
602            protected UserService userService;
603            @BeanReference(type = UserPersistence.class)
604            protected UserPersistence userPersistence;
605            @BeanReference(type = UserFinder.class)
606            protected UserFinder userFinder;
607            @BeanReference(type = TrashEntryLocalService.class)
608            protected TrashEntryLocalService trashEntryLocalService;
609            @BeanReference(type = TrashEntryService.class)
610            protected TrashEntryService trashEntryService;
611            @BeanReference(type = TrashEntryPersistence.class)
612            protected TrashEntryPersistence trashEntryPersistence;
613            private String _beanIdentifier;
614    }