@ProviderType public class TeamServiceUtil extends Object
com.liferay.portal.service.impl.TeamServiceImpl and is the
primary access point for service operations in application layer code running
on a remote server. Methods of this service are expected to have security
checks based on the propagated JAAS credentials because this service can be
accessed remotely.TeamService,
com.liferay.portal.service.base.TeamServiceBaseImpl,
com.liferay.portal.service.impl.TeamServiceImpl| Constructor and Description |
|---|
TeamServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Team |
addTeam(long groupId,
String name,
String description)
Deprecated.
As of 7.0.0, replaced by
addTeam(long, String,
String, ServiceContext) |
static Team |
addTeam(long groupId,
String name,
String description,
ServiceContext serviceContext) |
static void |
deleteTeam(long teamId) |
static List<Team> |
getGroupTeams(long groupId) |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static TeamService |
getService() |
static Team |
getTeam(long teamId) |
static Team |
getTeam(long groupId,
String name) |
static List<Team> |
getUserTeams(long userId) |
static List<Team> |
getUserTeams(long userId,
long groupId) |
static boolean |
hasUserTeam(long userId,
long teamId) |
static List<Team> |
search(long groupId,
String name,
String description,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator<Team> obc) |
static int |
searchCount(long groupId,
String name,
String description,
LinkedHashMap<String,Object> params) |
static Team |
updateTeam(long teamId,
String name,
String description) |
public static boolean hasUserTeam(long userId,
long teamId)
throws PortalException
PortalException@Deprecated public static Team addTeam(long groupId, String name, String description) throws PortalException
addTeam(long, String,
String, ServiceContext)PortalExceptionpublic static Team addTeam(long groupId, String name, String description, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static Team getTeam(long groupId, String name) throws PortalException
PortalExceptionpublic static Team getTeam(long teamId) throws PortalException
PortalExceptionpublic static Team updateTeam(long teamId, String name, String description) throws PortalException
PortalExceptionpublic static int searchCount(long groupId,
String name,
String description,
LinkedHashMap<String,Object> params)
public static String getOSGiServiceIdentifier()
public static List<Team> getGroupTeams(long groupId) throws PortalException
PortalExceptionpublic static List<Team> getUserTeams(long userId) throws PortalException
PortalExceptionpublic static List<Team> getUserTeams(long userId, long groupId) throws PortalException
PortalExceptionpublic static List<Team> search(long groupId, String name, String description, LinkedHashMap<String,Object> params, int start, int end, OrderByComparator<Team> obc)
public static void deleteTeam(long teamId)
throws PortalException
PortalExceptionpublic static TeamService getService()