1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class TeamServiceUtil {
40 public static com.liferay.portal.model.Team addTeam(long groupId,
41 java.lang.String name, java.lang.String description)
42 throws com.liferay.portal.kernel.exception.PortalException,
43 com.liferay.portal.kernel.exception.SystemException {
44 return getService().addTeam(groupId, name, description);
45 }
46
47 public static void deleteTeam(long teamId)
48 throws com.liferay.portal.kernel.exception.PortalException,
49 com.liferay.portal.kernel.exception.SystemException {
50 getService().deleteTeam(teamId);
51 }
52
53 public static com.liferay.portal.model.Team updateTeam(long teamId,
54 java.lang.String name, java.lang.String description)
55 throws com.liferay.portal.kernel.exception.PortalException,
56 com.liferay.portal.kernel.exception.SystemException {
57 return getService().updateTeam(teamId, name, description);
58 }
59
60 public static TeamService getService() {
61 if (_service == null) {
62 _service = (TeamService)PortalBeanLocatorUtil.locate(TeamService.class.getName());
63 }
64
65 return _service;
66 }
67
68 public void setService(TeamService service) {
69 _service = service;
70 }
71
72 private static TeamService _service;
73 }