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.search.IndexableType;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025
026
038 @ProviderType
039 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
040 PortalException.class, SystemException.class})
041 public interface TeamLocalService extends BaseLocalService,
042 PersistedModelLocalService {
043
048
049
056 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
057 public com.liferay.portal.model.Team addTeam(
058 com.liferay.portal.model.Team team)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061
067 public com.liferay.portal.model.Team createTeam(long teamId);
068
069
077 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
078 public com.liferay.portal.model.Team deleteTeam(long teamId)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException;
081
082
090 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
091 public com.liferay.portal.model.Team deleteTeam(
092 com.liferay.portal.model.Team team)
093 throws com.liferay.portal.kernel.exception.PortalException,
094 com.liferay.portal.kernel.exception.SystemException;
095
096 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
097
098
105 @SuppressWarnings("rawtypes")
106 public java.util.List dynamicQuery(
107 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
108 throws com.liferay.portal.kernel.exception.SystemException;
109
110
123 @SuppressWarnings("rawtypes")
124 public 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
128
142 @SuppressWarnings("rawtypes")
143 public java.util.List dynamicQuery(
144 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
145 int end,
146 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149
156 public long dynamicQueryCount(
157 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158 throws com.liferay.portal.kernel.exception.SystemException;
159
160
168 public long dynamicQueryCount(
169 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
170 com.liferay.portal.kernel.dao.orm.Projection projection)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public com.liferay.portal.model.Team fetchTeam(long teamId)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public com.liferay.portal.model.Team getTeam(long teamId)
187 throws com.liferay.portal.kernel.exception.PortalException,
188 com.liferay.portal.kernel.exception.SystemException;
189
190 @Override
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public com.liferay.portal.model.PersistedModel getPersistedModel(
193 java.io.Serializable primaryKeyObj)
194 throws com.liferay.portal.kernel.exception.PortalException,
195 com.liferay.portal.kernel.exception.SystemException;
196
197
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public java.util.List<com.liferay.portal.model.Team> getTeams(int start,
211 int end) throws com.liferay.portal.kernel.exception.SystemException;
212
213
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public int getTeamsCount()
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223
230 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
231 public com.liferay.portal.model.Team updateTeam(
232 com.liferay.portal.model.Team team)
233 throws com.liferay.portal.kernel.exception.SystemException;
234
235
238 public void addUserTeam(long userId, long teamId)
239 throws com.liferay.portal.kernel.exception.SystemException;
240
241
244 public void addUserTeam(long userId, com.liferay.portal.model.Team team)
245 throws com.liferay.portal.kernel.exception.SystemException;
246
247
250 public void addUserTeams(long userId, long[] teamIds)
251 throws com.liferay.portal.kernel.exception.SystemException;
252
253
256 public void addUserTeams(long userId,
257 java.util.List<com.liferay.portal.model.Team> Teams)
258 throws com.liferay.portal.kernel.exception.SystemException;
259
260
263 public void clearUserTeams(long userId)
264 throws com.liferay.portal.kernel.exception.SystemException;
265
266
269 public void deleteUserTeam(long userId, long teamId)
270 throws com.liferay.portal.kernel.exception.SystemException;
271
272
275 public void deleteUserTeam(long userId, com.liferay.portal.model.Team team)
276 throws com.liferay.portal.kernel.exception.SystemException;
277
278
281 public void deleteUserTeams(long userId, long[] teamIds)
282 throws com.liferay.portal.kernel.exception.SystemException;
283
284
287 public void deleteUserTeams(long userId,
288 java.util.List<com.liferay.portal.model.Team> Teams)
289 throws com.liferay.portal.kernel.exception.SystemException;
290
291
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
296 long userId) 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 throws com.liferay.portal.kernel.exception.SystemException;
305
306
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
311 long userId, int start, int end,
312 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
313 throws com.liferay.portal.kernel.exception.SystemException;
314
315
318 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319 public int getUserTeamsCount(long userId)
320 throws com.liferay.portal.kernel.exception.SystemException;
321
322
325 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326 public boolean hasUserTeam(long userId, long teamId)
327 throws com.liferay.portal.kernel.exception.SystemException;
328
329
332 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333 public boolean hasUserTeams(long userId)
334 throws com.liferay.portal.kernel.exception.SystemException;
335
336
339 public void setUserTeams(long userId, long[] teamIds)
340 throws com.liferay.portal.kernel.exception.SystemException;
341
342
345 public void addUserGroupTeam(long userGroupId, long teamId)
346 throws com.liferay.portal.kernel.exception.SystemException;
347
348
351 public void addUserGroupTeam(long userGroupId,
352 com.liferay.portal.model.Team team)
353 throws com.liferay.portal.kernel.exception.SystemException;
354
355
358 public void addUserGroupTeams(long userGroupId, long[] teamIds)
359 throws com.liferay.portal.kernel.exception.SystemException;
360
361
364 public void addUserGroupTeams(long userGroupId,
365 java.util.List<com.liferay.portal.model.Team> Teams)
366 throws com.liferay.portal.kernel.exception.SystemException;
367
368
371 public void clearUserGroupTeams(long userGroupId)
372 throws com.liferay.portal.kernel.exception.SystemException;
373
374
377 public void deleteUserGroupTeam(long userGroupId, long teamId)
378 throws com.liferay.portal.kernel.exception.SystemException;
379
380
383 public void deleteUserGroupTeam(long userGroupId,
384 com.liferay.portal.model.Team team)
385 throws com.liferay.portal.kernel.exception.SystemException;
386
387
390 public void deleteUserGroupTeams(long userGroupId, long[] teamIds)
391 throws com.liferay.portal.kernel.exception.SystemException;
392
393
396 public void deleteUserGroupTeams(long userGroupId,
397 java.util.List<com.liferay.portal.model.Team> Teams)
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)
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 throws com.liferay.portal.kernel.exception.SystemException;
415
416
419 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
420 public java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
421 long userGroupId, int start, int end,
422 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
423 throws com.liferay.portal.kernel.exception.SystemException;
424
425
428 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
429 public int getUserGroupTeamsCount(long userGroupId)
430 throws com.liferay.portal.kernel.exception.SystemException;
431
432
435 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
436 public boolean hasUserGroupTeam(long userGroupId, long teamId)
437 throws com.liferay.portal.kernel.exception.SystemException;
438
439
442 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
443 public boolean hasUserGroupTeams(long userGroupId)
444 throws com.liferay.portal.kernel.exception.SystemException;
445
446
449 public void setUserGroupTeams(long userGroupId, long[] teamIds)
450 throws com.liferay.portal.kernel.exception.SystemException;
451
452
457 public java.lang.String getBeanIdentifier();
458
459
464 public void setBeanIdentifier(java.lang.String beanIdentifier);
465
466 public com.liferay.portal.model.Team addTeam(long userId, long groupId,
467 java.lang.String name, java.lang.String description)
468 throws com.liferay.portal.kernel.exception.PortalException,
469 com.liferay.portal.kernel.exception.SystemException;
470
471 public void deleteTeams(long groupId)
472 throws com.liferay.portal.kernel.exception.PortalException,
473 com.liferay.portal.kernel.exception.SystemException;
474
475 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
476 public java.util.List<com.liferay.portal.model.Team> getGroupTeams(
477 long groupId)
478 throws com.liferay.portal.kernel.exception.SystemException;
479
480 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
481 public com.liferay.portal.model.Team getTeam(long groupId,
482 java.lang.String name)
483 throws com.liferay.portal.kernel.exception.PortalException,
484 com.liferay.portal.kernel.exception.SystemException;
485
486 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
487 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
488 long userId, long groupId)
489 throws com.liferay.portal.kernel.exception.SystemException;
490
491 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
492 public java.util.List<com.liferay.portal.model.Team> search(long groupId,
493 java.lang.String name, java.lang.String description,
494 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
495 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
496 throws com.liferay.portal.kernel.exception.SystemException;
497
498 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
499 public int searchCount(long groupId, java.lang.String name,
500 java.lang.String description,
501 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
502 throws com.liferay.portal.kernel.exception.SystemException;
503
504 public com.liferay.portal.model.Team updateTeam(long teamId,
505 java.lang.String name, java.lang.String description)
506 throws com.liferay.portal.kernel.exception.PortalException,
507 com.liferay.portal.kernel.exception.SystemException;
508 }