001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022
023
035 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
036 PortalException.class, SystemException.class})
037 public interface TeamLocalService extends BaseLocalService,
038 PersistedModelLocalService {
039
044
045
052 public com.liferay.portal.model.Team addTeam(
053 com.liferay.portal.model.Team team)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056
062 public com.liferay.portal.model.Team createTeam(long teamId);
063
064
072 public com.liferay.portal.model.Team deleteTeam(long teamId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException;
075
076
084 public com.liferay.portal.model.Team deleteTeam(
085 com.liferay.portal.model.Team team)
086 throws com.liferay.portal.kernel.exception.PortalException,
087 com.liferay.portal.kernel.exception.SystemException;
088
089 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
090
091
098 @SuppressWarnings("rawtypes")
099 public java.util.List dynamicQuery(
100 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103
116 @SuppressWarnings("rawtypes")
117 public java.util.List dynamicQuery(
118 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
119 int end) throws com.liferay.portal.kernel.exception.SystemException;
120
121
135 @SuppressWarnings("rawtypes")
136 public java.util.List dynamicQuery(
137 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
138 int end,
139 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140 throws com.liferay.portal.kernel.exception.SystemException;
141
142
149 public long dynamicQueryCount(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
151 throws com.liferay.portal.kernel.exception.SystemException;
152
153
161 public long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
163 com.liferay.portal.kernel.dao.orm.Projection projection)
164 throws com.liferay.portal.kernel.exception.SystemException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public com.liferay.portal.model.Team fetchTeam(long teamId)
168 throws com.liferay.portal.kernel.exception.SystemException;
169
170
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public com.liferay.portal.model.Team getTeam(long teamId)
180 throws com.liferay.portal.kernel.exception.PortalException,
181 com.liferay.portal.kernel.exception.SystemException;
182
183 @Override
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public com.liferay.portal.model.PersistedModel getPersistedModel(
186 java.io.Serializable primaryKeyObj)
187 throws com.liferay.portal.kernel.exception.PortalException,
188 com.liferay.portal.kernel.exception.SystemException;
189
190
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public java.util.List<com.liferay.portal.model.Team> getTeams(int start,
204 int end) throws com.liferay.portal.kernel.exception.SystemException;
205
206
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public int getTeamsCount()
214 throws com.liferay.portal.kernel.exception.SystemException;
215
216
223 public com.liferay.portal.model.Team updateTeam(
224 com.liferay.portal.model.Team team)
225 throws com.liferay.portal.kernel.exception.SystemException;
226
227
230 public void addUserTeam(long userId, long teamId)
231 throws com.liferay.portal.kernel.exception.SystemException;
232
233
236 public void addUserTeam(long userId, com.liferay.portal.model.Team team)
237 throws com.liferay.portal.kernel.exception.SystemException;
238
239
242 public void addUserTeams(long userId, long[] teamIds)
243 throws com.liferay.portal.kernel.exception.SystemException;
244
245
248 public void addUserTeams(long userId,
249 java.util.List<com.liferay.portal.model.Team> Teams)
250 throws com.liferay.portal.kernel.exception.SystemException;
251
252
255 public void clearUserTeams(long userId)
256 throws com.liferay.portal.kernel.exception.SystemException;
257
258
261 public void deleteUserTeam(long userId, long teamId)
262 throws com.liferay.portal.kernel.exception.SystemException;
263
264
267 public void deleteUserTeam(long userId, com.liferay.portal.model.Team team)
268 throws com.liferay.portal.kernel.exception.SystemException;
269
270
273 public void deleteUserTeams(long userId, long[] teamIds)
274 throws com.liferay.portal.kernel.exception.SystemException;
275
276
279 public void deleteUserTeams(long userId,
280 java.util.List<com.liferay.portal.model.Team> Teams)
281 throws com.liferay.portal.kernel.exception.SystemException;
282
283
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
288 long userId) throws com.liferay.portal.kernel.exception.SystemException;
289
290
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
295 long userId, int start, int end)
296 throws com.liferay.portal.kernel.exception.SystemException;
297
298
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
303 long userId, int start, int end,
304 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305 throws com.liferay.portal.kernel.exception.SystemException;
306
307
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public int getUserTeamsCount(long userId)
312 throws com.liferay.portal.kernel.exception.SystemException;
313
314
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public boolean hasUserTeam(long userId, long teamId)
319 throws com.liferay.portal.kernel.exception.SystemException;
320
321
324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325 public boolean hasUserTeams(long userId)
326 throws com.liferay.portal.kernel.exception.SystemException;
327
328
331 public void setUserTeams(long userId, long[] teamIds)
332 throws com.liferay.portal.kernel.exception.SystemException;
333
334
337 public void addUserGroupTeam(long userGroupId, long teamId)
338 throws com.liferay.portal.kernel.exception.SystemException;
339
340
343 public void addUserGroupTeam(long userGroupId,
344 com.liferay.portal.model.Team team)
345 throws com.liferay.portal.kernel.exception.SystemException;
346
347
350 public void addUserGroupTeams(long userGroupId, long[] teamIds)
351 throws com.liferay.portal.kernel.exception.SystemException;
352
353
356 public void addUserGroupTeams(long userGroupId,
357 java.util.List<com.liferay.portal.model.Team> Teams)
358 throws com.liferay.portal.kernel.exception.SystemException;
359
360
363 public void clearUserGroupTeams(long userGroupId)
364 throws com.liferay.portal.kernel.exception.SystemException;
365
366
369 public void deleteUserGroupTeam(long userGroupId, long teamId)
370 throws com.liferay.portal.kernel.exception.SystemException;
371
372
375 public void deleteUserGroupTeam(long userGroupId,
376 com.liferay.portal.model.Team team)
377 throws com.liferay.portal.kernel.exception.SystemException;
378
379
382 public void deleteUserGroupTeams(long userGroupId, long[] teamIds)
383 throws com.liferay.portal.kernel.exception.SystemException;
384
385
388 public void deleteUserGroupTeams(long userGroupId,
389 java.util.List<com.liferay.portal.model.Team> Teams)
390 throws com.liferay.portal.kernel.exception.SystemException;
391
392
395 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396 public java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
397 long userGroupId)
398 throws com.liferay.portal.kernel.exception.SystemException;
399
400
403 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
404 public java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
405 long userGroupId, int start, int end)
406 throws com.liferay.portal.kernel.exception.SystemException;
407
408
411 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
412 public java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
413 long userGroupId, int start, int end,
414 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
415 throws com.liferay.portal.kernel.exception.SystemException;
416
417
420 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
421 public int getUserGroupTeamsCount(long userGroupId)
422 throws com.liferay.portal.kernel.exception.SystemException;
423
424
427 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
428 public boolean hasUserGroupTeam(long userGroupId, long teamId)
429 throws com.liferay.portal.kernel.exception.SystemException;
430
431
434 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
435 public boolean hasUserGroupTeams(long userGroupId)
436 throws com.liferay.portal.kernel.exception.SystemException;
437
438
441 public void setUserGroupTeams(long userGroupId, long[] teamIds)
442 throws com.liferay.portal.kernel.exception.SystemException;
443
444
449 public java.lang.String getBeanIdentifier();
450
451
456 public void setBeanIdentifier(java.lang.String beanIdentifier);
457
458 public com.liferay.portal.model.Team addTeam(long userId, long groupId,
459 java.lang.String name, java.lang.String description)
460 throws com.liferay.portal.kernel.exception.PortalException,
461 com.liferay.portal.kernel.exception.SystemException;
462
463 public void deleteTeams(long groupId)
464 throws com.liferay.portal.kernel.exception.PortalException,
465 com.liferay.portal.kernel.exception.SystemException;
466
467 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
468 public java.util.List<com.liferay.portal.model.Team> getGroupTeams(
469 long groupId)
470 throws com.liferay.portal.kernel.exception.SystemException;
471
472 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
473 public com.liferay.portal.model.Team getTeam(long groupId,
474 java.lang.String name)
475 throws com.liferay.portal.kernel.exception.PortalException,
476 com.liferay.portal.kernel.exception.SystemException;
477
478 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
480 long userId, long groupId)
481 throws com.liferay.portal.kernel.exception.SystemException;
482
483 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
484 public java.util.List<com.liferay.portal.model.Team> search(long groupId,
485 java.lang.String name, java.lang.String description,
486 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
487 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
488 throws com.liferay.portal.kernel.exception.SystemException;
489
490 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
491 public int searchCount(long groupId, java.lang.String name,
492 java.lang.String description,
493 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
494 throws com.liferay.portal.kernel.exception.SystemException;
495
496 public com.liferay.portal.model.Team updateTeam(long teamId,
497 java.lang.String name, java.lang.String description)
498 throws com.liferay.portal.kernel.exception.PortalException,
499 com.liferay.portal.kernel.exception.SystemException;
500 }