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 TeamaddTeam(long groupId, String name, String description, ServiceContext serviceContext) static voiddeleteTeam(long teamId) getGroupTeams(long groupId) static StringReturns the OSGi service identifier.static TeamServicestatic TeamgetTeam(long teamId) static TeamgetUserTeams(long userId) getUserTeams(long userId, long groupId) static booleanhasUserTeam(long userId, long teamId) search(long groupId, String name, String description, LinkedHashMap<String, Object> params, int start, int end, OrderByComparator<Team> orderByComparator) static intsearchCount(long groupId, String name, String description, LinkedHashMap<String, Object> params) static voidsetService(TeamService service) static TeamupdateTeam(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
-