1
22
23 package com.liferay.portal.service.http;
24
25 import com.liferay.portal.kernel.log.Log;
26 import com.liferay.portal.kernel.log.LogFactoryUtil;
27 import com.liferay.portal.service.UserGroupServiceUtil;
28
29 import java.rmi.RemoteException;
30
31
81 public class UserGroupServiceSoap {
82 public static void addGroupUserGroups(long groupId, long[] userGroupIds)
83 throws RemoteException {
84 try {
85 UserGroupServiceUtil.addGroupUserGroups(groupId, userGroupIds);
86 }
87 catch (Exception e) {
88 _log.error(e, e);
89
90 throw new RemoteException(e.getMessage());
91 }
92 }
93
94 public static com.liferay.portal.model.UserGroupSoap addUserGroup(
95 java.lang.String name, java.lang.String description)
96 throws RemoteException {
97 try {
98 com.liferay.portal.model.UserGroup returnValue = UserGroupServiceUtil.addUserGroup(name,
99 description);
100
101 return com.liferay.portal.model.UserGroupSoap.toSoapModel(returnValue);
102 }
103 catch (Exception e) {
104 _log.error(e, e);
105
106 throw new RemoteException(e.getMessage());
107 }
108 }
109
110 public static void deleteUserGroup(long userGroupId)
111 throws RemoteException {
112 try {
113 UserGroupServiceUtil.deleteUserGroup(userGroupId);
114 }
115 catch (Exception e) {
116 _log.error(e, e);
117
118 throw new RemoteException(e.getMessage());
119 }
120 }
121
122 public static com.liferay.portal.model.UserGroupSoap getUserGroup(
123 long userGroupId) throws RemoteException {
124 try {
125 com.liferay.portal.model.UserGroup returnValue = UserGroupServiceUtil.getUserGroup(userGroupId);
126
127 return com.liferay.portal.model.UserGroupSoap.toSoapModel(returnValue);
128 }
129 catch (Exception e) {
130 _log.error(e, e);
131
132 throw new RemoteException(e.getMessage());
133 }
134 }
135
136 public static com.liferay.portal.model.UserGroupSoap getUserGroup(
137 java.lang.String name) throws RemoteException {
138 try {
139 com.liferay.portal.model.UserGroup returnValue = UserGroupServiceUtil.getUserGroup(name);
140
141 return com.liferay.portal.model.UserGroupSoap.toSoapModel(returnValue);
142 }
143 catch (Exception e) {
144 _log.error(e, e);
145
146 throw new RemoteException(e.getMessage());
147 }
148 }
149
150 public static com.liferay.portal.model.UserGroupSoap[] getUserUserGroups(
151 long userId) throws RemoteException {
152 try {
153 java.util.List<com.liferay.portal.model.UserGroup> returnValue = UserGroupServiceUtil.getUserUserGroups(userId);
154
155 return com.liferay.portal.model.UserGroupSoap.toSoapModels(returnValue);
156 }
157 catch (Exception e) {
158 _log.error(e, e);
159
160 throw new RemoteException(e.getMessage());
161 }
162 }
163
164 public static void unsetGroupUserGroups(long groupId, long[] userGroupIds)
165 throws RemoteException {
166 try {
167 UserGroupServiceUtil.unsetGroupUserGroups(groupId, userGroupIds);
168 }
169 catch (Exception e) {
170 _log.error(e, e);
171
172 throw new RemoteException(e.getMessage());
173 }
174 }
175
176 public static com.liferay.portal.model.UserGroupSoap updateUserGroup(
177 long userGroupId, java.lang.String name, java.lang.String description)
178 throws RemoteException {
179 try {
180 com.liferay.portal.model.UserGroup returnValue = UserGroupServiceUtil.updateUserGroup(userGroupId,
181 name, description);
182
183 return com.liferay.portal.model.UserGroupSoap.toSoapModel(returnValue);
184 }
185 catch (Exception e) {
186 _log.error(e, e);
187
188 throw new RemoteException(e.getMessage());
189 }
190 }
191
192 private static Log _log = LogFactoryUtil.getLog(UserGroupServiceSoap.class);
193 }