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
243 public static com.liferay.portal.model.Team updateTeam(
244 com.liferay.portal.model.Team team, boolean merge)
245 throws com.liferay.portal.kernel.exception.SystemException {
246 return getService().updateTeam(team, merge);
247 }
248
249
252 public static void addUserTeam(long userId, long teamId)
253 throws com.liferay.portal.kernel.exception.SystemException {
254 getService().addUserTeam(userId, teamId);
255 }
256
257
260 public static void addUserTeam(long userId,
261 com.liferay.portal.model.Team team)
262 throws com.liferay.portal.kernel.exception.SystemException {
263 getService().addUserTeam(userId, team);
264 }
265
266
269 public static void addUserTeams(long userId, long[] teamIds)
270 throws com.liferay.portal.kernel.exception.SystemException {
271 getService().addUserTeams(userId, teamIds);
272 }
273
274
277 public static void addUserTeams(long userId,
278 java.util.List<com.liferay.portal.model.Team> Teams)
279 throws com.liferay.portal.kernel.exception.SystemException {
280 getService().addUserTeams(userId, Teams);
281 }
282
283
286 public static void clearUserTeams(long userId)
287 throws com.liferay.portal.kernel.exception.SystemException {
288 getService().clearUserTeams(userId);
289 }
290
291
294 public static void deleteUserTeam(long userId, long teamId)
295 throws com.liferay.portal.kernel.exception.SystemException {
296 getService().deleteUserTeam(userId, teamId);
297 }
298
299
302 public static void deleteUserTeam(long userId,
303 com.liferay.portal.model.Team team)
304 throws com.liferay.portal.kernel.exception.SystemException {
305 getService().deleteUserTeam(userId, team);
306 }
307
308
311 public static void deleteUserTeams(long userId, long[] teamIds)
312 throws com.liferay.portal.kernel.exception.SystemException {
313 getService().deleteUserTeams(userId, teamIds);
314 }
315
316
319 public static void deleteUserTeams(long userId,
320 java.util.List<com.liferay.portal.model.Team> Teams)
321 throws com.liferay.portal.kernel.exception.SystemException {
322 getService().deleteUserTeams(userId, Teams);
323 }
324
325
328 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
329 long userId) throws com.liferay.portal.kernel.exception.SystemException {
330 return getService().getUserTeams(userId);
331 }
332
333
336 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
337 long userId, int start, int end)
338 throws com.liferay.portal.kernel.exception.SystemException {
339 return getService().getUserTeams(userId, start, end);
340 }
341
342
345 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
346 long userId, int start, int end,
347 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
348 throws com.liferay.portal.kernel.exception.SystemException {
349 return getService().getUserTeams(userId, start, end, orderByComparator);
350 }
351
352
355 public static int getUserTeamsCount(long userId)
356 throws com.liferay.portal.kernel.exception.SystemException {
357 return getService().getUserTeamsCount(userId);
358 }
359
360
363 public static boolean hasUserTeam(long userId, long teamId)
364 throws com.liferay.portal.kernel.exception.SystemException {
365 return getService().hasUserTeam(userId, teamId);
366 }
367
368
371 public static boolean hasUserTeams(long userId)
372 throws com.liferay.portal.kernel.exception.SystemException {
373 return getService().hasUserTeams(userId);
374 }
375
376
379 public static void setUserTeams(long userId, long[] teamIds)
380 throws com.liferay.portal.kernel.exception.SystemException {
381 getService().setUserTeams(userId, teamIds);
382 }
383
384
387 public static void addUserGroupTeam(long userGroupId, long teamId)
388 throws com.liferay.portal.kernel.exception.SystemException {
389 getService().addUserGroupTeam(userGroupId, teamId);
390 }
391
392
395 public static void addUserGroupTeam(long userGroupId,
396 com.liferay.portal.model.Team team)
397 throws com.liferay.portal.kernel.exception.SystemException {
398 getService().addUserGroupTeam(userGroupId, team);
399 }
400
401
404 public static void addUserGroupTeams(long userGroupId, long[] teamIds)
405 throws com.liferay.portal.kernel.exception.SystemException {
406 getService().addUserGroupTeams(userGroupId, teamIds);
407 }
408
409
412 public static void addUserGroupTeams(long userGroupId,
413 java.util.List<com.liferay.portal.model.Team> Teams)
414 throws com.liferay.portal.kernel.exception.SystemException {
415 getService().addUserGroupTeams(userGroupId, Teams);
416 }
417
418
421 public static void clearUserGroupTeams(long userGroupId)
422 throws com.liferay.portal.kernel.exception.SystemException {
423 getService().clearUserGroupTeams(userGroupId);
424 }
425
426
429 public static void deleteUserGroupTeam(long userGroupId, long teamId)
430 throws com.liferay.portal.kernel.exception.SystemException {
431 getService().deleteUserGroupTeam(userGroupId, teamId);
432 }
433
434
437 public static void deleteUserGroupTeam(long userGroupId,
438 com.liferay.portal.model.Team team)
439 throws com.liferay.portal.kernel.exception.SystemException {
440 getService().deleteUserGroupTeam(userGroupId, team);
441 }
442
443
446 public static void deleteUserGroupTeams(long userGroupId, long[] teamIds)
447 throws com.liferay.portal.kernel.exception.SystemException {
448 getService().deleteUserGroupTeams(userGroupId, teamIds);
449 }
450
451
454 public static void deleteUserGroupTeams(long userGroupId,
455 java.util.List<com.liferay.portal.model.Team> Teams)
456 throws com.liferay.portal.kernel.exception.SystemException {
457 getService().deleteUserGroupTeams(userGroupId, Teams);
458 }
459
460
463 public static java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
464 long userGroupId)
465 throws com.liferay.portal.kernel.exception.SystemException {
466 return getService().getUserGroupTeams(userGroupId);
467 }
468
469
472 public static java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
473 long userGroupId, int start, int end)
474 throws com.liferay.portal.kernel.exception.SystemException {
475 return getService().getUserGroupTeams(userGroupId, start, end);
476 }
477
478
481 public static java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
482 long userGroupId, int start, int end,
483 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
484 throws com.liferay.portal.kernel.exception.SystemException {
485 return getService()
486 .getUserGroupTeams(userGroupId, start, end, orderByComparator);
487 }
488
489
492 public static int getUserGroupTeamsCount(long userGroupId)
493 throws com.liferay.portal.kernel.exception.SystemException {
494 return getService().getUserGroupTeamsCount(userGroupId);
495 }
496
497
500 public static boolean hasUserGroupTeam(long userGroupId, long teamId)
501 throws com.liferay.portal.kernel.exception.SystemException {
502 return getService().hasUserGroupTeam(userGroupId, teamId);
503 }
504
505
508 public static boolean hasUserGroupTeams(long userGroupId)
509 throws com.liferay.portal.kernel.exception.SystemException {
510 return getService().hasUserGroupTeams(userGroupId);
511 }
512
513
516 public static void setUserGroupTeams(long userGroupId, long[] teamIds)
517 throws com.liferay.portal.kernel.exception.SystemException {
518 getService().setUserGroupTeams(userGroupId, teamIds);
519 }
520
521
526 public static java.lang.String getBeanIdentifier() {
527 return getService().getBeanIdentifier();
528 }
529
530
535 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
536 getService().setBeanIdentifier(beanIdentifier);
537 }
538
539 public static com.liferay.portal.model.Team addTeam(long userId,
540 long groupId, java.lang.String name, java.lang.String description)
541 throws com.liferay.portal.kernel.exception.PortalException,
542 com.liferay.portal.kernel.exception.SystemException {
543 return getService().addTeam(userId, groupId, name, description);
544 }
545
546 public static void deleteTeams(long groupId)
547 throws com.liferay.portal.kernel.exception.PortalException,
548 com.liferay.portal.kernel.exception.SystemException {
549 getService().deleteTeams(groupId);
550 }
551
552 public static java.util.List<com.liferay.portal.model.Team> getGroupTeams(
553 long groupId)
554 throws com.liferay.portal.kernel.exception.SystemException {
555 return getService().getGroupTeams(groupId);
556 }
557
558 public static com.liferay.portal.model.Team getTeam(long groupId,
559 java.lang.String name)
560 throws com.liferay.portal.kernel.exception.PortalException,
561 com.liferay.portal.kernel.exception.SystemException {
562 return getService().getTeam(groupId, name);
563 }
564
565 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
566 long userId, long groupId)
567 throws com.liferay.portal.kernel.exception.SystemException {
568 return getService().getUserTeams(userId, groupId);
569 }
570
571 public static java.util.List<com.liferay.portal.model.Team> search(
572 long groupId, java.lang.String name, java.lang.String description,
573 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
574 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
575 throws com.liferay.portal.kernel.exception.SystemException {
576 return getService()
577 .search(groupId, name, description, params, start, end, obc);
578 }
579
580 public static int searchCount(long groupId, java.lang.String name,
581 java.lang.String description,
582 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
583 throws com.liferay.portal.kernel.exception.SystemException {
584 return getService().searchCount(groupId, name, description, params);
585 }
586
587 public static com.liferay.portal.model.Team updateTeam(long teamId,
588 java.lang.String name, java.lang.String description)
589 throws com.liferay.portal.kernel.exception.PortalException,
590 com.liferay.portal.kernel.exception.SystemException {
591 return getService().updateTeam(teamId, name, description);
592 }
593
594 public static TeamLocalService getService() {
595 if (_service == null) {
596 _service = (TeamLocalService)PortalBeanLocatorUtil.locate(TeamLocalService.class.getName());
597
598 ReferenceRegistry.registerReference(TeamLocalServiceUtil.class,
599 "_service");
600 }
601
602 return _service;
603 }
604
605
608 public void setService(TeamLocalService service) {
609 }
610
611 private static TeamLocalService _service;
612 }