Example usage for com.liferay.portal.kernel.service TeamLocalServiceUtil getTeamByUuidAndGroupId

List of usage examples for com.liferay.portal.kernel.service TeamLocalServiceUtil getTeamByUuidAndGroupId

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.service TeamLocalServiceUtil getTeamByUuidAndGroupId.

Prototype

public static com.liferay.portal.kernel.model.Team getTeamByUuidAndGroupId(String uuid, long groupId)
        throws com.liferay.portal.kernel.exception.PortalException 

Source Link

Document

Returns the team matching the UUID and group.

Usage

From source file:com.liferay.site.teams.exportimport.data.handler.test.TeamStagedModelDataHandlerTest.java

License:Open Source License

@Override
protected StagedModel getStagedModel(String uuid, Group group) {
    try {//  ww w .  j a  v  a2s. com
        return TeamLocalServiceUtil.getTeamByUuidAndGroupId(uuid, group.getGroupId());
    } catch (Exception e) {
        return null;
    }
}