Example usage for com.liferay.portal.kernel.service RoleLocalServiceUtil fetchRoleByUuidAndCompanyId

List of usage examples for com.liferay.portal.kernel.service RoleLocalServiceUtil fetchRoleByUuidAndCompanyId

Introduction

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

Prototype

public static com.liferay.portal.kernel.model.Role fetchRoleByUuidAndCompanyId(String uuid, long companyId) 

Source Link

Document

Returns the role with the matching UUID and company.

Usage

From source file:com.liferay.roles.admin.internal.exportimport.data.handler.test.RoleStagedModelDataHandlerTest.java

License:Open Source License

@Override
protected StagedModel getStagedModel(String uuid, Group group) {
    try {//w w  w .  j a v  a2  s .  c om
        return RoleLocalServiceUtil.fetchRoleByUuidAndCompanyId(uuid, group.getCompanyId());
    } catch (Exception e) {
        return null;
    }
}