001
014
015 package com.liferay.portal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class TeamLocalServiceUtil {
038
043
044
051 public static com.liferay.portal.model.Team addTeam(
052 com.liferay.portal.model.Team team)
053 throws com.liferay.portal.kernel.exception.SystemException {
054 return getService().addTeam(team);
055 }
056
057
063 public static com.liferay.portal.model.Team createTeam(long teamId) {
064 return getService().createTeam(teamId);
065 }
066
067
075 public static com.liferay.portal.model.Team deleteTeam(long teamId)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException {
078 return getService().deleteTeam(teamId);
079 }
080
081
089 public static com.liferay.portal.model.Team deleteTeam(
090 com.liferay.portal.model.Team team)
091 throws com.liferay.portal.kernel.exception.PortalException,
092 com.liferay.portal.kernel.exception.SystemException {
093 return getService().deleteTeam(team);
094 }
095
096 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097 return getService().dynamicQuery();
098 }
099
100
107 @SuppressWarnings("rawtypes")
108 public static java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().dynamicQuery(dynamicQuery);
112 }
113
114
127 @SuppressWarnings("rawtypes")
128 public static java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().dynamicQuery(dynamicQuery, start, end);
132 }
133
134
148 @SuppressWarnings("rawtypes")
149 public static java.util.List dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService()
155 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156 }
157
158
165 public static long dynamicQueryCount(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().dynamicQueryCount(dynamicQuery);
169 }
170
171
179 public static long dynamicQueryCount(
180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181 com.liferay.portal.kernel.dao.orm.Projection projection)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().dynamicQueryCount(dynamicQuery, projection);
184 }
185
186 public static com.liferay.portal.model.Team fetchTeam(long teamId)
187 throws com.liferay.portal.kernel.exception.SystemException {
188 return getService().fetchTeam(teamId);
189 }
190
191
199 public static com.liferay.portal.model.Team getTeam(long teamId)
200 throws com.liferay.portal.kernel.exception.PortalException,
201 com.liferay.portal.kernel.exception.SystemException {
202 return getService().getTeam(teamId);
203 }
204
205 public static com.liferay.portal.model.PersistedModel getPersistedModel(
206 java.io.Serializable primaryKeyObj)
207 throws com.liferay.portal.kernel.exception.PortalException,
208 com.liferay.portal.kernel.exception.SystemException {
209 return getService().getPersistedModel(primaryKeyObj);
210 }
211
212
224 public static java.util.List<com.liferay.portal.model.Team> getTeams(
225 int start, int end)
226 throws com.liferay.portal.kernel.exception.SystemException {
227 return getService().getTeams(start, end);
228 }
229
230
236 public static int getTeamsCount()
237 throws com.liferay.portal.kernel.exception.SystemException {
238 return getService().getTeamsCount();
239 }
240
241
248 public static com.liferay.portal.model.Team updateTeam(
249 com.liferay.portal.model.Team team)
250 throws com.liferay.portal.kernel.exception.SystemException {
251 return getService().updateTeam(team);
252 }
253
254
257 public static void addUserTeam(long userId, long teamId)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 getService().addUserTeam(userId, teamId);
260 }
261
262
265 public static void addUserTeam(long userId,
266 com.liferay.portal.model.Team team)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 getService().addUserTeam(userId, team);
269 }
270
271
274 public static void addUserTeams(long userId, long[] teamIds)
275 throws com.liferay.portal.kernel.exception.SystemException {
276 getService().addUserTeams(userId, teamIds);
277 }
278
279
282 public static void addUserTeams(long userId,
283 java.util.List<com.liferay.portal.model.Team> Teams)
284 throws com.liferay.portal.kernel.exception.SystemException {
285 getService().addUserTeams(userId, Teams);
286 }
287
288
291 public static void clearUserTeams(long userId)
292 throws com.liferay.portal.kernel.exception.SystemException {
293 getService().clearUserTeams(userId);
294 }
295
296
299 public static void deleteUserTeam(long userId, long teamId)
300 throws com.liferay.portal.kernel.exception.SystemException {
301 getService().deleteUserTeam(userId, teamId);
302 }
303
304
307 public static void deleteUserTeam(long userId,
308 com.liferay.portal.model.Team team)
309 throws com.liferay.portal.kernel.exception.SystemException {
310 getService().deleteUserTeam(userId, team);
311 }
312
313
316 public static void deleteUserTeams(long userId, long[] teamIds)
317 throws com.liferay.portal.kernel.exception.SystemException {
318 getService().deleteUserTeams(userId, teamIds);
319 }
320
321
324 public static void deleteUserTeams(long userId,
325 java.util.List<com.liferay.portal.model.Team> Teams)
326 throws com.liferay.portal.kernel.exception.SystemException {
327 getService().deleteUserTeams(userId, Teams);
328 }
329
330
333 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
334 long userId) throws com.liferay.portal.kernel.exception.SystemException {
335 return getService().getUserTeams(userId);
336 }
337
338
341 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
342 long userId, int start, int end)
343 throws com.liferay.portal.kernel.exception.SystemException {
344 return getService().getUserTeams(userId, start, end);
345 }
346
347
350 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
351 long userId, int start, int end,
352 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
353 throws com.liferay.portal.kernel.exception.SystemException {
354 return getService().getUserTeams(userId, start, end, orderByComparator);
355 }
356
357
360 public static int getUserTeamsCount(long userId)
361 throws com.liferay.portal.kernel.exception.SystemException {
362 return getService().getUserTeamsCount(userId);
363 }
364
365
368 public static boolean hasUserTeam(long userId, long teamId)
369 throws com.liferay.portal.kernel.exception.SystemException {
370 return getService().hasUserTeam(userId, teamId);
371 }
372
373
376 public static boolean hasUserTeams(long userId)
377 throws com.liferay.portal.kernel.exception.SystemException {
378 return getService().hasUserTeams(userId);
379 }
380
381
384 public static void setUserTeams(long userId, long[] teamIds)
385 throws com.liferay.portal.kernel.exception.SystemException {
386 getService().setUserTeams(userId, teamIds);
387 }
388
389
392 public static void addUserGroupTeam(long userGroupId, long teamId)
393 throws com.liferay.portal.kernel.exception.SystemException {
394 getService().addUserGroupTeam(userGroupId, teamId);
395 }
396
397
400 public static void addUserGroupTeam(long userGroupId,
401 com.liferay.portal.model.Team team)
402 throws com.liferay.portal.kernel.exception.SystemException {
403 getService().addUserGroupTeam(userGroupId, team);
404 }
405
406
409 public static void addUserGroupTeams(long userGroupId, long[] teamIds)
410 throws com.liferay.portal.kernel.exception.SystemException {
411 getService().addUserGroupTeams(userGroupId, teamIds);
412 }
413
414
417 public static void addUserGroupTeams(long userGroupId,
418 java.util.List<com.liferay.portal.model.Team> Teams)
419 throws com.liferay.portal.kernel.exception.SystemException {
420 getService().addUserGroupTeams(userGroupId, Teams);
421 }
422
423
426 public static void clearUserGroupTeams(long userGroupId)
427 throws com.liferay.portal.kernel.exception.SystemException {
428 getService().clearUserGroupTeams(userGroupId);
429 }
430
431
434 public static void deleteUserGroupTeam(long userGroupId, long teamId)
435 throws com.liferay.portal.kernel.exception.SystemException {
436 getService().deleteUserGroupTeam(userGroupId, teamId);
437 }
438
439
442 public static void deleteUserGroupTeam(long userGroupId,
443 com.liferay.portal.model.Team team)
444 throws com.liferay.portal.kernel.exception.SystemException {
445 getService().deleteUserGroupTeam(userGroupId, team);
446 }
447
448
451 public static void deleteUserGroupTeams(long userGroupId, long[] teamIds)
452 throws com.liferay.portal.kernel.exception.SystemException {
453 getService().deleteUserGroupTeams(userGroupId, teamIds);
454 }
455
456
459 public static void deleteUserGroupTeams(long userGroupId,
460 java.util.List<com.liferay.portal.model.Team> Teams)
461 throws com.liferay.portal.kernel.exception.SystemException {
462 getService().deleteUserGroupTeams(userGroupId, Teams);
463 }
464
465
468 public static java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
469 long userGroupId)
470 throws com.liferay.portal.kernel.exception.SystemException {
471 return getService().getUserGroupTeams(userGroupId);
472 }
473
474
477 public static java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
478 long userGroupId, int start, int end)
479 throws com.liferay.portal.kernel.exception.SystemException {
480 return getService().getUserGroupTeams(userGroupId, start, end);
481 }
482
483
486 public static java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
487 long userGroupId, int start, int end,
488 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
489 throws com.liferay.portal.kernel.exception.SystemException {
490 return getService()
491 .getUserGroupTeams(userGroupId, start, end, orderByComparator);
492 }
493
494
497 public static int getUserGroupTeamsCount(long userGroupId)
498 throws com.liferay.portal.kernel.exception.SystemException {
499 return getService().getUserGroupTeamsCount(userGroupId);
500 }
501
502
505 public static boolean hasUserGroupTeam(long userGroupId, long teamId)
506 throws com.liferay.portal.kernel.exception.SystemException {
507 return getService().hasUserGroupTeam(userGroupId, teamId);
508 }
509
510
513 public static boolean hasUserGroupTeams(long userGroupId)
514 throws com.liferay.portal.kernel.exception.SystemException {
515 return getService().hasUserGroupTeams(userGroupId);
516 }
517
518
521 public static void setUserGroupTeams(long userGroupId, long[] teamIds)
522 throws com.liferay.portal.kernel.exception.SystemException {
523 getService().setUserGroupTeams(userGroupId, teamIds);
524 }
525
526
531 public static java.lang.String getBeanIdentifier() {
532 return getService().getBeanIdentifier();
533 }
534
535
540 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
541 getService().setBeanIdentifier(beanIdentifier);
542 }
543
544 public static com.liferay.portal.model.Team addTeam(long userId,
545 long groupId, java.lang.String name, java.lang.String description)
546 throws com.liferay.portal.kernel.exception.PortalException,
547 com.liferay.portal.kernel.exception.SystemException {
548 return getService().addTeam(userId, groupId, name, description);
549 }
550
551 public static void deleteTeams(long groupId)
552 throws com.liferay.portal.kernel.exception.PortalException,
553 com.liferay.portal.kernel.exception.SystemException {
554 getService().deleteTeams(groupId);
555 }
556
557 public static java.util.List<com.liferay.portal.model.Team> getGroupTeams(
558 long groupId)
559 throws com.liferay.portal.kernel.exception.SystemException {
560 return getService().getGroupTeams(groupId);
561 }
562
563 public static com.liferay.portal.model.Team getTeam(long groupId,
564 java.lang.String name)
565 throws com.liferay.portal.kernel.exception.PortalException,
566 com.liferay.portal.kernel.exception.SystemException {
567 return getService().getTeam(groupId, name);
568 }
569
570 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
571 long userId, long groupId)
572 throws com.liferay.portal.kernel.exception.SystemException {
573 return getService().getUserTeams(userId, groupId);
574 }
575
576 public static java.util.List<com.liferay.portal.model.Team> search(
577 long groupId, java.lang.String name, java.lang.String description,
578 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
579 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
580 throws com.liferay.portal.kernel.exception.SystemException {
581 return getService()
582 .search(groupId, name, description, params, start, end, obc);
583 }
584
585 public static int searchCount(long groupId, java.lang.String name,
586 java.lang.String description,
587 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
588 throws com.liferay.portal.kernel.exception.SystemException {
589 return getService().searchCount(groupId, name, description, params);
590 }
591
592 public static com.liferay.portal.model.Team updateTeam(long teamId,
593 java.lang.String name, java.lang.String description)
594 throws com.liferay.portal.kernel.exception.PortalException,
595 com.liferay.portal.kernel.exception.SystemException {
596 return getService().updateTeam(teamId, name, description);
597 }
598
599 public static TeamLocalService getService() {
600 if (_service == null) {
601 _service = (TeamLocalService)PortalBeanLocatorUtil.locate(TeamLocalService.class.getName());
602
603 ReferenceRegistry.registerReference(TeamLocalServiceUtil.class,
604 "_service");
605 }
606
607 return _service;
608 }
609
610
613 public void setService(TeamLocalService service) {
614 }
615
616 private static TeamLocalService _service;
617 }