com.liferay.portal.service
Interface TeamService

All Known Implementing Classes:
TeamServiceWrapper

@JSONWebService
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface TeamService

The interface for the team remote service.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

Author:
Brian Wing Shun Chan
See Also:
TeamServiceUtil, TeamServiceBaseImpl, com.liferay.portal.service.impl.TeamServiceImpl
Generated:

Method Summary
 Team addTeam(long groupId, java.lang.String name, java.lang.String description)
           
 void deleteTeam(long teamId)
           
 java.util.List<Team> getGroupTeams(long groupId)
           
 Team getTeam(long teamId)
           
 Team getTeam(long groupId, java.lang.String name)
           
 java.util.List<Team> getUserTeams(long userId)
           
 java.util.List<Team> getUserTeams(long userId, long groupId)
           
 boolean hasUserTeam(long userId, long teamId)
           
 Team updateTeam(long teamId, java.lang.String name, java.lang.String description)
           
 

Method Detail

addTeam

Team addTeam(long groupId,
             java.lang.String name,
             java.lang.String description)
             throws PortalException,
                    SystemException
Throws:
PortalException
SystemException

deleteTeam

void deleteTeam(long teamId)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

getGroupTeams

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Team> getGroupTeams(long groupId)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

getTeam

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Team getTeam(long teamId)
             throws PortalException,
                    SystemException
Throws:
PortalException
SystemException

getTeam

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Team getTeam(long groupId,
                                                      java.lang.String name)
             throws PortalException,
                    SystemException
Throws:
PortalException
SystemException

getUserTeams

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Team> getUserTeams(long userId)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getUserTeams

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Team> getUserTeams(long userId,
                                                                           long groupId)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

hasUserTeam

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasUserTeam(long userId,
                                                             long teamId)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

updateTeam

Team updateTeam(long teamId,
                java.lang.String name,
                java.lang.String description)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException