Interface TeamService
- All Superinterfaces:
BaseService
- All Known Implementing Classes:
TeamServiceWrapper
@AccessControlled
@CTAware
@JSONWebService
@ProviderType
@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.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionaddTeam
(long groupId, String name, String description, ServiceContext serviceContext) void
deleteTeam
(long teamId) getGroupTeams
(long groupId) Returns the OSGi service identifier.getTeam
(long teamId) getUserTeams
(long userId) getUserTeams
(long userId, long groupId) boolean
hasUserTeam
(long userId, long teamId) search
(long groupId, String name, String description, LinkedHashMap<String, Object> params, int start, int end, OrderByComparator<Team> orderByComparator) int
searchCount
(long groupId, String name, String description, LinkedHashMap<String, Object> params) updateTeam
(long teamId, String name, String description)
-
Method Details
-
addTeam
Team addTeam(long groupId, String name, String description, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
deleteTeam
- Throws:
PortalException
-
getGroupTeams
@Transactional(propagation=SUPPORTS, readOnly=true) List<Team> getGroupTeams(long groupId) throws PortalException - Throws:
PortalException
-
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getTeam
@Transactional(propagation=SUPPORTS, readOnly=true) Team getTeam(long teamId) throws PortalException - Throws:
PortalException
-
getTeam
@Transactional(propagation=SUPPORTS, readOnly=true) Team getTeam(long groupId, String name) throws PortalException - Throws:
PortalException
-
getUserTeams
@Transactional(propagation=SUPPORTS, readOnly=true) List<Team> getUserTeams(long userId) throws PortalException - Throws:
PortalException
-
getUserTeams
@Transactional(propagation=SUPPORTS, readOnly=true) List<Team> getUserTeams(long userId, long groupId) throws PortalException - Throws:
PortalException
-
hasUserTeam
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasUserTeam(long userId, long teamId) throws PortalException - Throws:
PortalException
-
search
@Transactional(propagation=SUPPORTS, readOnly=true) List<Team> search(long groupId, String name, String description, LinkedHashMap<String, Object> params, int start, int end, OrderByComparator<Team> orderByComparator) -
searchCount
@Transactional(propagation=SUPPORTS, readOnly=true) int searchCount(long groupId, String name, String description, LinkedHashMap<String, Object> params) -
updateTeam
- Throws:
PortalException
-