Liferay 6.2.0

com.liferay.portal.service
Interface TeamService

All Superinterfaces:
BaseService
All Known Implementing Classes:
TeamServiceBaseImpl, TeamServiceImpl, TeamServiceWrapper

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

Provides the remote service interface for Team. 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:
TeamServiceUtil, TeamServiceBaseImpl, TeamServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
abstract  Team addTeam(long groupId, String name, String description)
           
abstract  void deleteTeam(long teamId)
           
abstract  String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
abstract  List<Team> getGroupTeams(long groupId)
           
abstract  Team getTeam(long teamId)
           
abstract  Team getTeam(long groupId, String name)
           
abstract  List<Team> getUserTeams(long userId)
           
abstract  List<Team> getUserTeams(long userId, long groupId)
           
abstract  boolean hasUserTeam(long userId, long teamId)
           
abstract  void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
abstract  Team updateTeam(long teamId, String name, String description)
           
 

Method Detail

getBeanIdentifier

String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addTeam

Team addTeam(long groupId,
             String name,
             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)
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,
                                                      String name)
             throws PortalException,
                    SystemException
Throws:
PortalException
SystemException

getUserTeams

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

getUserTeams

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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,
                String name,
                String description)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

Liferay 6.2.0