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