001
014
015 package com.liferay.portal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.transaction.Isolation;
022 import com.liferay.portal.kernel.transaction.Propagation;
023 import com.liferay.portal.kernel.transaction.Transactional;
024
025
037 @ProviderType
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface TeamLocalService extends BaseLocalService,
041 PersistedModelLocalService {
042
047
048
055 public com.liferay.portal.model.Team addTeam(
056 com.liferay.portal.model.Team team)
057 throws com.liferay.portal.kernel.exception.SystemException;
058
059
065 public com.liferay.portal.model.Team createTeam(long teamId);
066
067
075 public com.liferay.portal.model.Team deleteTeam(long teamId)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException;
078
079
087 public com.liferay.portal.model.Team deleteTeam(
088 com.liferay.portal.model.Team team)
089 throws com.liferay.portal.kernel.exception.PortalException,
090 com.liferay.portal.kernel.exception.SystemException;
091
092 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
093
094
101 @SuppressWarnings("rawtypes")
102 public java.util.List dynamicQuery(
103 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106
119 @SuppressWarnings("rawtypes")
120 public java.util.List dynamicQuery(
121 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122 int end) throws com.liferay.portal.kernel.exception.SystemException;
123
124
138 @SuppressWarnings("rawtypes")
139 public java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145
152 public long dynamicQueryCount(
153 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156
164 public long dynamicQueryCount(
165 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
166 com.liferay.portal.kernel.dao.orm.Projection projection)
167 throws com.liferay.portal.kernel.exception.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portal.model.Team fetchTeam(long teamId)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public com.liferay.portal.model.Team getTeam(long teamId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException;
185
186 @Override
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException;
192
193
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206 public java.util.List<com.liferay.portal.model.Team> getTeams(int start,
207 int end) throws com.liferay.portal.kernel.exception.SystemException;
208
209
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public int getTeamsCount()
217 throws com.liferay.portal.kernel.exception.SystemException;
218
219
226 public com.liferay.portal.model.Team updateTeam(
227 com.liferay.portal.model.Team team)
228 throws com.liferay.portal.kernel.exception.SystemException;
229
230
233 public void addUserTeam(long userId, long teamId)
234 throws com.liferay.portal.kernel.exception.SystemException;
235
236
239 public void addUserTeam(long userId, com.liferay.portal.model.Team team)
240 throws com.liferay.portal.kernel.exception.SystemException;
241
242
245 public void addUserTeams(long userId, long[] teamIds)
246 throws com.liferay.portal.kernel.exception.SystemException;
247
248
251 public void addUserTeams(long userId,
252 java.util.List<com.liferay.portal.model.Team> Teams)
253 throws com.liferay.portal.kernel.exception.SystemException;
254
255
258 public void clearUserTeams(long userId)
259 throws com.liferay.portal.kernel.exception.SystemException;
260
261
264 public void deleteUserTeam(long userId, long teamId)
265 throws com.liferay.portal.kernel.exception.SystemException;
266
267
270 public void deleteUserTeam(long userId, com.liferay.portal.model.Team team)
271 throws com.liferay.portal.kernel.exception.SystemException;
272
273
276 public void deleteUserTeams(long userId, long[] teamIds)
277 throws com.liferay.portal.kernel.exception.SystemException;
278
279
282 public void deleteUserTeams(long userId,
283 java.util.List<com.liferay.portal.model.Team> Teams)
284 throws com.liferay.portal.kernel.exception.SystemException;
285
286
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
291 long userId) throws com.liferay.portal.kernel.exception.SystemException;
292
293
296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
298 long userId, int start, int end)
299 throws com.liferay.portal.kernel.exception.SystemException;
300
301
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
306 long userId, int start, int end,
307 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
308 throws com.liferay.portal.kernel.exception.SystemException;
309
310
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public int getUserTeamsCount(long userId)
315 throws com.liferay.portal.kernel.exception.SystemException;
316
317
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public boolean hasUserTeam(long userId, long teamId)
322 throws com.liferay.portal.kernel.exception.SystemException;
323
324
327 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328 public boolean hasUserTeams(long userId)
329 throws com.liferay.portal.kernel.exception.SystemException;
330
331
334 public void setUserTeams(long userId, long[] teamIds)
335 throws com.liferay.portal.kernel.exception.SystemException;
336
337
340 public void addUserGroupTeam(long userGroupId, long teamId)
341 throws com.liferay.portal.kernel.exception.SystemException;
342
343
346 public void addUserGroupTeam(long userGroupId,
347 com.liferay.portal.model.Team team)
348 throws com.liferay.portal.kernel.exception.SystemException;
349
350
353 public void addUserGroupTeams(long userGroupId, long[] teamIds)
354 throws com.liferay.portal.kernel.exception.SystemException;
355
356
359 public void addUserGroupTeams(long userGroupId,
360 java.util.List<com.liferay.portal.model.Team> Teams)
361 throws com.liferay.portal.kernel.exception.SystemException;
362
363
366 public void clearUserGroupTeams(long userGroupId)
367 throws com.liferay.portal.kernel.exception.SystemException;
368
369
372 public void deleteUserGroupTeam(long userGroupId, long teamId)
373 throws com.liferay.portal.kernel.exception.SystemException;
374
375
378 public void deleteUserGroupTeam(long userGroupId,
379 com.liferay.portal.model.Team team)
380 throws com.liferay.portal.kernel.exception.SystemException;
381
382
385 public void deleteUserGroupTeams(long userGroupId, long[] teamIds)
386 throws com.liferay.portal.kernel.exception.SystemException;
387
388
391 public void deleteUserGroupTeams(long userGroupId,
392 java.util.List<com.liferay.portal.model.Team> Teams)
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)
401 throws com.liferay.portal.kernel.exception.SystemException;
402
403
406 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
407 public java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
408 long userGroupId, int start, int end)
409 throws com.liferay.portal.kernel.exception.SystemException;
410
411
414 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415 public java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
416 long userGroupId, int start, int end,
417 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418 throws com.liferay.portal.kernel.exception.SystemException;
419
420
423 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
424 public int getUserGroupTeamsCount(long userGroupId)
425 throws com.liferay.portal.kernel.exception.SystemException;
426
427
430 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
431 public boolean hasUserGroupTeam(long userGroupId, long teamId)
432 throws com.liferay.portal.kernel.exception.SystemException;
433
434
437 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
438 public boolean hasUserGroupTeams(long userGroupId)
439 throws com.liferay.portal.kernel.exception.SystemException;
440
441
444 public void setUserGroupTeams(long userGroupId, long[] teamIds)
445 throws com.liferay.portal.kernel.exception.SystemException;
446
447
452 public java.lang.String getBeanIdentifier();
453
454
459 public void setBeanIdentifier(java.lang.String beanIdentifier);
460
461 public com.liferay.portal.model.Team addTeam(long userId, long groupId,
462 java.lang.String name, java.lang.String description)
463 throws com.liferay.portal.kernel.exception.PortalException,
464 com.liferay.portal.kernel.exception.SystemException;
465
466 public void deleteTeams(long groupId)
467 throws com.liferay.portal.kernel.exception.PortalException,
468 com.liferay.portal.kernel.exception.SystemException;
469
470 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
471 public java.util.List<com.liferay.portal.model.Team> getGroupTeams(
472 long groupId)
473 throws com.liferay.portal.kernel.exception.SystemException;
474
475 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
476 public com.liferay.portal.model.Team getTeam(long groupId,
477 java.lang.String name)
478 throws com.liferay.portal.kernel.exception.PortalException,
479 com.liferay.portal.kernel.exception.SystemException;
480
481 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
482 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
483 long userId, long groupId)
484 throws com.liferay.portal.kernel.exception.SystemException;
485
486 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
487 public java.util.List<com.liferay.portal.model.Team> search(long groupId,
488 java.lang.String name, java.lang.String description,
489 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
490 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
491 throws com.liferay.portal.kernel.exception.SystemException;
492
493 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
494 public int searchCount(long groupId, java.lang.String name,
495 java.lang.String description,
496 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
497 throws com.liferay.portal.kernel.exception.SystemException;
498
499 public com.liferay.portal.model.Team updateTeam(long teamId,
500 java.lang.String name, java.lang.String description)
501 throws com.liferay.portal.kernel.exception.PortalException,
502 com.liferay.portal.kernel.exception.SystemException;
503 }