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
034 public class TeamLocalServiceUtil {
035
040
041
048 public static com.liferay.portal.model.Team addTeam(
049 com.liferay.portal.model.Team team)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addTeam(team);
052 }
053
054
060 public static com.liferay.portal.model.Team createTeam(long teamId) {
061 return getService().createTeam(teamId);
062 }
063
064
072 public static com.liferay.portal.model.Team deleteTeam(long teamId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 return getService().deleteTeam(teamId);
076 }
077
078
086 public static com.liferay.portal.model.Team deleteTeam(
087 com.liferay.portal.model.Team team)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService().deleteTeam(team);
091 }
092
093 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094 return getService().dynamicQuery();
095 }
096
097
104 @SuppressWarnings("rawtypes")
105 public static java.util.List dynamicQuery(
106 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().dynamicQuery(dynamicQuery);
109 }
110
111
124 @SuppressWarnings("rawtypes")
125 public static java.util.List dynamicQuery(
126 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127 int end) throws com.liferay.portal.kernel.exception.SystemException {
128 return getService().dynamicQuery(dynamicQuery, start, end);
129 }
130
131
145 @SuppressWarnings("rawtypes")
146 public static java.util.List dynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getService()
152 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
153 }
154
155
162 public static long dynamicQueryCount(
163 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().dynamicQueryCount(dynamicQuery);
166 }
167
168
176 public static long dynamicQueryCount(
177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178 com.liferay.portal.kernel.dao.orm.Projection projection)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getService().dynamicQueryCount(dynamicQuery, projection);
181 }
182
183 public static com.liferay.portal.model.Team fetchTeam(long teamId)
184 throws com.liferay.portal.kernel.exception.SystemException {
185 return getService().fetchTeam(teamId);
186 }
187
188
196 public static com.liferay.portal.model.Team getTeam(long teamId)
197 throws com.liferay.portal.kernel.exception.PortalException,
198 com.liferay.portal.kernel.exception.SystemException {
199 return getService().getTeam(teamId);
200 }
201
202 public static com.liferay.portal.model.PersistedModel getPersistedModel(
203 java.io.Serializable primaryKeyObj)
204 throws com.liferay.portal.kernel.exception.PortalException,
205 com.liferay.portal.kernel.exception.SystemException {
206 return getService().getPersistedModel(primaryKeyObj);
207 }
208
209
221 public static java.util.List<com.liferay.portal.model.Team> getTeams(
222 int start, int end)
223 throws com.liferay.portal.kernel.exception.SystemException {
224 return getService().getTeams(start, end);
225 }
226
227
233 public static int getTeamsCount()
234 throws com.liferay.portal.kernel.exception.SystemException {
235 return getService().getTeamsCount();
236 }
237
238
245 public static com.liferay.portal.model.Team updateTeam(
246 com.liferay.portal.model.Team team)
247 throws com.liferay.portal.kernel.exception.SystemException {
248 return getService().updateTeam(team);
249 }
250
251
254 public static void addUserTeam(long userId, long teamId)
255 throws com.liferay.portal.kernel.exception.SystemException {
256 getService().addUserTeam(userId, teamId);
257 }
258
259
262 public static void addUserTeam(long userId,
263 com.liferay.portal.model.Team team)
264 throws com.liferay.portal.kernel.exception.SystemException {
265 getService().addUserTeam(userId, team);
266 }
267
268
271 public static void addUserTeams(long userId, long[] teamIds)
272 throws com.liferay.portal.kernel.exception.SystemException {
273 getService().addUserTeams(userId, teamIds);
274 }
275
276
279 public static void addUserTeams(long userId,
280 java.util.List<com.liferay.portal.model.Team> Teams)
281 throws com.liferay.portal.kernel.exception.SystemException {
282 getService().addUserTeams(userId, Teams);
283 }
284
285
288 public static void clearUserTeams(long userId)
289 throws com.liferay.portal.kernel.exception.SystemException {
290 getService().clearUserTeams(userId);
291 }
292
293
296 public static void deleteUserTeam(long userId, long teamId)
297 throws com.liferay.portal.kernel.exception.SystemException {
298 getService().deleteUserTeam(userId, teamId);
299 }
300
301
304 public static void deleteUserTeam(long userId,
305 com.liferay.portal.model.Team team)
306 throws com.liferay.portal.kernel.exception.SystemException {
307 getService().deleteUserTeam(userId, team);
308 }
309
310
313 public static void deleteUserTeams(long userId, long[] teamIds)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 getService().deleteUserTeams(userId, teamIds);
316 }
317
318
321 public static void deleteUserTeams(long userId,
322 java.util.List<com.liferay.portal.model.Team> Teams)
323 throws com.liferay.portal.kernel.exception.SystemException {
324 getService().deleteUserTeams(userId, Teams);
325 }
326
327
330 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
331 long userId) throws com.liferay.portal.kernel.exception.SystemException {
332 return getService().getUserTeams(userId);
333 }
334
335
338 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
339 long userId, int start, int end)
340 throws com.liferay.portal.kernel.exception.SystemException {
341 return getService().getUserTeams(userId, start, end);
342 }
343
344
347 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
348 long userId, int start, int end,
349 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
350 throws com.liferay.portal.kernel.exception.SystemException {
351 return getService().getUserTeams(userId, start, end, orderByComparator);
352 }
353
354
357 public static int getUserTeamsCount(long userId)
358 throws com.liferay.portal.kernel.exception.SystemException {
359 return getService().getUserTeamsCount(userId);
360 }
361
362
365 public static boolean hasUserTeam(long userId, long teamId)
366 throws com.liferay.portal.kernel.exception.SystemException {
367 return getService().hasUserTeam(userId, teamId);
368 }
369
370
373 public static boolean hasUserTeams(long userId)
374 throws com.liferay.portal.kernel.exception.SystemException {
375 return getService().hasUserTeams(userId);
376 }
377
378
381 public static void setUserTeams(long userId, long[] teamIds)
382 throws com.liferay.portal.kernel.exception.SystemException {
383 getService().setUserTeams(userId, teamIds);
384 }
385
386
389 public static void addUserGroupTeam(long userGroupId, long teamId)
390 throws com.liferay.portal.kernel.exception.SystemException {
391 getService().addUserGroupTeam(userGroupId, teamId);
392 }
393
394
397 public static void addUserGroupTeam(long userGroupId,
398 com.liferay.portal.model.Team team)
399 throws com.liferay.portal.kernel.exception.SystemException {
400 getService().addUserGroupTeam(userGroupId, team);
401 }
402
403
406 public static void addUserGroupTeams(long userGroupId, long[] teamIds)
407 throws com.liferay.portal.kernel.exception.SystemException {
408 getService().addUserGroupTeams(userGroupId, teamIds);
409 }
410
411
414 public static void addUserGroupTeams(long userGroupId,
415 java.util.List<com.liferay.portal.model.Team> Teams)
416 throws com.liferay.portal.kernel.exception.SystemException {
417 getService().addUserGroupTeams(userGroupId, Teams);
418 }
419
420
423 public static void clearUserGroupTeams(long userGroupId)
424 throws com.liferay.portal.kernel.exception.SystemException {
425 getService().clearUserGroupTeams(userGroupId);
426 }
427
428
431 public static void deleteUserGroupTeam(long userGroupId, long teamId)
432 throws com.liferay.portal.kernel.exception.SystemException {
433 getService().deleteUserGroupTeam(userGroupId, teamId);
434 }
435
436
439 public static void deleteUserGroupTeam(long userGroupId,
440 com.liferay.portal.model.Team team)
441 throws com.liferay.portal.kernel.exception.SystemException {
442 getService().deleteUserGroupTeam(userGroupId, team);
443 }
444
445
448 public static void deleteUserGroupTeams(long userGroupId, long[] teamIds)
449 throws com.liferay.portal.kernel.exception.SystemException {
450 getService().deleteUserGroupTeams(userGroupId, teamIds);
451 }
452
453
456 public static void deleteUserGroupTeams(long userGroupId,
457 java.util.List<com.liferay.portal.model.Team> Teams)
458 throws com.liferay.portal.kernel.exception.SystemException {
459 getService().deleteUserGroupTeams(userGroupId, Teams);
460 }
461
462
465 public static java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
466 long userGroupId)
467 throws com.liferay.portal.kernel.exception.SystemException {
468 return getService().getUserGroupTeams(userGroupId);
469 }
470
471
474 public static java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
475 long userGroupId, int start, int end)
476 throws com.liferay.portal.kernel.exception.SystemException {
477 return getService().getUserGroupTeams(userGroupId, start, end);
478 }
479
480
483 public static java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
484 long userGroupId, int start, int end,
485 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
486 throws com.liferay.portal.kernel.exception.SystemException {
487 return getService()
488 .getUserGroupTeams(userGroupId, start, end, orderByComparator);
489 }
490
491
494 public static int getUserGroupTeamsCount(long userGroupId)
495 throws com.liferay.portal.kernel.exception.SystemException {
496 return getService().getUserGroupTeamsCount(userGroupId);
497 }
498
499
502 public static boolean hasUserGroupTeam(long userGroupId, long teamId)
503 throws com.liferay.portal.kernel.exception.SystemException {
504 return getService().hasUserGroupTeam(userGroupId, teamId);
505 }
506
507
510 public static boolean hasUserGroupTeams(long userGroupId)
511 throws com.liferay.portal.kernel.exception.SystemException {
512 return getService().hasUserGroupTeams(userGroupId);
513 }
514
515
518 public static void setUserGroupTeams(long userGroupId, long[] teamIds)
519 throws com.liferay.portal.kernel.exception.SystemException {
520 getService().setUserGroupTeams(userGroupId, teamIds);
521 }
522
523
528 public static java.lang.String getBeanIdentifier() {
529 return getService().getBeanIdentifier();
530 }
531
532
537 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
538 getService().setBeanIdentifier(beanIdentifier);
539 }
540
541 public static com.liferay.portal.model.Team addTeam(long userId,
542 long groupId, java.lang.String name, java.lang.String description)
543 throws com.liferay.portal.kernel.exception.PortalException,
544 com.liferay.portal.kernel.exception.SystemException {
545 return getService().addTeam(userId, groupId, name, description);
546 }
547
548 public static void deleteTeams(long groupId)
549 throws com.liferay.portal.kernel.exception.PortalException,
550 com.liferay.portal.kernel.exception.SystemException {
551 getService().deleteTeams(groupId);
552 }
553
554 public static java.util.List<com.liferay.portal.model.Team> getGroupTeams(
555 long groupId)
556 throws com.liferay.portal.kernel.exception.SystemException {
557 return getService().getGroupTeams(groupId);
558 }
559
560 public static com.liferay.portal.model.Team getTeam(long groupId,
561 java.lang.String name)
562 throws com.liferay.portal.kernel.exception.PortalException,
563 com.liferay.portal.kernel.exception.SystemException {
564 return getService().getTeam(groupId, name);
565 }
566
567 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
568 long userId, long groupId)
569 throws com.liferay.portal.kernel.exception.SystemException {
570 return getService().getUserTeams(userId, groupId);
571 }
572
573 public static java.util.List<com.liferay.portal.model.Team> search(
574 long groupId, java.lang.String name, java.lang.String description,
575 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
576 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
577 throws com.liferay.portal.kernel.exception.SystemException {
578 return getService()
579 .search(groupId, name, description, params, start, end, obc);
580 }
581
582 public static int searchCount(long groupId, java.lang.String name,
583 java.lang.String description,
584 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
585 throws com.liferay.portal.kernel.exception.SystemException {
586 return getService().searchCount(groupId, name, description, params);
587 }
588
589 public static com.liferay.portal.model.Team updateTeam(long teamId,
590 java.lang.String name, java.lang.String description)
591 throws com.liferay.portal.kernel.exception.PortalException,
592 com.liferay.portal.kernel.exception.SystemException {
593 return getService().updateTeam(teamId, name, description);
594 }
595
596 public static TeamLocalService getService() {
597 if (_service == null) {
598 _service = (TeamLocalService)PortalBeanLocatorUtil.locate(TeamLocalService.class.getName());
599
600 ReferenceRegistry.registerReference(TeamLocalServiceUtil.class,
601 "_service");
602 }
603
604 return _service;
605 }
606
607
610 public void setService(TeamLocalService service) {
611 }
612
613 private static TeamLocalService _service;
614 }