Liferay 7.0-ce-b4

com.liferay.portal.service
Class TeamServiceUtil

java.lang.Object
  extended by com.liferay.portal.service.TeamServiceUtil

@ProviderType
public class TeamServiceUtil
extends Object

Provides the remote service utility for Team. This utility wraps 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.

See Also:
TeamService, TeamServiceBaseImpl, com.liferay.portal.service.impl.TeamServiceImpl

Constructor Summary
TeamServiceUtil()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeamServiceUtil

public TeamServiceUtil()
Method Detail

addTeam

@Deprecated
public static Team addTeam(long groupId,
                                      String name,
                                      String description)
                    throws PortalException
Deprecated. As of 7.0.0, replaced by addTeam(long, String, String, ServiceContext)

Throws:
PortalException

addTeam

public static Team addTeam(long groupId,
                           String name,
                           String description,
                           ServiceContext serviceContext)
                    throws PortalException
Throws:
PortalException

deleteTeam

public static void deleteTeam(long teamId)
                       throws PortalException
Throws:
PortalException

getGroupTeams

public static List<Team> getGroupTeams(long groupId)
                                throws PortalException
Throws:
PortalException

getOSGiServiceIdentifier

public static String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Returns:
the OSGi service identifier

getTeam

public static Team getTeam(long groupId,
                           String name)
                    throws PortalException
Throws:
PortalException

getTeam

public static Team getTeam(long teamId)
                    throws PortalException
Throws:
PortalException

getUserTeams

public static List<Team> getUserTeams(long userId)
                               throws PortalException
Throws:
PortalException

getUserTeams

public static List<Team> getUserTeams(long userId,
                                      long groupId)
                               throws PortalException
Throws:
PortalException

hasUserTeam

public static boolean hasUserTeam(long userId,
                                  long teamId)
                           throws PortalException
Throws:
PortalException

search

public static List<Team> search(long groupId,
                                String name,
                                String description,
                                LinkedHashMap<String,Object> params,
                                int start,
                                int end,
                                OrderByComparator<Team> obc)

searchCount

public static int searchCount(long groupId,
                              String name,
                              String description,
                              LinkedHashMap<String,Object> params)

updateTeam

public static Team updateTeam(long teamId,
                              String name,
                              String description)
                       throws PortalException
Throws:
PortalException

getService

public static TeamService getService()

Liferay 7.0-ce-b4