001
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
067 public abstract class WikiNodeServiceBaseImpl extends PrincipalBean
068 implements WikiNodeService {
069
074 public WikiNodeLocalService getWikiNodeLocalService() {
075 return wikiNodeLocalService;
076 }
077
078
083 public void setWikiNodeLocalService(
084 WikiNodeLocalService wikiNodeLocalService) {
085 this.wikiNodeLocalService = wikiNodeLocalService;
086 }
087
088
093 public WikiNodeService getWikiNodeService() {
094 return wikiNodeService;
095 }
096
097
102 public void setWikiNodeService(WikiNodeService wikiNodeService) {
103 this.wikiNodeService = wikiNodeService;
104 }
105
106
111 public WikiNodePersistence getWikiNodePersistence() {
112 return wikiNodePersistence;
113 }
114
115
120 public void setWikiNodePersistence(WikiNodePersistence wikiNodePersistence) {
121 this.wikiNodePersistence = wikiNodePersistence;
122 }
123
124
129 public WikiPageLocalService getWikiPageLocalService() {
130 return wikiPageLocalService;
131 }
132
133
138 public void setWikiPageLocalService(
139 WikiPageLocalService wikiPageLocalService) {
140 this.wikiPageLocalService = wikiPageLocalService;
141 }
142
143
148 public WikiPageService getWikiPageService() {
149 return wikiPageService;
150 }
151
152
157 public void setWikiPageService(WikiPageService wikiPageService) {
158 this.wikiPageService = wikiPageService;
159 }
160
161
166 public WikiPagePersistence getWikiPagePersistence() {
167 return wikiPagePersistence;
168 }
169
170
175 public void setWikiPagePersistence(WikiPagePersistence wikiPagePersistence) {
176 this.wikiPagePersistence = wikiPagePersistence;
177 }
178
179
184 public WikiPageFinder getWikiPageFinder() {
185 return wikiPageFinder;
186 }
187
188
193 public void setWikiPageFinder(WikiPageFinder wikiPageFinder) {
194 this.wikiPageFinder = wikiPageFinder;
195 }
196
197
202 public WikiPageResourceLocalService getWikiPageResourceLocalService() {
203 return wikiPageResourceLocalService;
204 }
205
206
211 public void setWikiPageResourceLocalService(
212 WikiPageResourceLocalService wikiPageResourceLocalService) {
213 this.wikiPageResourceLocalService = wikiPageResourceLocalService;
214 }
215
216
221 public WikiPageResourcePersistence getWikiPageResourcePersistence() {
222 return wikiPageResourcePersistence;
223 }
224
225
230 public void setWikiPageResourcePersistence(
231 WikiPageResourcePersistence wikiPageResourcePersistence) {
232 this.wikiPageResourcePersistence = wikiPageResourcePersistence;
233 }
234
235
240 public CounterLocalService getCounterLocalService() {
241 return counterLocalService;
242 }
243
244
249 public void setCounterLocalService(CounterLocalService counterLocalService) {
250 this.counterLocalService = counterLocalService;
251 }
252
253
258 public GroupLocalService getGroupLocalService() {
259 return groupLocalService;
260 }
261
262
267 public void setGroupLocalService(GroupLocalService groupLocalService) {
268 this.groupLocalService = groupLocalService;
269 }
270
271
276 public GroupService getGroupService() {
277 return groupService;
278 }
279
280
285 public void setGroupService(GroupService groupService) {
286 this.groupService = groupService;
287 }
288
289
294 public GroupPersistence getGroupPersistence() {
295 return groupPersistence;
296 }
297
298
303 public void setGroupPersistence(GroupPersistence groupPersistence) {
304 this.groupPersistence = groupPersistence;
305 }
306
307
312 public GroupFinder getGroupFinder() {
313 return groupFinder;
314 }
315
316
321 public void setGroupFinder(GroupFinder groupFinder) {
322 this.groupFinder = groupFinder;
323 }
324
325
330 public ResourceLocalService getResourceLocalService() {
331 return resourceLocalService;
332 }
333
334
339 public void setResourceLocalService(
340 ResourceLocalService resourceLocalService) {
341 this.resourceLocalService = resourceLocalService;
342 }
343
344
349 public ResourceService getResourceService() {
350 return resourceService;
351 }
352
353
358 public void setResourceService(ResourceService resourceService) {
359 this.resourceService = resourceService;
360 }
361
362
367 public ResourcePersistence getResourcePersistence() {
368 return resourcePersistence;
369 }
370
371
376 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
377 this.resourcePersistence = resourcePersistence;
378 }
379
380
385 public ResourceFinder getResourceFinder() {
386 return resourceFinder;
387 }
388
389
394 public void setResourceFinder(ResourceFinder resourceFinder) {
395 this.resourceFinder = resourceFinder;
396 }
397
398
403 public SubscriptionLocalService getSubscriptionLocalService() {
404 return subscriptionLocalService;
405 }
406
407
412 public void setSubscriptionLocalService(
413 SubscriptionLocalService subscriptionLocalService) {
414 this.subscriptionLocalService = subscriptionLocalService;
415 }
416
417
422 public SubscriptionPersistence getSubscriptionPersistence() {
423 return subscriptionPersistence;
424 }
425
426
431 public void setSubscriptionPersistence(
432 SubscriptionPersistence subscriptionPersistence) {
433 this.subscriptionPersistence = subscriptionPersistence;
434 }
435
436
441 public UserLocalService getUserLocalService() {
442 return userLocalService;
443 }
444
445
450 public void setUserLocalService(UserLocalService userLocalService) {
451 this.userLocalService = userLocalService;
452 }
453
454
459 public UserService getUserService() {
460 return userService;
461 }
462
463
468 public void setUserService(UserService userService) {
469 this.userService = userService;
470 }
471
472
477 public UserPersistence getUserPersistence() {
478 return userPersistence;
479 }
480
481
486 public void setUserPersistence(UserPersistence userPersistence) {
487 this.userPersistence = userPersistence;
488 }
489
490
495 public UserFinder getUserFinder() {
496 return userFinder;
497 }
498
499
504 public void setUserFinder(UserFinder userFinder) {
505 this.userFinder = userFinder;
506 }
507
508
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 }