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.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
065 public abstract class WikiNodeServiceBaseImpl extends BaseServiceImpl
066 implements WikiNodeService, IdentifiableBean {
067
072
073
078 public WikiNodeLocalService getWikiNodeLocalService() {
079 return wikiNodeLocalService;
080 }
081
082
087 public void setWikiNodeLocalService(
088 WikiNodeLocalService wikiNodeLocalService) {
089 this.wikiNodeLocalService = wikiNodeLocalService;
090 }
091
092
097 public WikiNodeService getWikiNodeService() {
098 return wikiNodeService;
099 }
100
101
106 public void setWikiNodeService(WikiNodeService wikiNodeService) {
107 this.wikiNodeService = wikiNodeService;
108 }
109
110
115 public WikiNodePersistence getWikiNodePersistence() {
116 return wikiNodePersistence;
117 }
118
119
124 public void setWikiNodePersistence(WikiNodePersistence wikiNodePersistence) {
125 this.wikiNodePersistence = wikiNodePersistence;
126 }
127
128
133 public WikiPageLocalService getWikiPageLocalService() {
134 return wikiPageLocalService;
135 }
136
137
142 public void setWikiPageLocalService(
143 WikiPageLocalService wikiPageLocalService) {
144 this.wikiPageLocalService = wikiPageLocalService;
145 }
146
147
152 public WikiPageService getWikiPageService() {
153 return wikiPageService;
154 }
155
156
161 public void setWikiPageService(WikiPageService wikiPageService) {
162 this.wikiPageService = wikiPageService;
163 }
164
165
170 public WikiPagePersistence getWikiPagePersistence() {
171 return wikiPagePersistence;
172 }
173
174
179 public void setWikiPagePersistence(WikiPagePersistence wikiPagePersistence) {
180 this.wikiPagePersistence = wikiPagePersistence;
181 }
182
183
188 public WikiPageFinder getWikiPageFinder() {
189 return wikiPageFinder;
190 }
191
192
197 public void setWikiPageFinder(WikiPageFinder wikiPageFinder) {
198 this.wikiPageFinder = wikiPageFinder;
199 }
200
201
206 public WikiPageResourceLocalService getWikiPageResourceLocalService() {
207 return wikiPageResourceLocalService;
208 }
209
210
215 public void setWikiPageResourceLocalService(
216 WikiPageResourceLocalService wikiPageResourceLocalService) {
217 this.wikiPageResourceLocalService = wikiPageResourceLocalService;
218 }
219
220
225 public WikiPageResourcePersistence getWikiPageResourcePersistence() {
226 return wikiPageResourcePersistence;
227 }
228
229
234 public void setWikiPageResourcePersistence(
235 WikiPageResourcePersistence wikiPageResourcePersistence) {
236 this.wikiPageResourcePersistence = wikiPageResourcePersistence;
237 }
238
239
244 public CounterLocalService getCounterLocalService() {
245 return counterLocalService;
246 }
247
248
253 public void setCounterLocalService(CounterLocalService counterLocalService) {
254 this.counterLocalService = counterLocalService;
255 }
256
257
262 public GroupLocalService getGroupLocalService() {
263 return groupLocalService;
264 }
265
266
271 public void setGroupLocalService(GroupLocalService groupLocalService) {
272 this.groupLocalService = groupLocalService;
273 }
274
275
280 public GroupService getGroupService() {
281 return groupService;
282 }
283
284
289 public void setGroupService(GroupService groupService) {
290 this.groupService = groupService;
291 }
292
293
298 public GroupPersistence getGroupPersistence() {
299 return groupPersistence;
300 }
301
302
307 public void setGroupPersistence(GroupPersistence groupPersistence) {
308 this.groupPersistence = groupPersistence;
309 }
310
311
316 public GroupFinder getGroupFinder() {
317 return groupFinder;
318 }
319
320
325 public void setGroupFinder(GroupFinder groupFinder) {
326 this.groupFinder = groupFinder;
327 }
328
329
334 public ResourceLocalService getResourceLocalService() {
335 return resourceLocalService;
336 }
337
338
343 public void setResourceLocalService(
344 ResourceLocalService resourceLocalService) {
345 this.resourceLocalService = resourceLocalService;
346 }
347
348
353 public ResourceService getResourceService() {
354 return resourceService;
355 }
356
357
362 public void setResourceService(ResourceService resourceService) {
363 this.resourceService = resourceService;
364 }
365
366
371 public ResourcePersistence getResourcePersistence() {
372 return resourcePersistence;
373 }
374
375
380 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
381 this.resourcePersistence = resourcePersistence;
382 }
383
384
389 public ResourceFinder getResourceFinder() {
390 return resourceFinder;
391 }
392
393
398 public void setResourceFinder(ResourceFinder resourceFinder) {
399 this.resourceFinder = resourceFinder;
400 }
401
402
407 public SubscriptionLocalService getSubscriptionLocalService() {
408 return subscriptionLocalService;
409 }
410
411
416 public void setSubscriptionLocalService(
417 SubscriptionLocalService subscriptionLocalService) {
418 this.subscriptionLocalService = subscriptionLocalService;
419 }
420
421
426 public SubscriptionPersistence getSubscriptionPersistence() {
427 return subscriptionPersistence;
428 }
429
430
435 public void setSubscriptionPersistence(
436 SubscriptionPersistence subscriptionPersistence) {
437 this.subscriptionPersistence = subscriptionPersistence;
438 }
439
440
445 public UserLocalService getUserLocalService() {
446 return userLocalService;
447 }
448
449
454 public void setUserLocalService(UserLocalService userLocalService) {
455 this.userLocalService = userLocalService;
456 }
457
458
463 public UserService getUserService() {
464 return userService;
465 }
466
467
472 public void setUserService(UserService userService) {
473 this.userService = userService;
474 }
475
476
481 public UserPersistence getUserPersistence() {
482 return userPersistence;
483 }
484
485
490 public void setUserPersistence(UserPersistence userPersistence) {
491 this.userPersistence = userPersistence;
492 }
493
494
499 public UserFinder getUserFinder() {
500 return userFinder;
501 }
502
503
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
523 public String getBeanIdentifier() {
524 return _beanIdentifier;
525 }
526
527
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
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 }