001
014
015 package com.liferay.portal.kernel.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 public static boolean hasUserGroupTeam(long userGroupId, long teamId) {
044 return getService().hasUserGroupTeam(userGroupId, teamId);
045 }
046
047 public static boolean hasUserGroupTeams(long userGroupId) {
048 return getService().hasUserGroupTeams(userGroupId);
049 }
050
051 public static boolean hasUserTeam(long userId, long teamId) {
052 return getService().hasUserTeam(userId, teamId);
053 }
054
055 public static boolean hasUserTeams(long userId) {
056 return getService().hasUserTeams(userId);
057 }
058
059 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
060 return getService().getActionableDynamicQuery();
061 }
062
063 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
064 return getService().dynamicQuery();
065 }
066
067 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
068 com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) {
069 return getService().getExportActionableDynamicQuery(portletDataContext);
070 }
071
072 public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
073 return getService().getIndexableActionableDynamicQuery();
074 }
075
076
079 public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
080 com.liferay.portal.kernel.model.PersistedModel persistedModel)
081 throws com.liferay.portal.kernel.exception.PortalException {
082 return getService().deletePersistedModel(persistedModel);
083 }
084
085 public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
086 java.io.Serializable primaryKeyObj)
087 throws com.liferay.portal.kernel.exception.PortalException {
088 return getService().getPersistedModel(primaryKeyObj);
089 }
090
091
097 public static com.liferay.portal.kernel.model.Team addTeam(
098 com.liferay.portal.kernel.model.Team team) {
099 return getService().addTeam(team);
100 }
101
102
106 @Deprecated
107 public static com.liferay.portal.kernel.model.Team addTeam(long userId,
108 long groupId, java.lang.String name, java.lang.String description)
109 throws com.liferay.portal.kernel.exception.PortalException {
110 return getService().addTeam(userId, groupId, name, description);
111 }
112
113 public static com.liferay.portal.kernel.model.Team addTeam(long userId,
114 long groupId, java.lang.String name, java.lang.String description,
115 ServiceContext serviceContext)
116 throws com.liferay.portal.kernel.exception.PortalException {
117 return getService()
118 .addTeam(userId, groupId, name, description, serviceContext);
119 }
120
121
127 public static com.liferay.portal.kernel.model.Team createTeam(long teamId) {
128 return getService().createTeam(teamId);
129 }
130
131
138 public static com.liferay.portal.kernel.model.Team deleteTeam(
139 com.liferay.portal.kernel.model.Team team)
140 throws com.liferay.portal.kernel.exception.PortalException {
141 return getService().deleteTeam(team);
142 }
143
144
151 public static com.liferay.portal.kernel.model.Team deleteTeam(long teamId)
152 throws com.liferay.portal.kernel.exception.PortalException {
153 return getService().deleteTeam(teamId);
154 }
155
156 public static com.liferay.portal.kernel.model.Team fetchTeam(long groupId,
157 java.lang.String name) {
158 return getService().fetchTeam(groupId, name);
159 }
160
161 public static com.liferay.portal.kernel.model.Team fetchTeam(long teamId) {
162 return getService().fetchTeam(teamId);
163 }
164
165
172 public static com.liferay.portal.kernel.model.Team fetchTeamByUuidAndGroupId(
173 java.lang.String uuid, long groupId) {
174 return getService().fetchTeamByUuidAndGroupId(uuid, groupId);
175 }
176
177 public static com.liferay.portal.kernel.model.Team getTeam(long groupId,
178 java.lang.String name)
179 throws com.liferay.portal.kernel.exception.PortalException {
180 return getService().getTeam(groupId, name);
181 }
182
183
190 public static com.liferay.portal.kernel.model.Team getTeam(long teamId)
191 throws com.liferay.portal.kernel.exception.PortalException {
192 return getService().getTeam(teamId);
193 }
194
195
203 public static com.liferay.portal.kernel.model.Team getTeamByUuidAndGroupId(
204 java.lang.String uuid, long groupId)
205 throws com.liferay.portal.kernel.exception.PortalException {
206 return getService().getTeamByUuidAndGroupId(uuid, groupId);
207 }
208
209
215 public static com.liferay.portal.kernel.model.Team updateTeam(
216 com.liferay.portal.kernel.model.Team team) {
217 return getService().updateTeam(team);
218 }
219
220 public static com.liferay.portal.kernel.model.Team updateTeam(long teamId,
221 java.lang.String name, java.lang.String description)
222 throws com.liferay.portal.kernel.exception.PortalException {
223 return getService().updateTeam(teamId, name, description);
224 }
225
226
231 public static int getTeamsCount() {
232 return getService().getTeamsCount();
233 }
234
235 public static int getUserGroupTeamsCount(long userGroupId) {
236 return getService().getUserGroupTeamsCount(userGroupId);
237 }
238
239 public static int getUserTeamsCount(long userId) {
240 return getService().getUserTeamsCount(userId);
241 }
242
243 public static int searchCount(long groupId, java.lang.String name,
244 java.lang.String description,
245 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) {
246 return getService().searchCount(groupId, name, description, params);
247 }
248
249
254 public static java.lang.String getOSGiServiceIdentifier() {
255 return getService().getOSGiServiceIdentifier();
256 }
257
258
264 public static <T> java.util.List<T> dynamicQuery(
265 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
266 return getService().dynamicQuery(dynamicQuery);
267 }
268
269
281 public static <T> java.util.List<T> dynamicQuery(
282 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
283 int end) {
284 return getService().dynamicQuery(dynamicQuery, start, end);
285 }
286
287
300 public static <T> java.util.List<T> dynamicQuery(
301 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
302 int end,
303 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
304 return getService()
305 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
306 }
307
308 public static java.util.List<com.liferay.portal.kernel.model.Team> getGroupTeams(
309 long groupId) {
310 return getService().getGroupTeams(groupId);
311 }
312
313
324 public static java.util.List<com.liferay.portal.kernel.model.Team> getTeams(
325 int start, int end) {
326 return getService().getTeams(start, end);
327 }
328
329
336 public static java.util.List<com.liferay.portal.kernel.model.Team> getTeamsByUuidAndCompanyId(
337 java.lang.String uuid, long companyId) {
338 return getService().getTeamsByUuidAndCompanyId(uuid, companyId);
339 }
340
341
351 public static java.util.List<com.liferay.portal.kernel.model.Team> getTeamsByUuidAndCompanyId(
352 java.lang.String uuid, long companyId, int start, int end,
353 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) {
354 return getService()
355 .getTeamsByUuidAndCompanyId(uuid, companyId, start, end,
356 orderByComparator);
357 }
358
359 public static java.util.List<com.liferay.portal.kernel.model.Team> getUserGroupTeams(
360 long userGroupId) {
361 return getService().getUserGroupTeams(userGroupId);
362 }
363
364 public static java.util.List<com.liferay.portal.kernel.model.Team> getUserGroupTeams(
365 long userGroupId, int start, int end) {
366 return getService().getUserGroupTeams(userGroupId, start, end);
367 }
368
369 public static java.util.List<com.liferay.portal.kernel.model.Team> getUserGroupTeams(
370 long userGroupId, int start, int end,
371 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) {
372 return getService()
373 .getUserGroupTeams(userGroupId, start, end, orderByComparator);
374 }
375
376 public static java.util.List<com.liferay.portal.kernel.model.Team> getUserOrUserGroupTeams(
377 long groupId, long userId) {
378 return getService().getUserOrUserGroupTeams(groupId, userId);
379 }
380
381 public static java.util.List<com.liferay.portal.kernel.model.Team> getUserTeams(
382 long userId) {
383 return getService().getUserTeams(userId);
384 }
385
386 public static java.util.List<com.liferay.portal.kernel.model.Team> getUserTeams(
387 long userId, int start, int end) {
388 return getService().getUserTeams(userId, start, end);
389 }
390
391 public static java.util.List<com.liferay.portal.kernel.model.Team> getUserTeams(
392 long userId, int start, int end,
393 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) {
394 return getService().getUserTeams(userId, start, end, orderByComparator);
395 }
396
397 public static java.util.List<com.liferay.portal.kernel.model.Team> getUserTeams(
398 long userId, long groupId) {
399 return getService().getUserTeams(userId, groupId);
400 }
401
402 public static java.util.List<com.liferay.portal.kernel.model.Team> search(
403 long groupId, java.lang.String name, java.lang.String description,
404 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
405 int start, int end,
406 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> obc) {
407 return getService()
408 .search(groupId, name, description, params, start, end, obc);
409 }
410
411
417 public static long dynamicQueryCount(
418 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
419 return getService().dynamicQueryCount(dynamicQuery);
420 }
421
422
429 public static long dynamicQueryCount(
430 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
431 com.liferay.portal.kernel.dao.orm.Projection projection) {
432 return getService().dynamicQueryCount(dynamicQuery, projection);
433 }
434
435
441 public static long[] getUserGroupPrimaryKeys(long teamId) {
442 return getService().getUserGroupPrimaryKeys(teamId);
443 }
444
445
451 public static long[] getUserPrimaryKeys(long teamId) {
452 return getService().getUserPrimaryKeys(teamId);
453 }
454
455 public static void addUserGroupTeam(long userGroupId,
456 com.liferay.portal.kernel.model.Team team) {
457 getService().addUserGroupTeam(userGroupId, team);
458 }
459
460 public static void addUserGroupTeam(long userGroupId, long teamId) {
461 getService().addUserGroupTeam(userGroupId, teamId);
462 }
463
464 public static void addUserGroupTeams(long userGroupId,
465 java.util.List<com.liferay.portal.kernel.model.Team> teams) {
466 getService().addUserGroupTeams(userGroupId, teams);
467 }
468
469 public static void addUserGroupTeams(long userGroupId, long[] teamIds) {
470 getService().addUserGroupTeams(userGroupId, teamIds);
471 }
472
473 public static void addUserTeam(long userId,
474 com.liferay.portal.kernel.model.Team team) {
475 getService().addUserTeam(userId, team);
476 }
477
478 public static void addUserTeam(long userId, long teamId) {
479 getService().addUserTeam(userId, teamId);
480 }
481
482 public static void addUserTeams(long userId,
483 java.util.List<com.liferay.portal.kernel.model.Team> teams) {
484 getService().addUserTeams(userId, teams);
485 }
486
487 public static void addUserTeams(long userId, long[] teamIds) {
488 getService().addUserTeams(userId, teamIds);
489 }
490
491 public static void clearUserGroupTeams(long userGroupId) {
492 getService().clearUserGroupTeams(userGroupId);
493 }
494
495 public static void clearUserTeams(long userId) {
496 getService().clearUserTeams(userId);
497 }
498
499 public static void deleteTeams(long groupId)
500 throws com.liferay.portal.kernel.exception.PortalException {
501 getService().deleteTeams(groupId);
502 }
503
504 public static void deleteUserGroupTeam(long userGroupId,
505 com.liferay.portal.kernel.model.Team team) {
506 getService().deleteUserGroupTeam(userGroupId, team);
507 }
508
509 public static void deleteUserGroupTeam(long userGroupId, long teamId) {
510 getService().deleteUserGroupTeam(userGroupId, teamId);
511 }
512
513 public static void deleteUserGroupTeams(long userGroupId,
514 java.util.List<com.liferay.portal.kernel.model.Team> teams) {
515 getService().deleteUserGroupTeams(userGroupId, teams);
516 }
517
518 public static void deleteUserGroupTeams(long userGroupId, long[] teamIds) {
519 getService().deleteUserGroupTeams(userGroupId, teamIds);
520 }
521
522 public static void deleteUserTeam(long userId,
523 com.liferay.portal.kernel.model.Team team) {
524 getService().deleteUserTeam(userId, team);
525 }
526
527 public static void deleteUserTeam(long userId, long teamId) {
528 getService().deleteUserTeam(userId, teamId);
529 }
530
531 public static void deleteUserTeams(long userId,
532 java.util.List<com.liferay.portal.kernel.model.Team> teams) {
533 getService().deleteUserTeams(userId, teams);
534 }
535
536 public static void deleteUserTeams(long userId, long[] teamIds) {
537 getService().deleteUserTeams(userId, teamIds);
538 }
539
540 public static void setUserGroupTeams(long userGroupId, long[] teamIds) {
541 getService().setUserGroupTeams(userGroupId, teamIds);
542 }
543
544 public static void setUserTeams(long userId, long[] teamIds) {
545 getService().setUserTeams(userId, teamIds);
546 }
547
548 public static TeamLocalService getService() {
549 if (_service == null) {
550 _service = (TeamLocalService)PortalBeanLocatorUtil.locate(TeamLocalService.class.getName());
551
552 ReferenceRegistry.registerReference(TeamLocalServiceUtil.class,
553 "_service");
554 }
555
556 return _service;
557 }
558
559 private static TeamLocalService _service;
560 }