@AccessControlled @JSONWebService @ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface TeamService extends BaseService
TeamServiceUtil
Modifier and Type | Method and Description |
---|---|
Team |
addTeam(long groupId,
String name,
String description,
ServiceContext serviceContext)
NOTE FOR DEVELOPERS:
Never modify or reference this interface directly.
|
void |
deleteTeam(long teamId) |
List<Team> |
getGroupTeams(long groupId) |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
Team |
getTeam(long teamId) |
Team |
getTeam(long groupId,
String name) |
List<Team> |
getUserTeams(long userId) |
List<Team> |
getUserTeams(long userId,
long groupId) |
boolean |
hasUserTeam(long userId,
long teamId) |
List<Team> |
search(long groupId,
String name,
String description,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator<Team> obc) |
int |
searchCount(long groupId,
String name,
String description,
LinkedHashMap<String,Object> params) |
Team |
updateTeam(long teamId,
String name,
String description) |
Team addTeam(long groupId, String name, String description, ServiceContext serviceContext) throws PortalException
TeamServiceUtil
to access the team remote service. Add custom service methods to com.liferay.portal.service.impl.TeamServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.PortalException
void deleteTeam(long teamId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<Team> getGroupTeams(long groupId) throws PortalException
PortalException
String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) Team getTeam(long teamId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) Team getTeam(long groupId, String name) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<Team> getUserTeams(long userId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<Team> getUserTeams(long userId, long groupId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasUserTeam(long userId, long teamId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<Team> search(long groupId, String name, String description, LinkedHashMap<String,Object> params, int start, int end, OrderByComparator<Team> obc)
@Transactional(propagation=SUPPORTS, readOnly=true) int searchCount(long groupId, String name, String description, LinkedHashMap<String,Object> params)
Team updateTeam(long teamId, String name, String description) throws PortalException
PortalException