com.liferay.account.model.impl.AccountRoleImpl Maven / Gradle / Ivy
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.account.model.impl;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.model.Role;
import com.liferay.portal.kernel.service.RoleLocalServiceUtil;
/**
* @author Brian Wing Shun Chan
*/
public class AccountRoleImpl extends AccountRoleBaseImpl {
@Override
public Role getRole() throws PortalException {
return RoleLocalServiceUtil.getRole(getRoleId());
}
@Override
public String getRoleName() throws PortalException {
Role role = getRole();
return role.getName();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy