001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class TeamLocalServiceUtil {
034
039
040
047 public static com.liferay.portal.model.Team addTeam(
048 com.liferay.portal.model.Team team)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addTeam(team);
051 }
052
053
059 public static com.liferay.portal.model.Team createTeam(long teamId) {
060 return getService().createTeam(teamId);
061 }
062
063
071 public static com.liferay.portal.model.Team deleteTeam(long teamId)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException {
074 return getService().deleteTeam(teamId);
075 }
076
077
085 public static com.liferay.portal.model.Team deleteTeam(
086 com.liferay.portal.model.Team team)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteTeam(team);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portal.model.Team fetchTeam(long teamId)
168 throws com.liferay.portal.kernel.exception.SystemException {
169 return getService().fetchTeam(teamId);
170 }
171
172
180 public static com.liferay.portal.model.Team getTeam(long teamId)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException {
183 return getService().getTeam(teamId);
184 }
185
186 public static com.liferay.portal.model.PersistedModel getPersistedModel(
187 java.io.Serializable primaryKeyObj)
188 throws com.liferay.portal.kernel.exception.PortalException,
189 com.liferay.portal.kernel.exception.SystemException {
190 return getService().getPersistedModel(primaryKeyObj);
191 }
192
193
205 public static java.util.List<com.liferay.portal.model.Team> getTeams(
206 int start, int end)
207 throws com.liferay.portal.kernel.exception.SystemException {
208 return getService().getTeams(start, end);
209 }
210
211
217 public static int getTeamsCount()
218 throws com.liferay.portal.kernel.exception.SystemException {
219 return getService().getTeamsCount();
220 }
221
222
229 public static com.liferay.portal.model.Team updateTeam(
230 com.liferay.portal.model.Team team)
231 throws com.liferay.portal.kernel.exception.SystemException {
232 return getService().updateTeam(team);
233 }
234
235
240 public static java.lang.String getBeanIdentifier() {
241 return getService().getBeanIdentifier();
242 }
243
244
249 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
250 getService().setBeanIdentifier(beanIdentifier);
251 }
252
253 public static com.liferay.portal.model.Team addTeam(long userId,
254 long groupId, java.lang.String name, java.lang.String description)
255 throws com.liferay.portal.kernel.exception.PortalException,
256 com.liferay.portal.kernel.exception.SystemException {
257 return getService().addTeam(userId, groupId, name, description);
258 }
259
260 public static void deleteTeams(long groupId)
261 throws com.liferay.portal.kernel.exception.PortalException,
262 com.liferay.portal.kernel.exception.SystemException {
263 getService().deleteTeams(groupId);
264 }
265
266 public static java.util.List<com.liferay.portal.model.Team> getGroupTeams(
267 long groupId)
268 throws com.liferay.portal.kernel.exception.SystemException {
269 return getService().getGroupTeams(groupId);
270 }
271
272 public static com.liferay.portal.model.Team getTeam(long groupId,
273 java.lang.String name)
274 throws com.liferay.portal.kernel.exception.PortalException,
275 com.liferay.portal.kernel.exception.SystemException {
276 return getService().getTeam(groupId, name);
277 }
278
279 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
280 long userId) throws com.liferay.portal.kernel.exception.SystemException {
281 return getService().getUserTeams(userId);
282 }
283
284 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
285 long userId, long groupId)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 return getService().getUserTeams(userId, groupId);
288 }
289
290 public static boolean hasUserTeam(long userId, long teamId)
291 throws com.liferay.portal.kernel.exception.SystemException {
292 return getService().hasUserTeam(userId, teamId);
293 }
294
295 public static java.util.List<com.liferay.portal.model.Team> search(
296 long groupId, java.lang.String name, java.lang.String description,
297 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
298 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
299 throws com.liferay.portal.kernel.exception.SystemException {
300 return getService()
301 .search(groupId, name, description, params, start, end, obc);
302 }
303
304 public static int searchCount(long groupId, java.lang.String name,
305 java.lang.String description,
306 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
307 throws com.liferay.portal.kernel.exception.SystemException {
308 return getService().searchCount(groupId, name, description, params);
309 }
310
311 public static com.liferay.portal.model.Team updateTeam(long teamId,
312 java.lang.String name, java.lang.String description)
313 throws com.liferay.portal.kernel.exception.PortalException,
314 com.liferay.portal.kernel.exception.SystemException {
315 return getService().updateTeam(teamId, name, description);
316 }
317
318 public static TeamLocalService getService() {
319 if (_service == null) {
320 _service = (TeamLocalService)PortalBeanLocatorUtil.locate(TeamLocalService.class.getName());
321
322 ReferenceRegistry.registerReference(TeamLocalServiceUtil.class,
323 "_service");
324 }
325
326 return _service;
327 }
328
329
332 public void setService(TeamLocalService service) {
333 }
334
335 private static TeamLocalService _service;
336 }