1
19
20 package com.liferay.portal.service;
21
22
23
44 public class UserGroupServiceUtil {
45 public static void addGroupUserGroups(long groupId, long[] userGroupIds)
46 throws com.liferay.portal.PortalException,
47 com.liferay.portal.SystemException, java.rmi.RemoteException {
48 getService().addGroupUserGroups(groupId, userGroupIds);
49 }
50
51 public static com.liferay.portal.model.UserGroup addUserGroup(
52 java.lang.String name, java.lang.String description)
53 throws com.liferay.portal.PortalException,
54 com.liferay.portal.SystemException, java.rmi.RemoteException {
55 return getService().addUserGroup(name, description);
56 }
57
58 public static void deleteUserGroup(long userGroupId)
59 throws com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException, java.rmi.RemoteException {
61 getService().deleteUserGroup(userGroupId);
62 }
63
64 public static com.liferay.portal.model.UserGroup getUserGroup(
65 long userGroupId)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException, java.rmi.RemoteException {
68 return getService().getUserGroup(userGroupId);
69 }
70
71 public static com.liferay.portal.model.UserGroup getUserGroup(
72 java.lang.String name)
73 throws com.liferay.portal.PortalException,
74 com.liferay.portal.SystemException, java.rmi.RemoteException {
75 return getService().getUserGroup(name);
76 }
77
78 public static java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
79 long userId)
80 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
81 return getService().getUserUserGroups(userId);
82 }
83
84 public static void unsetGroupUserGroups(long groupId, long[] userGroupIds)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException, java.rmi.RemoteException {
87 getService().unsetGroupUserGroups(groupId, userGroupIds);
88 }
89
90 public static com.liferay.portal.model.UserGroup updateUserGroup(
91 long userGroupId, java.lang.String name, java.lang.String description)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException, java.rmi.RemoteException {
94 return getService().updateUserGroup(userGroupId, name, description);
95 }
96
97 public static UserGroupService getService() {
98 if (_service == null) {
99 throw new RuntimeException("UserGroupService is not set");
100 }
101
102 return _service;
103 }
104
105 public void setService(UserGroupService service) {
106 _service = service;
107 }
108
109 private static UserGroupService _service;
110 }