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
036 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
037 PortalException.class, SystemException.class})
038 public interface TeamLocalService extends BaseLocalService,
039 PersistedModelLocalService {
040
045
046
053 public com.liferay.portal.model.Team addTeam(
054 com.liferay.portal.model.Team team)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portal.model.Team createTeam(long teamId);
064
065
073 public com.liferay.portal.model.Team deleteTeam(long teamId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077
085 public 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
090 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
091
092
099 @SuppressWarnings("rawtypes")
100 public java.util.List dynamicQuery(
101 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104
117 @SuppressWarnings("rawtypes")
118 public java.util.List dynamicQuery(
119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120 int end) throws com.liferay.portal.kernel.exception.SystemException;
121
122
136 @SuppressWarnings("rawtypes")
137 public java.util.List dynamicQuery(
138 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139 int end,
140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141 throws com.liferay.portal.kernel.exception.SystemException;
142
143
150 public long dynamicQueryCount(
151 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152 throws com.liferay.portal.kernel.exception.SystemException;
153
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portal.model.Team fetchTeam(long teamId)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public com.liferay.portal.model.Team getTeam(long teamId)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public com.liferay.portal.model.PersistedModel getPersistedModel(
173 java.io.Serializable primaryKeyObj)
174 throws com.liferay.portal.kernel.exception.PortalException,
175 com.liferay.portal.kernel.exception.SystemException;
176
177
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public java.util.List<com.liferay.portal.model.Team> getTeams(int start,
191 int end) throws com.liferay.portal.kernel.exception.SystemException;
192
193
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public int getTeamsCount()
201 throws com.liferay.portal.kernel.exception.SystemException;
202
203
210 public com.liferay.portal.model.Team updateTeam(
211 com.liferay.portal.model.Team team)
212 throws com.liferay.portal.kernel.exception.SystemException;
213
214
217 public void addUserTeam(long userId, long teamId)
218 throws com.liferay.portal.kernel.exception.SystemException;
219
220
223 public void addUserTeam(long userId, com.liferay.portal.model.Team team)
224 throws com.liferay.portal.kernel.exception.SystemException;
225
226
229 public void addUserTeams(long userId, long[] teamIds)
230 throws com.liferay.portal.kernel.exception.SystemException;
231
232
235 public void addUserTeams(long userId,
236 java.util.List<com.liferay.portal.model.Team> Teams)
237 throws com.liferay.portal.kernel.exception.SystemException;
238
239
242 public void clearUserTeams(long userId)
243 throws com.liferay.portal.kernel.exception.SystemException;
244
245
248 public void deleteUserTeam(long userId, long teamId)
249 throws com.liferay.portal.kernel.exception.SystemException;
250
251
254 public void deleteUserTeam(long userId, com.liferay.portal.model.Team team)
255 throws com.liferay.portal.kernel.exception.SystemException;
256
257
260 public void deleteUserTeams(long userId, long[] teamIds)
261 throws com.liferay.portal.kernel.exception.SystemException;
262
263
266 public void deleteUserTeams(long userId,
267 java.util.List<com.liferay.portal.model.Team> Teams)
268 throws com.liferay.portal.kernel.exception.SystemException;
269
270
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
275 long userId) throws com.liferay.portal.kernel.exception.SystemException;
276
277
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
282 long userId, int start, int end)
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
290 long userId, int start, int end,
291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292 throws com.liferay.portal.kernel.exception.SystemException;
293
294
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public int getUserTeamsCount(long userId)
299 throws com.liferay.portal.kernel.exception.SystemException;
300
301
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public boolean hasUserTeam(long userId, long teamId)
306 throws com.liferay.portal.kernel.exception.SystemException;
307
308
311 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312 public boolean hasUserTeams(long userId)
313 throws com.liferay.portal.kernel.exception.SystemException;
314
315
318 public void setUserTeams(long userId, long[] teamIds)
319 throws com.liferay.portal.kernel.exception.SystemException;
320
321
324 public void addUserGroupTeam(long userGroupId, long teamId)
325 throws com.liferay.portal.kernel.exception.SystemException;
326
327
330 public void addUserGroupTeam(long userGroupId,
331 com.liferay.portal.model.Team team)
332 throws com.liferay.portal.kernel.exception.SystemException;
333
334
337 public void addUserGroupTeams(long userGroupId, long[] teamIds)
338 throws com.liferay.portal.kernel.exception.SystemException;
339
340
343 public void addUserGroupTeams(long userGroupId,
344 java.util.List<com.liferay.portal.model.Team> Teams)
345 throws com.liferay.portal.kernel.exception.SystemException;
346
347
350 public void clearUserGroupTeams(long userGroupId)
351 throws com.liferay.portal.kernel.exception.SystemException;
352
353
356 public void deleteUserGroupTeam(long userGroupId, long teamId)
357 throws com.liferay.portal.kernel.exception.SystemException;
358
359
362 public void deleteUserGroupTeam(long userGroupId,
363 com.liferay.portal.model.Team team)
364 throws com.liferay.portal.kernel.exception.SystemException;
365
366
369 public void deleteUserGroupTeams(long userGroupId, long[] teamIds)
370 throws com.liferay.portal.kernel.exception.SystemException;
371
372
375 public void deleteUserGroupTeams(long userGroupId,
376 java.util.List<com.liferay.portal.model.Team> Teams)
377 throws com.liferay.portal.kernel.exception.SystemException;
378
379
382 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
383 public java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
384 long userGroupId)
385 throws com.liferay.portal.kernel.exception.SystemException;
386
387
390 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
391 public java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
392 long userGroupId, int start, int end)
393 throws com.liferay.portal.kernel.exception.SystemException;
394
395
398 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
399 public java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
400 long userGroupId, int start, int end,
401 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
402 throws com.liferay.portal.kernel.exception.SystemException;
403
404
407 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
408 public int getUserGroupTeamsCount(long userGroupId)
409 throws com.liferay.portal.kernel.exception.SystemException;
410
411
414 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415 public boolean hasUserGroupTeam(long userGroupId, long teamId)
416 throws com.liferay.portal.kernel.exception.SystemException;
417
418
421 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
422 public boolean hasUserGroupTeams(long userGroupId)
423 throws com.liferay.portal.kernel.exception.SystemException;
424
425
428 public void setUserGroupTeams(long userGroupId, long[] teamIds)
429 throws com.liferay.portal.kernel.exception.SystemException;
430
431
436 public java.lang.String getBeanIdentifier();
437
438
443 public void setBeanIdentifier(java.lang.String beanIdentifier);
444
445 public com.liferay.portal.model.Team addTeam(long userId, long groupId,
446 java.lang.String name, java.lang.String description)
447 throws com.liferay.portal.kernel.exception.PortalException,
448 com.liferay.portal.kernel.exception.SystemException;
449
450 public void deleteTeams(long groupId)
451 throws com.liferay.portal.kernel.exception.PortalException,
452 com.liferay.portal.kernel.exception.SystemException;
453
454 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
455 public java.util.List<com.liferay.portal.model.Team> getGroupTeams(
456 long groupId)
457 throws com.liferay.portal.kernel.exception.SystemException;
458
459 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
460 public com.liferay.portal.model.Team getTeam(long groupId,
461 java.lang.String name)
462 throws com.liferay.portal.kernel.exception.PortalException,
463 com.liferay.portal.kernel.exception.SystemException;
464
465 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
466 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
467 long userId, long groupId)
468 throws com.liferay.portal.kernel.exception.SystemException;
469
470 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
471 public java.util.List<com.liferay.portal.model.Team> search(long groupId,
472 java.lang.String name, java.lang.String description,
473 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
474 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
475 throws com.liferay.portal.kernel.exception.SystemException;
476
477 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
478 public int searchCount(long groupId, java.lang.String name,
479 java.lang.String description,
480 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
481 throws com.liferay.portal.kernel.exception.SystemException;
482
483 public com.liferay.portal.model.Team updateTeam(long teamId,
484 java.lang.String name, java.lang.String description)
485 throws com.liferay.portal.kernel.exception.PortalException,
486 com.liferay.portal.kernel.exception.SystemException;
487 }