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
238 public static void addUserTeam(long userId, long teamId)
239 throws com.liferay.portal.kernel.exception.SystemException {
240 getService().addUserTeam(userId, teamId);
241 }
242
243
246 public static void addUserTeam(long userId,
247 com.liferay.portal.model.Team team)
248 throws com.liferay.portal.kernel.exception.SystemException {
249 getService().addUserTeam(userId, team);
250 }
251
252
255 public static void addUserTeams(long userId, long[] teamIds)
256 throws com.liferay.portal.kernel.exception.SystemException {
257 getService().addUserTeams(userId, teamIds);
258 }
259
260
263 public static void addUserTeams(long userId,
264 java.util.List<com.liferay.portal.model.Team> Teams)
265 throws com.liferay.portal.kernel.exception.SystemException {
266 getService().addUserTeams(userId, Teams);
267 }
268
269
272 public static void clearUserTeams(long userId)
273 throws com.liferay.portal.kernel.exception.SystemException {
274 getService().clearUserTeams(userId);
275 }
276
277
280 public static void deleteUserTeam(long userId, long teamId)
281 throws com.liferay.portal.kernel.exception.SystemException {
282 getService().deleteUserTeam(userId, teamId);
283 }
284
285
288 public static void deleteUserTeam(long userId,
289 com.liferay.portal.model.Team team)
290 throws com.liferay.portal.kernel.exception.SystemException {
291 getService().deleteUserTeam(userId, team);
292 }
293
294
297 public static void deleteUserTeams(long userId, long[] teamIds)
298 throws com.liferay.portal.kernel.exception.SystemException {
299 getService().deleteUserTeams(userId, teamIds);
300 }
301
302
305 public static void deleteUserTeams(long userId,
306 java.util.List<com.liferay.portal.model.Team> Teams)
307 throws com.liferay.portal.kernel.exception.SystemException {
308 getService().deleteUserTeams(userId, Teams);
309 }
310
311
314 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
315 long userId) throws com.liferay.portal.kernel.exception.SystemException {
316 return getService().getUserTeams(userId);
317 }
318
319
322 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
323 long userId, int start, int end)
324 throws com.liferay.portal.kernel.exception.SystemException {
325 return getService().getUserTeams(userId, start, end);
326 }
327
328
331 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
332 long userId, int start, int end,
333 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
334 throws com.liferay.portal.kernel.exception.SystemException {
335 return getService().getUserTeams(userId, start, end, orderByComparator);
336 }
337
338
341 public static int getUserTeamsCount(long userId)
342 throws com.liferay.portal.kernel.exception.SystemException {
343 return getService().getUserTeamsCount(userId);
344 }
345
346
349 public static boolean hasUserTeam(long userId, long teamId)
350 throws com.liferay.portal.kernel.exception.SystemException {
351 return getService().hasUserTeam(userId, teamId);
352 }
353
354
357 public static boolean hasUserTeams(long userId)
358 throws com.liferay.portal.kernel.exception.SystemException {
359 return getService().hasUserTeams(userId);
360 }
361
362
365 public static void setUserTeams(long userId, long[] teamIds)
366 throws com.liferay.portal.kernel.exception.SystemException {
367 getService().setUserTeams(userId, teamIds);
368 }
369
370
373 public static void addUserGroupTeam(long userGroupId, long teamId)
374 throws com.liferay.portal.kernel.exception.SystemException {
375 getService().addUserGroupTeam(userGroupId, teamId);
376 }
377
378
381 public static void addUserGroupTeam(long userGroupId,
382 com.liferay.portal.model.Team team)
383 throws com.liferay.portal.kernel.exception.SystemException {
384 getService().addUserGroupTeam(userGroupId, team);
385 }
386
387
390 public static void addUserGroupTeams(long userGroupId, long[] teamIds)
391 throws com.liferay.portal.kernel.exception.SystemException {
392 getService().addUserGroupTeams(userGroupId, teamIds);
393 }
394
395
398 public static void addUserGroupTeams(long userGroupId,
399 java.util.List<com.liferay.portal.model.Team> Teams)
400 throws com.liferay.portal.kernel.exception.SystemException {
401 getService().addUserGroupTeams(userGroupId, Teams);
402 }
403
404
407 public static void clearUserGroupTeams(long userGroupId)
408 throws com.liferay.portal.kernel.exception.SystemException {
409 getService().clearUserGroupTeams(userGroupId);
410 }
411
412
415 public static void deleteUserGroupTeam(long userGroupId, long teamId)
416 throws com.liferay.portal.kernel.exception.SystemException {
417 getService().deleteUserGroupTeam(userGroupId, teamId);
418 }
419
420
423 public static void deleteUserGroupTeam(long userGroupId,
424 com.liferay.portal.model.Team team)
425 throws com.liferay.portal.kernel.exception.SystemException {
426 getService().deleteUserGroupTeam(userGroupId, team);
427 }
428
429
432 public static void deleteUserGroupTeams(long userGroupId, long[] teamIds)
433 throws com.liferay.portal.kernel.exception.SystemException {
434 getService().deleteUserGroupTeams(userGroupId, teamIds);
435 }
436
437
440 public static void deleteUserGroupTeams(long userGroupId,
441 java.util.List<com.liferay.portal.model.Team> Teams)
442 throws com.liferay.portal.kernel.exception.SystemException {
443 getService().deleteUserGroupTeams(userGroupId, Teams);
444 }
445
446
449 public static java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
450 long userGroupId)
451 throws com.liferay.portal.kernel.exception.SystemException {
452 return getService().getUserGroupTeams(userGroupId);
453 }
454
455
458 public static java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
459 long userGroupId, int start, int end)
460 throws com.liferay.portal.kernel.exception.SystemException {
461 return getService().getUserGroupTeams(userGroupId, start, end);
462 }
463
464
467 public static java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
468 long userGroupId, int start, int end,
469 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
470 throws com.liferay.portal.kernel.exception.SystemException {
471 return getService()
472 .getUserGroupTeams(userGroupId, start, end, orderByComparator);
473 }
474
475
478 public static int getUserGroupTeamsCount(long userGroupId)
479 throws com.liferay.portal.kernel.exception.SystemException {
480 return getService().getUserGroupTeamsCount(userGroupId);
481 }
482
483
486 public static boolean hasUserGroupTeam(long userGroupId, long teamId)
487 throws com.liferay.portal.kernel.exception.SystemException {
488 return getService().hasUserGroupTeam(userGroupId, teamId);
489 }
490
491
494 public static boolean hasUserGroupTeams(long userGroupId)
495 throws com.liferay.portal.kernel.exception.SystemException {
496 return getService().hasUserGroupTeams(userGroupId);
497 }
498
499
502 public static void setUserGroupTeams(long userGroupId, long[] teamIds)
503 throws com.liferay.portal.kernel.exception.SystemException {
504 getService().setUserGroupTeams(userGroupId, teamIds);
505 }
506
507
512 public static java.lang.String getBeanIdentifier() {
513 return getService().getBeanIdentifier();
514 }
515
516
521 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
522 getService().setBeanIdentifier(beanIdentifier);
523 }
524
525 public static com.liferay.portal.model.Team addTeam(long userId,
526 long groupId, java.lang.String name, java.lang.String description)
527 throws com.liferay.portal.kernel.exception.PortalException,
528 com.liferay.portal.kernel.exception.SystemException {
529 return getService().addTeam(userId, groupId, name, description);
530 }
531
532 public static void deleteTeams(long groupId)
533 throws com.liferay.portal.kernel.exception.PortalException,
534 com.liferay.portal.kernel.exception.SystemException {
535 getService().deleteTeams(groupId);
536 }
537
538 public static java.util.List<com.liferay.portal.model.Team> getGroupTeams(
539 long groupId)
540 throws com.liferay.portal.kernel.exception.SystemException {
541 return getService().getGroupTeams(groupId);
542 }
543
544 public static com.liferay.portal.model.Team getTeam(long groupId,
545 java.lang.String name)
546 throws com.liferay.portal.kernel.exception.PortalException,
547 com.liferay.portal.kernel.exception.SystemException {
548 return getService().getTeam(groupId, name);
549 }
550
551 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
552 long userId, long groupId)
553 throws com.liferay.portal.kernel.exception.SystemException {
554 return getService().getUserTeams(userId, groupId);
555 }
556
557 public static java.util.List<com.liferay.portal.model.Team> search(
558 long groupId, java.lang.String name, java.lang.String description,
559 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
560 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
561 throws com.liferay.portal.kernel.exception.SystemException {
562 return getService()
563 .search(groupId, name, description, params, start, end, obc);
564 }
565
566 public static int searchCount(long groupId, java.lang.String name,
567 java.lang.String description,
568 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
569 throws com.liferay.portal.kernel.exception.SystemException {
570 return getService().searchCount(groupId, name, description, params);
571 }
572
573 public static com.liferay.portal.model.Team updateTeam(long teamId,
574 java.lang.String name, java.lang.String description)
575 throws com.liferay.portal.kernel.exception.PortalException,
576 com.liferay.portal.kernel.exception.SystemException {
577 return getService().updateTeam(teamId, name, description);
578 }
579
580 public static TeamLocalService getService() {
581 if (_service == null) {
582 _service = (TeamLocalService)PortalBeanLocatorUtil.locate(TeamLocalService.class.getName());
583
584 ReferenceRegistry.registerReference(TeamLocalServiceUtil.class,
585 "_service");
586 }
587
588 return _service;
589 }
590
591
594 public void setService(TeamLocalService service) {
595 }
596
597 private static TeamLocalService _service;
598 }