001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
034 public class TeamServiceUtil {
035
040
041
046 public static java.lang.String getBeanIdentifier() {
047 return getService().getBeanIdentifier();
048 }
049
050
055 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056 getService().setBeanIdentifier(beanIdentifier);
057 }
058
059 public static com.liferay.portal.model.Team addTeam(long groupId,
060 java.lang.String name, java.lang.String description)
061 throws com.liferay.portal.kernel.exception.PortalException,
062 com.liferay.portal.kernel.exception.SystemException {
063 return getService().addTeam(groupId, name, description);
064 }
065
066 public static void deleteTeam(long teamId)
067 throws com.liferay.portal.kernel.exception.PortalException,
068 com.liferay.portal.kernel.exception.SystemException {
069 getService().deleteTeam(teamId);
070 }
071
072 public static java.util.List<com.liferay.portal.model.Team> getGroupTeams(
073 long groupId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().getGroupTeams(groupId);
077 }
078
079 public static com.liferay.portal.model.Team getTeam(long teamId)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException {
082 return getService().getTeam(teamId);
083 }
084
085 public static com.liferay.portal.model.Team getTeam(long groupId,
086 java.lang.String name)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException {
089 return getService().getTeam(groupId, name);
090 }
091
092 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
093 long userId)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException {
096 return getService().getUserTeams(userId);
097 }
098
099 public static java.util.List<com.liferay.portal.model.Team> getUserTeams(
100 long userId, long groupId)
101 throws com.liferay.portal.kernel.exception.PortalException,
102 com.liferay.portal.kernel.exception.SystemException {
103 return getService().getUserTeams(userId, groupId);
104 }
105
106 public static boolean hasUserTeam(long userId, long teamId)
107 throws com.liferay.portal.kernel.exception.PortalException,
108 com.liferay.portal.kernel.exception.SystemException {
109 return getService().hasUserTeam(userId, teamId);
110 }
111
112 public static com.liferay.portal.model.Team updateTeam(long teamId,
113 java.lang.String name, java.lang.String description)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException {
116 return getService().updateTeam(teamId, name, description);
117 }
118
119 public static TeamService getService() {
120 if (_service == null) {
121 _service = (TeamService)PortalBeanLocatorUtil.locate(TeamService.class.getName());
122
123 ReferenceRegistry.registerReference(TeamServiceUtil.class,
124 "_service");
125 }
126
127 return _service;
128 }
129
130
133 public void setService(TeamService service) {
134 }
135
136 private static TeamService _service;
137 }