Class TeamServiceUtil
Object
com.liferay.portal.kernel.service.TeamServiceUtil
Provides the remote service utility for Team. This utility wraps
com.liferay.portal.service.impl.TeamServiceImpl
and is an
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.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Team
addTeam
(long groupId, String name, String description, ServiceContext serviceContext) static void
deleteTeam
(long teamId) getGroupTeams
(long groupId) static String
Returns the OSGi service identifier.static TeamService
static Team
getTeam
(long teamId) static Team
getUserTeams
(long userId) getUserTeams
(long userId, long groupId) static boolean
hasUserTeam
(long userId, long teamId) search
(long groupId, String name, String description, LinkedHashMap<String, Object> params, int start, int end, OrderByComparator<Team> orderByComparator) static int
searchCount
(long groupId, String name, String description, LinkedHashMap<String, Object> params) static void
setService
(TeamService service) static Team
updateTeam
(long teamId, String name, String description)
-
Constructor Details
-
TeamServiceUtil
public TeamServiceUtil()
-
-
Method Details
-
addTeam
public static Team addTeam(long groupId, String name, String description, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
deleteTeam
- Throws:
PortalException
-
getGroupTeams
- Throws:
PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getTeam
- Throws:
PortalException
-
getTeam
- Throws:
PortalException
-
getUserTeams
- Throws:
PortalException
-
getUserTeams
- Throws:
PortalException
-
hasUserTeam
- Throws:
PortalException
-
search
public static List<Team> search(long groupId, String name, String description, LinkedHashMap<String, Object> params, int start, int end, OrderByComparator<Team> orderByComparator) -
searchCount
public static int searchCount(long groupId, String name, String description, LinkedHashMap<String, Object> params) -
updateTeam
- Throws:
PortalException
-
getService
-
setService
-