001
014
015 package com.liferay.portal.service.base;
016
017 import com.liferay.expando.kernel.service.persistence.ExpandoRowPersistence;
018
019 import com.liferay.exportimport.kernel.service.persistence.ExportImportConfigurationFinder;
020 import com.liferay.exportimport.kernel.service.persistence.ExportImportConfigurationPersistence;
021
022 import com.liferay.portal.kernel.bean.BeanReference;
023 import com.liferay.portal.kernel.dao.db.DB;
024 import com.liferay.portal.kernel.dao.db.DBManagerUtil;
025 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
026 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
027 import com.liferay.portal.kernel.exception.SystemException;
028 import com.liferay.portal.kernel.model.UserGroup;
029 import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
030 import com.liferay.portal.kernel.service.BaseServiceImpl;
031 import com.liferay.portal.kernel.service.UserGroupService;
032 import com.liferay.portal.kernel.service.persistence.GroupFinder;
033 import com.liferay.portal.kernel.service.persistence.GroupPersistence;
034 import com.liferay.portal.kernel.service.persistence.LayoutFinder;
035 import com.liferay.portal.kernel.service.persistence.LayoutPersistence;
036 import com.liferay.portal.kernel.service.persistence.TeamFinder;
037 import com.liferay.portal.kernel.service.persistence.TeamPersistence;
038 import com.liferay.portal.kernel.service.persistence.UserFinder;
039 import com.liferay.portal.kernel.service.persistence.UserGroupFinder;
040 import com.liferay.portal.kernel.service.persistence.UserGroupGroupRoleFinder;
041 import com.liferay.portal.kernel.service.persistence.UserGroupGroupRolePersistence;
042 import com.liferay.portal.kernel.service.persistence.UserGroupPersistence;
043 import com.liferay.portal.kernel.service.persistence.UserPersistence;
044 import com.liferay.portal.kernel.util.PortalUtil;
045
046 import javax.sql.DataSource;
047
048
060 public abstract class UserGroupServiceBaseImpl extends BaseServiceImpl
061 implements UserGroupService, IdentifiableOSGiService {
062
067
068
073 public com.liferay.portal.kernel.service.UserGroupLocalService getUserGroupLocalService() {
074 return userGroupLocalService;
075 }
076
077
082 public void setUserGroupLocalService(
083 com.liferay.portal.kernel.service.UserGroupLocalService userGroupLocalService) {
084 this.userGroupLocalService = userGroupLocalService;
085 }
086
087
092 public UserGroupService getUserGroupService() {
093 return userGroupService;
094 }
095
096
101 public void setUserGroupService(UserGroupService userGroupService) {
102 this.userGroupService = userGroupService;
103 }
104
105
110 public UserGroupPersistence getUserGroupPersistence() {
111 return userGroupPersistence;
112 }
113
114
119 public void setUserGroupPersistence(
120 UserGroupPersistence userGroupPersistence) {
121 this.userGroupPersistence = userGroupPersistence;
122 }
123
124
129 public UserGroupFinder getUserGroupFinder() {
130 return userGroupFinder;
131 }
132
133
138 public void setUserGroupFinder(UserGroupFinder userGroupFinder) {
139 this.userGroupFinder = userGroupFinder;
140 }
141
142
147 public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService() {
148 return counterLocalService;
149 }
150
151
156 public void setCounterLocalService(
157 com.liferay.counter.kernel.service.CounterLocalService counterLocalService) {
158 this.counterLocalService = counterLocalService;
159 }
160
161
166 public com.liferay.portal.kernel.service.GroupLocalService getGroupLocalService() {
167 return groupLocalService;
168 }
169
170
175 public void setGroupLocalService(
176 com.liferay.portal.kernel.service.GroupLocalService groupLocalService) {
177 this.groupLocalService = groupLocalService;
178 }
179
180
185 public com.liferay.portal.kernel.service.GroupService getGroupService() {
186 return groupService;
187 }
188
189
194 public void setGroupService(
195 com.liferay.portal.kernel.service.GroupService groupService) {
196 this.groupService = groupService;
197 }
198
199
204 public GroupPersistence getGroupPersistence() {
205 return groupPersistence;
206 }
207
208
213 public void setGroupPersistence(GroupPersistence groupPersistence) {
214 this.groupPersistence = groupPersistence;
215 }
216
217
222 public GroupFinder getGroupFinder() {
223 return groupFinder;
224 }
225
226
231 public void setGroupFinder(GroupFinder groupFinder) {
232 this.groupFinder = groupFinder;
233 }
234
235
240 public com.liferay.portal.kernel.service.LayoutLocalService getLayoutLocalService() {
241 return layoutLocalService;
242 }
243
244
249 public void setLayoutLocalService(
250 com.liferay.portal.kernel.service.LayoutLocalService layoutLocalService) {
251 this.layoutLocalService = layoutLocalService;
252 }
253
254
259 public com.liferay.portal.kernel.service.LayoutService getLayoutService() {
260 return layoutService;
261 }
262
263
268 public void setLayoutService(
269 com.liferay.portal.kernel.service.LayoutService layoutService) {
270 this.layoutService = layoutService;
271 }
272
273
278 public LayoutPersistence getLayoutPersistence() {
279 return layoutPersistence;
280 }
281
282
287 public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
288 this.layoutPersistence = layoutPersistence;
289 }
290
291
296 public LayoutFinder getLayoutFinder() {
297 return layoutFinder;
298 }
299
300
305 public void setLayoutFinder(LayoutFinder layoutFinder) {
306 this.layoutFinder = layoutFinder;
307 }
308
309
314 public com.liferay.portal.kernel.service.ResourceLocalService getResourceLocalService() {
315 return resourceLocalService;
316 }
317
318
323 public void setResourceLocalService(
324 com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService) {
325 this.resourceLocalService = resourceLocalService;
326 }
327
328
333 public com.liferay.portal.kernel.service.TeamLocalService getTeamLocalService() {
334 return teamLocalService;
335 }
336
337
342 public void setTeamLocalService(
343 com.liferay.portal.kernel.service.TeamLocalService teamLocalService) {
344 this.teamLocalService = teamLocalService;
345 }
346
347
352 public com.liferay.portal.kernel.service.TeamService getTeamService() {
353 return teamService;
354 }
355
356
361 public void setTeamService(
362 com.liferay.portal.kernel.service.TeamService teamService) {
363 this.teamService = teamService;
364 }
365
366
371 public TeamPersistence getTeamPersistence() {
372 return teamPersistence;
373 }
374
375
380 public void setTeamPersistence(TeamPersistence teamPersistence) {
381 this.teamPersistence = teamPersistence;
382 }
383
384
389 public TeamFinder getTeamFinder() {
390 return teamFinder;
391 }
392
393
398 public void setTeamFinder(TeamFinder teamFinder) {
399 this.teamFinder = teamFinder;
400 }
401
402
407 public com.liferay.portal.kernel.service.UserLocalService getUserLocalService() {
408 return userLocalService;
409 }
410
411
416 public void setUserLocalService(
417 com.liferay.portal.kernel.service.UserLocalService userLocalService) {
418 this.userLocalService = userLocalService;
419 }
420
421
426 public com.liferay.portal.kernel.service.UserService getUserService() {
427 return userService;
428 }
429
430
435 public void setUserService(
436 com.liferay.portal.kernel.service.UserService userService) {
437 this.userService = userService;
438 }
439
440
445 public UserPersistence getUserPersistence() {
446 return userPersistence;
447 }
448
449
454 public void setUserPersistence(UserPersistence userPersistence) {
455 this.userPersistence = userPersistence;
456 }
457
458
463 public UserFinder getUserFinder() {
464 return userFinder;
465 }
466
467
472 public void setUserFinder(UserFinder userFinder) {
473 this.userFinder = userFinder;
474 }
475
476
481 public com.liferay.expando.kernel.service.ExpandoRowLocalService getExpandoRowLocalService() {
482 return expandoRowLocalService;
483 }
484
485
490 public void setExpandoRowLocalService(
491 com.liferay.expando.kernel.service.ExpandoRowLocalService expandoRowLocalService) {
492 this.expandoRowLocalService = expandoRowLocalService;
493 }
494
495
500 public ExpandoRowPersistence getExpandoRowPersistence() {
501 return expandoRowPersistence;
502 }
503
504
509 public void setExpandoRowPersistence(
510 ExpandoRowPersistence expandoRowPersistence) {
511 this.expandoRowPersistence = expandoRowPersistence;
512 }
513
514
519 public com.liferay.exportimport.kernel.service.ExportImportLocalService getExportImportLocalService() {
520 return exportImportLocalService;
521 }
522
523
528 public void setExportImportLocalService(
529 com.liferay.exportimport.kernel.service.ExportImportLocalService exportImportLocalService) {
530 this.exportImportLocalService = exportImportLocalService;
531 }
532
533
538 public com.liferay.exportimport.kernel.service.ExportImportService getExportImportService() {
539 return exportImportService;
540 }
541
542
547 public void setExportImportService(
548 com.liferay.exportimport.kernel.service.ExportImportService exportImportService) {
549 this.exportImportService = exportImportService;
550 }
551
552
557 public com.liferay.exportimport.kernel.service.ExportImportConfigurationLocalService getExportImportConfigurationLocalService() {
558 return exportImportConfigurationLocalService;
559 }
560
561
566 public void setExportImportConfigurationLocalService(
567 com.liferay.exportimport.kernel.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService) {
568 this.exportImportConfigurationLocalService = exportImportConfigurationLocalService;
569 }
570
571
576 public com.liferay.exportimport.kernel.service.ExportImportConfigurationService getExportImportConfigurationService() {
577 return exportImportConfigurationService;
578 }
579
580
585 public void setExportImportConfigurationService(
586 com.liferay.exportimport.kernel.service.ExportImportConfigurationService exportImportConfigurationService) {
587 this.exportImportConfigurationService = exportImportConfigurationService;
588 }
589
590
595 public ExportImportConfigurationPersistence getExportImportConfigurationPersistence() {
596 return exportImportConfigurationPersistence;
597 }
598
599
604 public void setExportImportConfigurationPersistence(
605 ExportImportConfigurationPersistence exportImportConfigurationPersistence) {
606 this.exportImportConfigurationPersistence = exportImportConfigurationPersistence;
607 }
608
609
614 public ExportImportConfigurationFinder getExportImportConfigurationFinder() {
615 return exportImportConfigurationFinder;
616 }
617
618
623 public void setExportImportConfigurationFinder(
624 ExportImportConfigurationFinder exportImportConfigurationFinder) {
625 this.exportImportConfigurationFinder = exportImportConfigurationFinder;
626 }
627
628
633 public com.liferay.portal.kernel.service.UserGroupGroupRoleLocalService getUserGroupGroupRoleLocalService() {
634 return userGroupGroupRoleLocalService;
635 }
636
637
642 public void setUserGroupGroupRoleLocalService(
643 com.liferay.portal.kernel.service.UserGroupGroupRoleLocalService userGroupGroupRoleLocalService) {
644 this.userGroupGroupRoleLocalService = userGroupGroupRoleLocalService;
645 }
646
647
652 public com.liferay.portal.kernel.service.UserGroupGroupRoleService getUserGroupGroupRoleService() {
653 return userGroupGroupRoleService;
654 }
655
656
661 public void setUserGroupGroupRoleService(
662 com.liferay.portal.kernel.service.UserGroupGroupRoleService userGroupGroupRoleService) {
663 this.userGroupGroupRoleService = userGroupGroupRoleService;
664 }
665
666
671 public UserGroupGroupRolePersistence getUserGroupGroupRolePersistence() {
672 return userGroupGroupRolePersistence;
673 }
674
675
680 public void setUserGroupGroupRolePersistence(
681 UserGroupGroupRolePersistence userGroupGroupRolePersistence) {
682 this.userGroupGroupRolePersistence = userGroupGroupRolePersistence;
683 }
684
685
690 public UserGroupGroupRoleFinder getUserGroupGroupRoleFinder() {
691 return userGroupGroupRoleFinder;
692 }
693
694
699 public void setUserGroupGroupRoleFinder(
700 UserGroupGroupRoleFinder userGroupGroupRoleFinder) {
701 this.userGroupGroupRoleFinder = userGroupGroupRoleFinder;
702 }
703
704 public void afterPropertiesSet() {
705 }
706
707 public void destroy() {
708 }
709
710
715 @Override
716 public String getOSGiServiceIdentifier() {
717 return UserGroupService.class.getName();
718 }
719
720 protected Class<?> getModelClass() {
721 return UserGroup.class;
722 }
723
724 protected String getModelClassName() {
725 return UserGroup.class.getName();
726 }
727
728
733 protected void runSQL(String sql) {
734 try {
735 DataSource dataSource = userGroupPersistence.getDataSource();
736
737 DB db = DBManagerUtil.getDB();
738
739 sql = db.buildSQL(sql);
740 sql = PortalUtil.transformSQL(sql);
741
742 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
743 sql, new int[0]);
744
745 sqlUpdate.update();
746 }
747 catch (Exception e) {
748 throw new SystemException(e);
749 }
750 }
751
752 @BeanReference(type = com.liferay.portal.kernel.service.UserGroupLocalService.class)
753 protected com.liferay.portal.kernel.service.UserGroupLocalService userGroupLocalService;
754 @BeanReference(type = com.liferay.portal.kernel.service.UserGroupService.class)
755 protected UserGroupService userGroupService;
756 @BeanReference(type = UserGroupPersistence.class)
757 protected UserGroupPersistence userGroupPersistence;
758 @BeanReference(type = UserGroupFinder.class)
759 protected UserGroupFinder userGroupFinder;
760 @BeanReference(type = com.liferay.counter.kernel.service.CounterLocalService.class)
761 protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService;
762 @BeanReference(type = com.liferay.portal.kernel.service.GroupLocalService.class)
763 protected com.liferay.portal.kernel.service.GroupLocalService groupLocalService;
764 @BeanReference(type = com.liferay.portal.kernel.service.GroupService.class)
765 protected com.liferay.portal.kernel.service.GroupService groupService;
766 @BeanReference(type = GroupPersistence.class)
767 protected GroupPersistence groupPersistence;
768 @BeanReference(type = GroupFinder.class)
769 protected GroupFinder groupFinder;
770 @BeanReference(type = com.liferay.portal.kernel.service.LayoutLocalService.class)
771 protected com.liferay.portal.kernel.service.LayoutLocalService layoutLocalService;
772 @BeanReference(type = com.liferay.portal.kernel.service.LayoutService.class)
773 protected com.liferay.portal.kernel.service.LayoutService layoutService;
774 @BeanReference(type = LayoutPersistence.class)
775 protected LayoutPersistence layoutPersistence;
776 @BeanReference(type = LayoutFinder.class)
777 protected LayoutFinder layoutFinder;
778 @BeanReference(type = com.liferay.portal.kernel.service.ResourceLocalService.class)
779 protected com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService;
780 @BeanReference(type = com.liferay.portal.kernel.service.TeamLocalService.class)
781 protected com.liferay.portal.kernel.service.TeamLocalService teamLocalService;
782 @BeanReference(type = com.liferay.portal.kernel.service.TeamService.class)
783 protected com.liferay.portal.kernel.service.TeamService teamService;
784 @BeanReference(type = TeamPersistence.class)
785 protected TeamPersistence teamPersistence;
786 @BeanReference(type = TeamFinder.class)
787 protected TeamFinder teamFinder;
788 @BeanReference(type = com.liferay.portal.kernel.service.UserLocalService.class)
789 protected com.liferay.portal.kernel.service.UserLocalService userLocalService;
790 @BeanReference(type = com.liferay.portal.kernel.service.UserService.class)
791 protected com.liferay.portal.kernel.service.UserService userService;
792 @BeanReference(type = UserPersistence.class)
793 protected UserPersistence userPersistence;
794 @BeanReference(type = UserFinder.class)
795 protected UserFinder userFinder;
796 @BeanReference(type = com.liferay.expando.kernel.service.ExpandoRowLocalService.class)
797 protected com.liferay.expando.kernel.service.ExpandoRowLocalService expandoRowLocalService;
798 @BeanReference(type = ExpandoRowPersistence.class)
799 protected ExpandoRowPersistence expandoRowPersistence;
800 @BeanReference(type = com.liferay.exportimport.kernel.service.ExportImportLocalService.class)
801 protected com.liferay.exportimport.kernel.service.ExportImportLocalService exportImportLocalService;
802 @BeanReference(type = com.liferay.exportimport.kernel.service.ExportImportService.class)
803 protected com.liferay.exportimport.kernel.service.ExportImportService exportImportService;
804 @BeanReference(type = com.liferay.exportimport.kernel.service.ExportImportConfigurationLocalService.class)
805 protected com.liferay.exportimport.kernel.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService;
806 @BeanReference(type = com.liferay.exportimport.kernel.service.ExportImportConfigurationService.class)
807 protected com.liferay.exportimport.kernel.service.ExportImportConfigurationService exportImportConfigurationService;
808 @BeanReference(type = ExportImportConfigurationPersistence.class)
809 protected ExportImportConfigurationPersistence exportImportConfigurationPersistence;
810 @BeanReference(type = ExportImportConfigurationFinder.class)
811 protected ExportImportConfigurationFinder exportImportConfigurationFinder;
812 @BeanReference(type = com.liferay.portal.kernel.service.UserGroupGroupRoleLocalService.class)
813 protected com.liferay.portal.kernel.service.UserGroupGroupRoleLocalService userGroupGroupRoleLocalService;
814 @BeanReference(type = com.liferay.portal.kernel.service.UserGroupGroupRoleService.class)
815 protected com.liferay.portal.kernel.service.UserGroupGroupRoleService userGroupGroupRoleService;
816 @BeanReference(type = UserGroupGroupRolePersistence.class)
817 protected UserGroupGroupRolePersistence userGroupGroupRolePersistence;
818 @BeanReference(type = UserGroupGroupRoleFinder.class)
819 protected UserGroupGroupRoleFinder userGroupGroupRoleFinder;
820 }