001
014
015 package com.liferay.portal.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portal.service.TeamServiceUtil;
020
021 import java.rmi.RemoteException;
022
023
063 public class TeamServiceSoap {
064 public static com.liferay.portal.model.TeamSoap addTeam(long groupId,
065 java.lang.String name, java.lang.String description)
066 throws RemoteException {
067 try {
068 com.liferay.portal.model.Team returnValue = TeamServiceUtil.addTeam(groupId,
069 name, description);
070
071 return com.liferay.portal.model.TeamSoap.toSoapModel(returnValue);
072 }
073 catch (Exception e) {
074 _log.error(e, e);
075
076 throw new RemoteException(e.getMessage());
077 }
078 }
079
080 public static void deleteTeam(long teamId) throws RemoteException {
081 try {
082 TeamServiceUtil.deleteTeam(teamId);
083 }
084 catch (Exception e) {
085 _log.error(e, e);
086
087 throw new RemoteException(e.getMessage());
088 }
089 }
090
091 public static com.liferay.portal.model.TeamSoap[] getGroupTeams(
092 long groupId) throws RemoteException {
093 try {
094 java.util.List<com.liferay.portal.model.Team> returnValue = TeamServiceUtil.getGroupTeams(groupId);
095
096 return com.liferay.portal.model.TeamSoap.toSoapModels(returnValue);
097 }
098 catch (Exception e) {
099 _log.error(e, e);
100
101 throw new RemoteException(e.getMessage());
102 }
103 }
104
105 public static com.liferay.portal.model.TeamSoap getTeam(long teamId)
106 throws RemoteException {
107 try {
108 com.liferay.portal.model.Team returnValue = TeamServiceUtil.getTeam(teamId);
109
110 return com.liferay.portal.model.TeamSoap.toSoapModel(returnValue);
111 }
112 catch (Exception e) {
113 _log.error(e, e);
114
115 throw new RemoteException(e.getMessage());
116 }
117 }
118
119 public static com.liferay.portal.model.TeamSoap getTeam(long groupId,
120 java.lang.String name) throws RemoteException {
121 try {
122 com.liferay.portal.model.Team returnValue = TeamServiceUtil.getTeam(groupId,
123 name);
124
125 return com.liferay.portal.model.TeamSoap.toSoapModel(returnValue);
126 }
127 catch (Exception e) {
128 _log.error(e, e);
129
130 throw new RemoteException(e.getMessage());
131 }
132 }
133
134 public static com.liferay.portal.model.TeamSoap[] getUserTeams(long userId)
135 throws RemoteException {
136 try {
137 java.util.List<com.liferay.portal.model.Team> returnValue = TeamServiceUtil.getUserTeams(userId);
138
139 return com.liferay.portal.model.TeamSoap.toSoapModels(returnValue);
140 }
141 catch (Exception e) {
142 _log.error(e, e);
143
144 throw new RemoteException(e.getMessage());
145 }
146 }
147
148 public static com.liferay.portal.model.TeamSoap[] getUserTeams(
149 long userId, long groupId) throws RemoteException {
150 try {
151 java.util.List<com.liferay.portal.model.Team> returnValue = TeamServiceUtil.getUserTeams(userId,
152 groupId);
153
154 return com.liferay.portal.model.TeamSoap.toSoapModels(returnValue);
155 }
156 catch (Exception e) {
157 _log.error(e, e);
158
159 throw new RemoteException(e.getMessage());
160 }
161 }
162
163 public static boolean hasUserTeam(long userId, long teamId)
164 throws RemoteException {
165 try {
166 boolean returnValue = TeamServiceUtil.hasUserTeam(userId, teamId);
167
168 return returnValue;
169 }
170 catch (Exception e) {
171 _log.error(e, e);
172
173 throw new RemoteException(e.getMessage());
174 }
175 }
176
177 public static com.liferay.portal.model.TeamSoap updateTeam(long teamId,
178 java.lang.String name, java.lang.String description)
179 throws RemoteException {
180 try {
181 com.liferay.portal.model.Team returnValue = TeamServiceUtil.updateTeam(teamId,
182 name, description);
183
184 return com.liferay.portal.model.TeamSoap.toSoapModel(returnValue);
185 }
186 catch (Exception e) {
187 _log.error(e, e);
188
189 throw new RemoteException(e.getMessage());
190 }
191 }
192
193 private static Log _log = LogFactoryUtil.getLog(TeamServiceSoap.class);
194 }